on 05-07-2009 2:30 PM
Hi All,
I am using an array to print values from a main report to a subreport.
Here's the array formula I use in the group footer of my main report:
whileprintingrecords;
stringvar strCalls;
strCalls:=totext(Sum ({Group.Calls}, {Group.GroupNumber}))"^"strCalls
this produces a string of:
number4number3number2^number1
Here's the formula I use in the group header of my subreport:
WhileReadingRecords;
stringVar array arr;
numberVar i;
arr:=split({?Pm-@Calls Array},"^");
i:=i+1;
if i<= Count(arr) and arr<i><>"" then
arr<i>
else
""
this produces number4 on the first printed header and then blank for the rest of the headers.
My question is why are number3,number2 and number1 not printing?
Thank you in advance.
Try this in subreport header.
WhileReadingRecords;
stringVar array arr;
numberVar i;
arr:=split({?Pm-@Calls Array},"^");
i:=i+1;
if i<= Count(arr) then
arr<i>
else
""
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you need to split your formula into two
@formula1:
WhilePrintingRecords;
stringVar array arr;
arr:=split({?Pm-@Calls Array},"^");
place this @formula1 in report header of subreport and suppress it.
@formula2:
WhilePrintingRecords;
stringVar array arr;
numberVar i;
i:=i+1;
if i<= Count(arr) then
arr<i>
else
""
Place this @formula2 in group footer where you want to show the value in subreport.
Regards,
Raghavendra
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.