Using CR XI2 going to a universe. The main report has a parameter display page in the report header. The parameter is Client Name and can be a wildcard search by name or client number. The user wants the actual Client Names that the search found to be display in the report header. Join doesnt work, it only shows one record.
So I created a subreport that passes the Client Name parameter and then selects only the relevant records. I only need to display unique client names on the report so I have these formulas setup.
//{@accum} for the detail section:
whileprintingrecords;
stringvar name;
if
not({CAU_Client.Client Name} in name) then
name := name + {CAU_Client.Client Name} +",";
//{@display} for the group footer:
whileprintingrecords;
stringvar name;
//{@reset} for the group header:
whileprintingrecords;
stringvar name;
if not inrepeatedgroupheader then
name := "";
The output is showing each Client Name as many times as there are details records though, so the unique part isnt working. What am I doing wrong?
Thanks.
So I created a subreport that passes the Client Name parameter and then selects only the relevant records. I only need to display unique client names on the report so I have these formulas setup.
//{@accum} for the detail section:
whileprintingrecords;
stringvar name;
if
not({CAU_Client.Client Name} in name) then
name := name + {CAU_Client.Client Name} +",";
//{@display} for the group footer:
whileprintingrecords;
stringvar name;
//{@reset} for the group header:
whileprintingrecords;
stringvar name;
if not inrepeatedgroupheader then
name := "";
The output is showing each Client Name as many times as there are details records though, so the unique part isnt working. What am I doing wrong?
Thanks.