Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     html layout launch page - call different reports from push button

Read-Only Read-Only Topic
Go
Search
Notify
Tools
html layout launch page - call different reports from push button
 Login/Join
 
Master
posted
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.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
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.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
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.
 
Posts: 611 | Registered: January 04, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     html layout launch page - call different reports from push button

Copyright © 1996-2020 Information Builders