CR8.5
I have a shared variable returned from a subreport to the main report that's not returning correctly. I have the subreport linked to the main report by ClientID. I have a True/False Shared Varible I want returned from the subreport to the main report.
The subreport "IS" above the shared variable.
Problem:
The data seems to be all or nothing. If one of the records Grouped by staff on the main report meets the criteria, then it Returns all the Cleint records as TRUE. If none of the records meet the condition, it comes up blank.
Subreport Formulas:
@FlagCount
If {?Pm-clientstb.cl_id}={clientstb.cl_id} then True Else False
@SubIsActive
WhilePrintingRecords;
Shared BooleanVar MyFlag:={@FlagCount}
Main Report Formula:
@MainIsActive
WhilePrintingRecords;
Shared BooleanVar MyFlag;
MyFlag
Groups
Staff
ClientID A
ClientID B
Detail
I have the subreport in ClientID A, and the @MainIsActive in Group ClientID B.
I have a shared variable returned from a subreport to the main report that's not returning correctly. I have the subreport linked to the main report by ClientID. I have a True/False Shared Varible I want returned from the subreport to the main report.
The subreport "IS" above the shared variable.
Problem:
The data seems to be all or nothing. If one of the records Grouped by staff on the main report meets the criteria, then it Returns all the Cleint records as TRUE. If none of the records meet the condition, it comes up blank.
Subreport Formulas:
@FlagCount
If {?Pm-clientstb.cl_id}={clientstb.cl_id} then True Else False
@SubIsActive
WhilePrintingRecords;
Shared BooleanVar MyFlag:={@FlagCount}
Main Report Formula:
@MainIsActive
WhilePrintingRecords;
Shared BooleanVar MyFlag;
MyFlag
Groups
Staff
ClientID A
ClientID B
Detail
I have the subreport in ClientID A, and the @MainIsActive in Group ClientID B.