Focal Point
html layout launch page - call different reports from push button

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

January 31, 2007, 08:47 AM
Jason K.
html layout launch page - call different reports from push button
We have many different flavors of the same data set up in our MRE and are investigating the html launch page functionality.

Is there a way to make the action of the push button change, as in go to a report that is grouped by Employee versus a report grouped by Team based on the selection of a radio button, for example?

Thank you.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
January 31, 2007, 09:10 AM
Tony A
Jason,

One way of doing it (without Javascript), and possibly the easiest, is to use a checkbox to give you a choice of report. Give your checkbox control a "name" attribute (i.e. name="Rep_Type") and provide it a value (i.e. value="Team") and reference that in your report to decide which report you run. When the checkbox control is checked it will take the value attribute to pass to WebFOCUS otherwise it will pass nothing. -

-* Default the value for when nothing is passed.
-DEFAULT &Rep_Type = "FOC_NONE"
-IF &Rep_Type NE 'Team' THEN :RunGroup;
-INCLUDE app/report_team_based.fex
-GOTO :Now_End;
-:RunGroup
-INCLUDE app/report_employee_based.fex
-:Now_End


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 31, 2007, 09:30 AM
susannah
Jason, here's the way i do this:
in the html
<select name="SORTBY">
<option value="TEAM" selected>sort by team?</option>
<option value="REP">sort by rep?</option>
</selected>

and then in the fex
-DEFAULT &SORTBY = 'TEAM';
TABLE FILE filename
SUM THIS AND THAT
-GOTO by1.&SORTBY ;
-by1.TEAM
BY TEAM etc
-GOTO by1.end ;

-by1.REP
BY REP_TYPE etc
-GOTO by1.end ;

-by1.end
ON TABLE SET STYLE *
...
END
-------------
This sort of an approach simplifies application management, you can use one skeleton fex to present your data in a few zillion different ways.
btw, do please edit your profile ;in your signature block tell us your configuration , and do tell us your location and something about who you are..




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
January 31, 2007, 09:54 AM
Jason K.
This is Great! Thanks.
One thing is confusing, however. I can't set up a launch block to use an HTML layout page.
(I like the HTML Layout painter because it handles the chaining functionality)

Do I have to take the HTML from an html layout painter and paste it into a .fex in order for my users to see it within the dashboard?

Thanks again for your help, your posts have really helped.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
January 31, 2007, 10:33 AM
Tony A
Jason,

You could create another fex and just include the line -

-HTMLFORM your_html_file_name

and then call that into your launch block.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 31, 2007, 11:55 AM
Jason K.
Great! I didn't know that -htmlform could bring in an entire file like an include.

Is there any way to use procedures or functions like a procedural language rather than these goto's?

I don't really know what to search for, if such a thing exists.

Thanks again!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.