Hi,
I want to access a shared variable value in a sub-report that is below another sub-report having the same shared variable, however the shared variable is not returning the true value.
This is what I have in Sub-report A(CR 8.5):
@FM_CM_Flag // in the header section
Whileprintingrecords;
shared booleanvar FM_CM_Flag;
if ({MM_GENEALOGY_LG_2.MATERIAL_ID} like 'FM'+ '*' OR {MM_GENEALOGY_LG_2.MATERIAL_ID} like 'CM'+ '*') then
FM_CM_Flag := True
else
FM_CM_Flag := False
This is what I have in Sub-report B:
@FM_CM_Flag // in the header section
Whileprintingrecords;
shared booleanvar FM_CM_Flag;
FM_CM_Flag
Problem:
In the Sub-report A the value of FM_CM_Flag is True where as in the Sub-report B(below Sub-report A) the value of FM_CM_Flag is False although it should be True
Based on the value of this variable in the Sub-report B, I want to suppress or display certain fields.
Thanks for all your help in advance.
Tek
I want to access a shared variable value in a sub-report that is below another sub-report having the same shared variable, however the shared variable is not returning the true value.
This is what I have in Sub-report A(CR 8.5):
@FM_CM_Flag // in the header section
Whileprintingrecords;
shared booleanvar FM_CM_Flag;
if ({MM_GENEALOGY_LG_2.MATERIAL_ID} like 'FM'+ '*' OR {MM_GENEALOGY_LG_2.MATERIAL_ID} like 'CM'+ '*') then
FM_CM_Flag := True
else
FM_CM_Flag := False
This is what I have in Sub-report B:
@FM_CM_Flag // in the header section
Whileprintingrecords;
shared booleanvar FM_CM_Flag;
FM_CM_Flag
Problem:
In the Sub-report A the value of FM_CM_Flag is True where as in the Sub-report B(below Sub-report A) the value of FM_CM_Flag is False although it should be True
Based on the value of this variable in the Sub-report B, I want to suppress or display certain fields.
Thanks for all your help in advance.
Tek