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