[SOLVED] Adding button to run deferred from HTML painter
I have been looking at the documentation, and through Focal Point, and wanted to get some guidance on how best to handle the addition of a deferred run button from my launch page.
I did find This Link which gave a workaround, but wasn't sure if that was still the best approach, or if someone has come up with something better?This message has been edited. Last edited by: DW Marker,
WF 7.6.4 Windows XP and UNIX
December 15, 2008, 05:10 PM
Darin Lee
I'm not on the latest version, but this was an automatic selection when creating a new launch page in previous versions - it asked if you wanted a "submit" a "deferred" or both.
Anyway, this is what gets stuck in there:
<script src="/ibi_html/javaassist/cgipath.js"></script>
<script language="javascript">
function init()
{document.form.action = getWFScriptName();
if ((document.form.IBIMR_defer != null) &&
(document.form.IBIMR_threebuttons != null))
document.form.IBIMR_defer.value="";
}
function onSubmdefer()
{
document.form.IBIMR_defer.value="Defer";
document.form.submit();
}
</script>
If nothing else, you should be able to manually insert the neceessary pieces into your launch page to make it work. The key is including the IBIMR_defer value of "Defer" when it is to be run deferred.
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
December 22, 2008, 04:26 PM
DW Marker
It appears this is taking care of it... Thanks A million
WF 7.6.4 Windows XP and UNIX
March 04, 2009, 06:56 PM
rv
DW Marker: I am on 7.6.4 as well and I couldn't get the code to work. The Defer button click makes it to the onSubmdefer funtion (I put in an alert) but nothing happens. Did you have to modify the code at all? The next line in the function - document.form.submit() is not firing the report. Thanks in advance.