on 06-22-2016 8:57 PM
Hello Community,
I'm trying to find a way to share a specific value from a crosstab subreport to my main report with no success. Can someone give me some guide my to get this done?
Thanks
Rodney
Hi Rodney,
You'd use a formula in the 'Display String' property of the field you wish extract the value from.
If you could provide more details, I can think of a way to share the value to the Main Report.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, thanks for quick replies...
I did get to share the value from the crosstab subreport to main, but something is moving the column "Sales Avg" from position when I run the report from SAP B1.
Here are some examples:
This is SAP Crystal Report 2013 (SP 5) preview. The green rectangle is the crosstab subreport. THIS IS HOW I WANT IT!!
But, when running the report within SAP B1 (9.1 PL11), this is what I get...
The "Sales Avg" moved from position and it seems that the shared value is always the last one from the column group within the CrossTab because it is getting the value from the last column always.
Hope this can give you the view you need to help me resolve this...
Other thing very important... the "Sales Avg" is a calculated member
Thanks,
Rodney
First, sorry for delay and appreciate your help on this...
Try to get the .rpt from this link:
Thanks again,
Rodney
OK. Modify the display string formula to:
If GridRowColumnValue("ACS_SalesPerMonth.MonthYear") = "amount" then
(
Shared Numbervar amount := CurrentFieldValue;
);
ToText(CurrentFieldValue);
This will always bring back the value from the Calculated Member column irrespective of its position.
-Abhilash
A Crosstab object needs database fields as Rows/Columns. Unfortunately, you can't use shared variables from Subreports in a Crosstab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.