Focal Point
[SOLVED] Adding button to run deferred from HTML painter

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

December 12, 2008, 04:49 PM
DW Marker
[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>

and the buttons that were created:
<INPUT TYPE='submit' NAME='Submit' VALUE='Submit'
style="Z-INDEX: 16; LEFT: 15px; WIDTH: 100px; COLOR: rgb(255,255,255); FONT-STYLE: normal; FONT-FAMILY: Tahoma; FONT-WEIGHT: 700; FONT-SIZE: 9pt; BACKGROUND-COLOR: rgb(0,0,64); TEXT-DECORATION: none">
<INPUT TYPE='button' NAME='Submit' VALUE='Defer'
style="Z-INDEX: 16; LEFT: 15px; WIDTH: 100px; COLOR: rgb(255,255,255); FONT-STYLE: normal; FONT-FAMILY: Tahoma; FONT-WEIGHT: 700; FONT-SIZE: 9pt; BACKGROUND-COLOR: rgb(0,0,64); TEXT-DECORATION: none" onClick="javascript:onSubmdefer();return false;">
<input type='hidden' name='IBIMR_defer' value='RUN'>
<input type='hidden' name='IBIMR_threebuttons' value="true">
<INPUT TYPE='RESET' NAME='reset' VALUE='Reset'
style="Z-INDEX: 16; LEFT: 15px; WIDTH: 100px; COLOR: rgb(255,255,255); FONT-STYLE: normal; FONT-FAMILY: Tahoma; FONT-WEIGHT: 700; FONT-SIZE: 9pt; BACKGROUND-COLOR: rgb(0,0,64); TEXT-DECORATION: none">

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.

Raj