Focal Point
Launch Page Pointing to Staged Report

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

July 12, 2007, 05:20 PM
R Veit
Launch Page Pointing to Staged Report
This may be more of a Javascript question than WebFOCUS -- I know how to point to a particular focexec based on criteria selected from the launch page but how can I point to a report that has been saved to the WebFOCUS server instead of running a focexec? The code below is the function to point to the focexec. My "staged" reports are saved to a different folder and I am not familiar enough with javascript to know the correct syntax to use. I tried putting the path ("/prepared/DYS_Reports/Reports_800/YYSWF850.pdf") in place of app/yyswf400.fex but I believe it is looking in basedir for the file. Can anyone point me in the right direction?

<script language="javascript">
function SetFexAndSubmit()
{if (document.form.REGION.value == "X" && document.form.RPT(0).checked == true)
{document.form.IBIMR_fex.value = "app/yyswf400.fex";
document.form.IBIF_ex.value = "app/yyswf400.fex"; }
else
if (document.form.REGION.value == "X" && document.form.RPT(1).checked == true)
{document.form.IBIMR_fex.value = "app/yyswf402.fex";
document.form.IBIF_ex.value = "app/yyswf402.fex"; }
else
if (document.form.REGION.value != "X" && document.form.RPT(0).checked == true)
{document.form.IBIMR_fex.value = "app/yyswf401.fex";
document.form.IBIF_ex.value = "app/yyswf401.fex"; }
else
if (document.form.REGION.value != "X" && document.form.RPT(1).checked == true)
{document.form.IBIMR_fex.value = "app/yyswf403.fex";
document.form.IBIF_ex.value = "app/yyswf403.fex"; }

this.form.submit() }


7.6.11 on Win 2003/IIS 6/Apache Tomcat 5.5 - MRE, ReportCaster
Reporting Server z/OS 1.11, PDS Unified
Excel, PDF, HTML
July 13, 2007, 09:23 AM
Fernando
R Veit,

You can use the javascript code:

document.location = '/prepared/DYS_Reports/Reports_800/YYSWF850.pdf';

as long /prepared/DYS_Reports/Reports_800 are URL alias's and not directories.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03