July 12, 2007, 05:20 PM
R VeitLaunch 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() }
July 13, 2007, 09:23 AM
FernandoR 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