Focal Point
back button for a report

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

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 Lee
Do you need something beside the browser back button? That seems to work fine for us.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
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 A
Jax,

Search on JavaScript:history.go(n); or JavaScript:history.back();

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 
July 01, 2008, 12:33 PM
Anatess
Or if it has to go to the same page everytime you hit the back button, make it a hyperlink to that page.


WF 8.1.05 Windows
July 01, 2008, 12:48 PM
David Briars
You 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"
..





Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster