June 30, 2008, 03:58 PM
<Jax>back button for a report
Does anybody have a snippet of code for adding a back button to the top of the report in order to return to a launch page or to a prior report?
WF 7.6.5
June 30, 2008, 04:53 PM
Darin LeeDo you need something beside the browser back button? That seems to work fine for us.
June 30, 2008, 06:03 PM
<Jax>The back button ordinarily would be sufficient but there is a specification beyond the conventional return option that will return to the launch page.
June 30, 2008, 06:14 PM
Tony AJax,
Search on JavaScript:history.go(n); or JavaScript:history.back();
T
July 01, 2008, 12:33 PM
AnatessOr if it has to go to the same page everytime you hit the back button, make it a hyperlink to that page.
July 01, 2008, 12:48 PM
David BriarsYou can build your buttons within your DEFINE..
..
-* Build the CLOSE button.
CLOS/A60='<center><A HREF="javascript:window.close()">';
BUTTON/A65 = '<IMG SRC="../IMAGES/CLOSEGR.GIF" BORDER="0"></A>' ;
CLOS_BUTTON/A125=CLOS || BUTTON;
-*
-* Build the PRINT button.
-*
PRNT/A60='<A HREF="javascript:window.print()">';
PBUTTN/A65 = '<IMG SRC="../IMAGES/PRINTGR.GIF" BORDER="0"></A></center>';
PRNT_BUTTON/A125=PRNT || PBUTTN;
..
...then pull your buttons in, within your TABLE..
..
-* --------------------------------
-* HTML STYLE
-* --------------------------------
ON TABLE SUBFOOT
"<0 <CLOS_BUTTON <PRNT_BUTTON"
..