Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Report - SubReport Expand / Collapse
Author
Message
Posted Friday, April 25, 2014 12:32 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 212, Visits: 622
I have two reports that Point to the same Sub Report.
On The Sub Report I have a text that says : Return to Main Page.
But I don't know How to return to respective main report since the sub report is the same.

Main Report FileName : Owner
Main Report : Application
SubReport : Details.

So, Under Details Report ,text says "Return to Main Page".
What should I have in Actions so that it points to respective Main Report.
P.S : Main Reports dont have any parameters.


Post #1565224
Posted Sunday, April 27, 2014 10:37 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 10:12 PM
Points: 2,916, Visits: 2,515
sharonsql2013 (4/25/2014)
I have two reports that Point to the same Sub Report.
On The Sub Report I have a text that says : Return to Main Page.
But I don't know How to return to respective main report since the sub report is the same.

Main Report FileName : Owner
Main Report : Application
SubReport : Details.

So, Under Details Report ,text says "Return to Main Page".
What should I have in Actions so that it points to respective Main Report.
P.S : Main Reports dont have any parameters.



How about adding a parameter to the subreport which is the name of the "Main Page" report.
In the action in the main reports, the value of the new parameter is the name of the relevant main report.
In the action in the subreport, use an expression in the "specify a report" box. For the expression, use the value from the new parameter



Post #1565451
Posted Monday, April 28, 2014 2:24 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 212, Visits: 622
Yes, But there are two separate Main reports.
So, In actions If I pass the report name as X it will work fine. But when I want to go to y Report , x report is already listed.... so y will not open up.
Post #1565704
Posted Tuesday, April 29, 2014 10:20 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 10:12 PM
Points: 2,916, Visits: 2,515
In the subreport - create a new parameter. It will be contain the name of the main report that you want to call from the action on "Return to Main Page". In the action for that text box, do not type a value. Instead click on the "fx" next to the "specify a report" drop down. For the expression, you use the value of the new parameter.

In each of the main reports, in the action that calls the sub report, add a parameter (the same name as you specified for the new parameter in the sub report. The value of the parameter is the name of the report you are editing.




Post #1566206
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse