Dear all,
I have written a formula in CR 10 and used in a cross-tab, but when I preview the report, I have received the following error msg:
"A print time formula that modifies variables is used in a chart or map Details: @detail"
the code of "detail" in that summarized field in cross-tab is like that:
shared stringVar compComment;
{@Grade_ATA2} +
(
if isnull({tb_asr_rptpSCORE.ChComment_ATA2}) or len({tb_asr_rptpSCORE.ChComment_ATA2}) = 0 then
(if isnull({TB_ASR_RptPScore.CHSUBJCOMNAME}) then compComment := '';
if (not isnull({TB_ASR_RptPScore.CHSUBJCOMNAME})) and ((trim({TB_ASR_RptPScore.CHSUBJCOMNAME}) = 'Chinese') or (trim({TB_ASR_RptPScore.CHSUBJCOMNAME}) = 'English')) then compComment
else
'')
else
if ({TB_ASR_RptPScore.CHSUBJNAME} = 'Chinese') or ({TB_ASR_RptPScore.CHSUBJNAME} = 'English') then
((if isnull({tb_asr_rptpSCORE.ChComment_ATA2}) or len({tb_asr_rptpSCORE.ChComment_ATA2}) = 0 then
compComment := ''
else
compComment := '*');
'')
else (
compComment := '';
'*')
)
_________________________________________
My CR report links to 3 tables:TB_ASR_RPTCONDUCT, TB_ASR_RPTPSTUDENT and TB_ASR_RPTPSCORE.As the data comes from a complex database system, I'd rather provide you the form for reference instead of type out the table structure so that u can have a more clear picture abt that.
Pls download the report from this site:
And the problematic formula "subjcomp"which stated in the previous msg is in charge of giving "*" next to the marks
Thus, in the summerized field "detail" in cross-tab, that field will consists of the above 2 formulas, i.e. (@Grade_ATA2}+(@subjcomp}
Those "*" originally displayed in the main subject. However,I'd like to move those * to subject components (e.g. Reading) as the followings:
(Remarks: only two Main Subjects have "subject components, i.e. Chinese has 2 subject components:Reading and Writing; English has 2 also: Reading and Writing)and the expected result should be like that:
For the subjects without subject components like Maths, Music..etc will NOT be affected.
I have written a formula in CR 10 and used in a cross-tab, but when I preview the report, I have received the following error msg:
"A print time formula that modifies variables is used in a chart or map Details: @detail"
the code of "detail" in that summarized field in cross-tab is like that:
shared stringVar compComment;
{@Grade_ATA2} +
(
if isnull({tb_asr_rptpSCORE.ChComment_ATA2}) or len({tb_asr_rptpSCORE.ChComment_ATA2}) = 0 then
(if isnull({TB_ASR_RptPScore.CHSUBJCOMNAME}) then compComment := '';
if (not isnull({TB_ASR_RptPScore.CHSUBJCOMNAME})) and ((trim({TB_ASR_RptPScore.CHSUBJCOMNAME}) = 'Chinese') or (trim({TB_ASR_RptPScore.CHSUBJCOMNAME}) = 'English')) then compComment
else
'')
else
if ({TB_ASR_RptPScore.CHSUBJNAME} = 'Chinese') or ({TB_ASR_RptPScore.CHSUBJNAME} = 'English') then
((if isnull({tb_asr_rptpSCORE.ChComment_ATA2}) or len({tb_asr_rptpSCORE.ChComment_ATA2}) = 0 then
compComment := ''
else
compComment := '*');
'')
else (
compComment := '';
'*')
)
_________________________________________
My CR report links to 3 tables:TB_ASR_RPTCONDUCT, TB_ASR_RPTPSTUDENT and TB_ASR_RPTPSCORE.As the data comes from a complex database system, I'd rather provide you the form for reference instead of type out the table structure so that u can have a more clear picture abt that.
Pls download the report from this site:
And the problematic formula "subjcomp"which stated in the previous msg is in charge of giving "*" next to the marks
Thus, in the summerized field "detail" in cross-tab, that field will consists of the above 2 formulas, i.e. (@Grade_ATA2}+(@subjcomp}
Those "*" originally displayed in the main subject. However,I'd like to move those * to subject components (e.g. Reading) as the followings:
(Remarks: only two Main Subjects have "subject components, i.e. Chinese has 2 subject components:Reading and Writing; English has 2 also: Reading and Writing)and the expected result should be like that:
For the subjects without subject components like Maths, Music..etc will NOT be affected.