August 27, 2010 at 11:38 am
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.
August 27, 2010 at 11:53 am
tsmith-960032 (8/27/2010)
I am using VS2008 on a SQL2008R2 serverI 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)"
August 27, 2010 at 11:54 am
For some reason, the word javascript does not show up in my posts.
August 27, 2010 at 1:13 pm
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())"
August 27, 2010 at 1:21 pm
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...
August 27, 2010 at 1:30 pm
August 27, 2010 at 1:32 pm
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.
August 27, 2010 at 1:34 pm
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.
August 27, 2010 at 1:36 pm
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.
August 27, 2010 at 1:37 pm
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.
August 27, 2010 at 1:39 pm
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.
August 27, 2010 at 1:40 pm
August 27, 2010 at 1:43 pm
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.
August 27, 2010 at 1:44 pm
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...
August 27, 2010 at 1:57 pm
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