Focal Point
[SOLVED] Multiple Reports in Single Frame

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

October 15, 2014, 06:11 PM
Michael Watts
[SOLVED] Multiple Reports in Single Frame
I have an html form with two radio buttons, two iframes, and a button control.
The radio buttons allow users to select either summary or detail reports.
When the user selects the summary reports radio button the two summary reports should display, in their respective assigned frames, when the button is clicked. If they select the detail reports radio button the two detail reports should display, in the same two frames, after clicking the button.
How do I do this in App Studio's HTML Composer?

This message has been edited. Last edited by: Michael Watts,


8.0.03/Windows7
October 16, 2014, 06:49 AM
SSander
Create FEX which controls what you execute.

IF radiobutton tells that its "DETAILS" then include detailed fex otherwise summary fex. Also there is SET command to say in which frame to execute the report.

Regards,


Release: WebFOCUS 8104, AppStudio: 8105
OS: Windows
Output: HTML,Excel,Active Reports
October 16, 2014, 07:41 PM
StuBouyer
Within the App Studio HTML Composer add a new task and add the report (and target frames) to the task.

Then add javascript to the button that does something like this:

//Begin function form1Submit_onclick
function form1Submit_onclick(event) {
// Get value of the checkbox
var showReports = IbComposer_getCurrentSelection('checkbox1');
// Execute the task to populate the summary reports
if (showReports == 'TRUE') {
  IbComposer_triggerExecution("task3",1);
  }
// Execute the regular task
IbComposer_triggerExecution("task2",1);
}
//End function form1Submit_onclick
  


The new App Studio "Task & Animations" panel allows a lot more control than Dev Studio did. However I'm still working out how to make use of them - also the IbComposer_triggerExecution function is undocumented as of release 8.0.07.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
October 22, 2014, 10:28 PM
Michael Watts
[SOLVED]
Thank you everyone for your feedback. I went with the FEX solution, although I liked the javascript one as well.


8.0.03/Windows7
October 23, 2014, 07:51 AM
MartinY
Michael, edit the first post of this thread and put the [SOLVED] tag at the beginning of the subject.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007