Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Multiple Reports in Single Frame
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Multiple Reports in Single Frame
 Login/Join
 
Member
posted
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
 
Posts: 13 | Registered: July 02, 2014Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 89 | Registered: November 19, 2013Reply With QuoteReport This Post
Guru
posted Hide Post
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)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Reply With QuoteReport This Post
Member
posted Hide Post
[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
 
Posts: 13 | Registered: July 02, 2014Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 2347 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Multiple Reports in Single Frame

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.