Focal Point
[CLOSED] Deferred run option

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

July 14, 2011, 09:45 AM
JI
[CLOSED] Deferred run option
What is the easiest way to add a "Run Deferred" button to a launch form? I'd like to have a tool that has the ability to be run live, or deferred. So in essence 2 buttons on the launch page one for "Run" and one for "Run Deferred". What is the code required to do so, or the easiest way to get this to work?
-Thanks

This message has been edited. Last edited by: Kerry,


version 7.14
Windows and Unix servers
Mostly html, and some excel outputs
July 14, 2011, 09:56 AM
Severus.snape
Hi,

Add a hidden variable named IBIMR_defer and onclick of the Run Deferred button set this variable to 'defer'. Leave it blank when Run is clicked. Pass this to the fex along with other form params.


thanks
Sashanka


WF 7.7.03/Windows/HTML,PDF,EXL
POC/local Dev Studio 7.7.03 & 7.6.11
July 18, 2011, 03:03 AM
Ramkumar - Webfous
Call it a JavaScript to do the Page submit, if it is Deferred submit the page with the Hidden element IBIMR_Defer = 'Defer'. This will submit the report for deferred execution instead of instant output.

I will posst you some code shortly.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 18, 2011, 03:16 AM
Ramkumar - Webfous

<INPUT type=hidden persistentuniqueid="compUid_12" name="IBIMR_flags"> 
<INPUT type=hidden persistentuniqueid="compUid_13" name="IBIMR_random"> 
<INPUT type=hidden persistentuniqueid="compUid_14" name="IBIMR_defer"> 
<INPUT type=hidden value=1 persistentuniqueid="compUid_15" name="IBIMR_cookie"> 


function runReportDefer()
{
 document.form.IBIMR_random.value = Math.random();
 document.form.IBIMR_defer.value = 'Defer';
 document.form.submit();
}

  



Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 18, 2011, 03:18 AM
Ramkumar - Webfous
Call the runReportDefer() function in the Run Deferred Button's Onclick event.

This is the simple way.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
July 25, 2011, 04:37 AM
Ramkumar - Webfous
Hi JI,

Is the information enough on your part? Were you able to implement this ?

If so, Please mark the thread as solved...


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5