on 02-04-2016 9:23 AM
I have two subreports.
Subreport 1:
Detail A: UK
Detail B: USA
Detail C: China
Subreport 2:
Detail A: UK
Detal B: Spain
I would like to have as a resul: China, USA, UK, Spain.
Hi Isak,
1) Inside Subreport 1, create a formula with this code and place it on the Details Section:
WhilePrintingRecords;
shared stringvar array arr;
shared numbervar i;
if not({Country} in arr) then
(
i := i + 1;
redim preserve arr[i];
arr[i] := {Country};
);
arr[i];
2) Create a similar formula in Subreport 2 with this code and place it on the Details Section:
WhilePrintingRecords;
shared stringvar array arr;
shared numbervar i;
if not({Country} in arr) then
(
i := i + 1;
redim preserve arr[i];
arr[i] := {Country};
);
arr[i];
3) In the Main report, create a formula to display the results. Place this on the Report Footer:
shared stringvar array arr;
Join(arr, ', ') ;
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.