Focal Point
How to submit report deferred from MRE parameter launch page

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

August 16, 2006, 01:34 PM
Dennis_V
How to submit report deferred from MRE parameter launch page
I have an MRE-based report that I want to launch from a parameter launch page.

I have the [Run Only As Deferred] box checked for the report.

I want the report to be submitted as deferred report when the Submit button is pressed. The user would see the deferred report confirmation page next.

What happens now is that another page comes up and notifies the user that this report can only be submitted for deferred execution and displays a Defer button which the user must press to finally get the deferred report has been submitted confirmation page.

I'm thinking there's hidden form fields that must be present in the parameter launch page that cause the report to be submitted for deferred execution directly.

Anyone have any ideas on this one?


Local: AppStudio 8.2.03 - Win7 - Tomcat Server: WebFOCUS 8.2.03 - Windows 2008 R2 Enterprise on VMWare 2 CPU, 3.2GHz, 4GB of RAM Output Formats: HTML, Excel, PDF, PPT, Active Reports
August 17, 2006, 01:19 AM
venu
the parameter name is IBIMR_defer
Set the value to "Defer" to run in deferred mode
August 17, 2006, 02:38 PM
Dennis_V
I'll try that and report back here. Thanks!


Local: AppStudio 8.2.03 - Win7 - Tomcat Server: WebFOCUS 8.2.03 - Windows 2008 R2 Enterprise on VMWare 2 CPU, 3.2GHz, 4GB of RAM Output Formats: HTML, Excel, PDF, PPT, Active Reports
October 23, 2006, 05:13 PM
Bethany
If you paste this line of code into your launch page, the defer button is added.

<input type='submit' NAME='IBIMR_defer' VALUE='Defer'>



Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
March 08, 2007, 01:46 PM
Dennis_V
This is a repeat of a post I replied to titled "Resource Layout", but I wanted to close the loop on this thread. Here's the technique I ended up implementing to enable users to run a report deferred or in the foreground by using a dropdown box:

We have a JavaScipt function workaround that was provided by IBI in response to a case that was opened up requesting a way to submit an MRE-based report directly to the deferred report queue from a parameter launch page.

The JavaScript function workaround dynamically adds the IBIMR_defer = "Defer" to the form before it is submitted to the server, which causes the report to run deferred.

IBI's version of the JavaScript function required a submit button with the Unique Name property value of "Defer".

I modified the JavaScript function to use values returned from a dropdown box instead of a submit button. So now the user has the option to run a parameter report deferred just by selecting the deferred option from a dropdown box.

The updated JavaScript function is:

var x=document.getElementsByName("cmbforegroundbackground")
   if (x.length > 0)
   {
      var x=document.getElementById("cmbforegroundbackground")
      if (x.selectedIndex == 1)
         appendInput(form, "IBIMR_defer", "Defer");
   }


This code is inserted at the end of the GenerateRequest2 function in the ibirls2.js JavaScript file located in the:

\ibi\WebFOCUS71\ibi_html\javaassist\ibi\html\js folder


The Unique Name property value of the dropdown box in this example needs to be The Unique Name property value of the dropdown box in this example needs to be cmbforegroundbackground..

This workaround function is placed at the end of the function before the return form; statement.

This is one of those things that warrants the caveat "proceed at your own risk!", since the ibirls2.js file is an internal-use file. Also, you would need to make sure this additional JavaScript function was added to each new version when upgrading WF.

We are running 7.1.4 and this works fine, but I'm not sure if any updates have been made to the ibirls2.js file in later versions. If any updates were made to the ibirls2.js file in later versions, those updates may or may not have an effect on this workaround.

I was told when I opened up the case that this was submitted by the by CSS as a new feature request, so this workaround may not be required in future versions.

Dennis


Local: AppStudio 8.2.03 - Win7 - Tomcat Server: WebFOCUS 8.2.03 - Windows 2008 R2 Enterprise on VMWare 2 CPU, 3.2GHz, 4GB of RAM Output Formats: HTML, Excel, PDF, PPT, Active Reports