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