Hello,
I am using CR8.5 with SQL Server database. I have a main report with subreport. In subreport I have one group and for each group there may be 1 or multiple detail lines. When inserting the subreport into the main report I am able to see one or multiple detail lines as per the group in subreport. Now I want to get the one or multiple detail lines as a string variable into the main report. I have created a formula Shared StringVar and placed in the subreport. This gives me one or multiple detail lines as per the group in the subreport. But in main report I have the same group and when I use the Shared StringVar formula I get only one line even if in the subreport there are multiple lines for that same group.
The reason why I need this is because I want to compare a string from the main report with the string in subreport. I do not know whether I can compare two strings one from main report and another from subreport.
For example if the subreport is grouped by state and state can have one or multiple cities. If the state has multiple cities, then I need all the cities in that state as a string var in the main report. But i get only one city name insted of multiple.
Can any one help me solve tis issue?
Thanks
I am using CR8.5 with SQL Server database. I have a main report with subreport. In subreport I have one group and for each group there may be 1 or multiple detail lines. When inserting the subreport into the main report I am able to see one or multiple detail lines as per the group in subreport. Now I want to get the one or multiple detail lines as a string variable into the main report. I have created a formula Shared StringVar and placed in the subreport. This gives me one or multiple detail lines as per the group in the subreport. But in main report I have the same group and when I use the Shared StringVar formula I get only one line even if in the subreport there are multiple lines for that same group.
The reason why I need this is because I want to compare a string from the main report with the string in subreport. I do not know whether I can compare two strings one from main report and another from subreport.
For example if the subreport is grouped by state and state can have one or multiple cities. If the state has multiple cities, then I need all the cities in that state as a string var in the main report. But i get only one city name insted of multiple.
Can any one help me solve tis issue?
Thanks