Focal Point
HTML BACK UP button or link

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9541001371

June 22, 2006, 10:48 AM
TexasStingray
HTML BACK UP button or link
First I want to say thanks to everyone out there who has ever asked a question or provided input, your participation is what makes this a successful community of developers.

I have a resource layout page that shows 4 graphs 2 by 2. Three of the graphs drill-down to a report in the same iframe that the graph originally was show in. Here is what a user might do

1. the user drills down lets say on graph1 and see its detail report.
2. the user then drills down on graph3 and see its detail report

what the want it to be able to have a button or link that will allow them to backup.

Here is the issue
If I put a link or button on the resource layout page or then html page and use JavaScript to go back using history the is backs up graph3 and then graph1. The use wants ‘to be able to control what the backup . one backup button/link for each graph/report.

Any Ideas
Thanks in advance




Scott

You should be able to use the following javascript code to go back:

javascript:history.go(-1)

You can do this in many ways. You can put a hyperlink in the header or footer of each report/graph. You can also insert an image with an onclick event or wrapped in anchor tags.

Hope this is what you are looking for.
Tim, There is a problem with that. As I stated if I use history it backs up in order of the browsers history. that is to say if I drill down on graph 1 and then drill down on graph 3 and them click the back (history) of graph 1 I want graph 1 to go back and the browses will make graph 3 go back then if I click graph 1 again it will finally go back but only after graph 3 goes back. I how you can understand what I mean.




Scott

Texas,

The biggest problem that you will have in pullingback historic pages, as you probably know, is knowing how to work out the number to use in the javascript history call to obtain an acurate call.

So instead of calling the reports from the graphs anew, how about using the function suggested by Paul Burridge in response to a question by Ryan Ferguson - this topic - such that each report is pre-created and only shown when required?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
Tim,thanks even we had the same problem. After using javascript:history.go(-1) it is working perfect.
our users wanted same thing to be done, if they closes the drilldown window accidently/
we want webfocus to goback to prev window instead of closing the window.

any suggestion woudl be greatly appreciated.