Adding a back button on a child report

  • I am using VS2008 on a SQL2008R2 server

    I have added the following to the Action property of a child report.

    ="history.go(-1)"

    Because it did not work, I tried all sorts of variations of this, including

    =history.back(1)

    with quotes, without quotes...

    It still does not work.

    Can anyone help to tell me what I am doing wrong?

    Thank you.

  • tsmith-960032 (8/27/2010)


    I am using VS2008 on a SQL2008R2 server

    I have added the following to the Action property of a child report.

    ="history.go(-1)"

    Because it did not work, I tried all sorts of variations of this, including

    =history.back(1)

    with quotes, without quotes...

    It still does not work.

    Can anyone help to tell me what I am doing wrong?

    Thank you.

    I'm sorry, I made a typo.

    I meant

    ="history.back(1)"

    or

    ="history.go(-1)"

  • For some reason, the word javascript does not show up in my posts.

  • Yup, the forum software doesn't like the word javascript - they're trying to prevent malicious users from doing stupid stuff.

    In my below code replace java_script with the actual word and it should work...

    ="java_script:void(window.history.back())"

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Luke L (8/27/2010)


    Yup, the forum software doesn't like the word javascript - they're trying to prevent malicious users from doing stupid stuff.

    In my below code replace java_script with the actual word and it should work...

    ="java_script:void(window.history.back())"

    Thanks for responding. I tried it, but, nada...

  • It won't work in the preview of the IDE. You have to upload it to the SSRS server first. I didn't test it with SSRS 08 (don't have access to it atm) but the same code works in SSRS 2005.

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Luke L (8/27/2010)


    It won't work in the preview of the IDE. You have to upload it to the SSRS server first. I didn't test it with SSRS 08 (don't have access to it atm) but the same code works in SSRS 2005.

    -Luke.

    Yes, I deployed the project containing the parent and child reports to the Report server.

    Nothing. I don't even get the hand like I do when drilling down.

  • What didn't work about it? Did it only send you back one page? Does your report have parameters? do they cascade forcing a refresh each time? IF so those all get put into your history as well, so you'd need to adjust for that...

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • tsmith-960032 (8/27/2010)


    Luke L (8/27/2010)


    It won't work in the preview of the IDE. You have to upload it to the SSRS server first. I didn't test it with SSRS 08 (don't have access to it atm) but the same code works in SSRS 2005.

    -Luke.

    Yes, I deployed the project containing the parent and child reports to the Report server.

    Nothing. I don't even get the hand like I do when drilling down.

    What did you add the action to? a textbox, or some other feature? when you set this on a text box, you only get the hand when hovering over the text in the textbox, so if your textbox is blank you won't get a hand.

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Luke L (8/27/2010)


    What didn't work about it? Did it only send you back one page? Does your report have parameters? do they cascade forcing a refresh each time? IF so those all get put into your history as well, so you'd need to adjust for that...

    -Luke.

    No cascading, just one parameter passed to the child, for example, a SSN, click on SSN, and child report shows the details for the SSN owner.

    Then you want to go back to the parent. The back "button" (textbox) does nothing.

  • tsmith-960032 (8/27/2010)


    Luke L (8/27/2010)


    What didn't work about it? Did it only send you back one page? Does your report have parameters? do they cascade forcing a refresh each time? IF so those all get put into your history as well, so you'd need to adjust for that...

    -Luke.

    No cascading, just one parameter passed to the child, for example, a SSN, click on SSN, and child report shows the details for the SSN owner.

    Then you want to go back to the parent. The back "button" (textbox) does nothing.

    Well, I just mentioned the hand, but it is not important. The important part is that it doesn't work.

  • Yup and I guess my point is, if you don't get the hand, you don't have anything to click on. So what did you set the action attribute of again?

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Luke L (8/27/2010)


    Yup and I guess my point is, if you don't get the hand, you don't have anything to click on. So what did you set the action attribute of again?

    A textbox (not a cell of a tablix) with the word "BACK" in it. Although I tried that too.

  • Bah, sorry, got the emails out of order and since it was on a new page I didn't see your previous response... Your back "button" textbox. Does it work if you click on the text? It won't work if you click the blank space next to the text...

    FWIW, have you thought about popping the new detailed record up into a new window? Again it's a js think creating the link with an expression and passing the parameters via the URL... That way instead of back you could have them close the window either through the X a window.close() button etc...

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Luke L (8/27/2010)


    Bah, sorry, got the emails out of order and since it was on a new page I didn't see your previous response... Your back "button" textbox. Does it work if you click on the text? It won't work if you click the blank space next to the text...

    FWIW, have you thought about popping the new detailed record up into a new window? Again it's a js think creating the link with an expression and passing the parameters via the URL... That way instead of back you could have them close the window either through the X a window.close() button etc...

    It won't work if you click the blank space next to the text...

    MY GOD!!!!! THAT'S THE SECRET!!! THANK YOU THANK YOU THANK YOU!!!:w00t::-D:hehe::-);-):hehe::cool::w00t:

Viewing 15 posts - 1 through 15 (of 28 total)

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