on 04-24-2014 8:54 AM
Hi All,
I need to show my report based on parameter value selected.
I created a parameter called records.So if I gave value as 1 then it should show only 1 record.
I tried in record selection like this.But not getting the result.
WhileReadingRecords;
numberVar x :=x+1;
if x = {?record} then false
Hi Divya,
Change the code to:
WhileReadingRecords;
numberVar x :=x+1;
x <= {?record}
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhilash,
I have a main report where I am displaying location details and passing some value to sub report using links tab.
Every time my main report displays only 1 record.don't consider main report.
My requirement is in my main report I have a parameter record .
if I gave record =1 then my sub report should show only 1 record.
Thats why I am pulling record number from sub report to main report.
Please suggest
Hi Divya,
If you're trying to filter the subreport based on Main Report's prompt, here's what you need to do:
1) Right-click the Subreport > Change Subreport Links > Move the prompt in the Main Report to the Pane on the right > uncheck the option 'Select data in subreport based on field'
2) Get inside the Subreport's Design page > Go to Record Selection formula and use this code:
WhileReadingRecords;
numberVar x :=x+1;
x <= {?Pm-Prompt_from_Main_Report}
-Abhilash
You need to send the Main Report's prompt into the Subreport and use that prompt in the Subreport's record selection formula.
Step 1 will send the prompt into the Subreport
Step 2 will use that prompt and filter the records in the Subreport. The prompt from the Main Report will look something like this when viewed in the Subreport's formula window :
{?Pm-promptname}
-Abhilash
User | Count |
---|---|
85 | |
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.