CR8.5.
I have a report that prints phone numbers for each person. I have a subreport in that main report in which I want to pass all numbers from the main report.
I am thinking that array might do it.
Is there an easy way to do it?
In the subreport, you would create another formula to access the array. This example would just display the array as a comma separated list in the subreport:
Thanks Dave. The reason I need to pass all Numbers to the subreport is that the subreport further filters down those numbers and shows only those records that meet the criteria. The main report lists everybody. I have created both formulas and the subreport formula is diplaying only one record (phone number). Also I am unable to use the subreport formula (//@DisplayPhoneNumbers ) in my record selection.
To use the PhoneNumbers array in the record selection of the subreport, you would have to declare the variable first:
WhilePrintingRecords;
Shared StringVar Array PhoneNumbers;
{Table.PhoneNumber} in PhoneNumbers
If the subreport formula is only giving you a single record, then you'll need to describe the layout of your report (e.g. where you're using the @AddPhoneNumbersToArray formula, and what section the subreport is in.
I have the //@AddPhoneNumbersToArray in the Details section of the main report, the subreport is in the Report Footer section of the main report and //@DisplayPhoneNumbers formula is in the Report Header section of the subreport.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.