Report - SubReport

  • 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.

  • 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

  • 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.

  • 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.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply