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.
We are using an image map of US. When someone clicks on a state, such as FL, they drill down to a report for that state. This is working but we would like to add an output control so the user can select from PDF, EXCEL, etc.
The trick here is somehow grabbing that output value from that control and inserting it into the URL I've created to pass to the fex.
This is where we are stuck. We can always add a link onto the HTML report output to dump it to another output, but we'd like the option on the initial launch page. Any suggestions??
The URL is static within the HTML Code. To append to this URL seems really tricky. Looking into this issue further, looks like my approach may need to change here.
I am trying to include the onclick function within my link to retrieve the value from the dropdown box.
The important item here is to have a form control with a name attribute that you will use as the amper variable name within WebFOCUS.
In his example Francis has called his OUTPUT and used radio 'button' controls to provide the User with their choices. It could as easily be a SELECT (combo box) control. -
Note: I know that the closing option tag is not strictly necessary but older versions of Netscape used to require it and old habits die hard .
Incidently, within the GUI, if you choose USER as the output format the variable &WFFMT is used. For consistancy I use this as the variable name within all the fexes that I write that have multiple output formats.
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, 2004
Thanks Francis! Using your suggestions with some minimal tweaking is getting pretty much what I need. I ran into a little confusion when trying to add additional forms but I think I'll be ok. I need to add some additional report filters (product codes). This does pose the question..I am populating the radio button/drop downs as static values, how could I populate a dropdown from a data source and still pull it into my link?
Thanks Tony as well, I tried your suggestion for a different value I need to pass.
how could I populate a dropdown from a data source and still pull it into my link
I assume you're doing this by coding it, not by using the DevStudio GUI. The easiest way to populate a dropdown list from a data source would be to create a HOLD file that contains the options and then embed the HOLD file in the HTML.
Something like this very basic example:
TABLE FILE CAR
SUM
COMPUTE SELDATA/A100 =
'<OPTION VALUE="' || COUNTRY || '">' || COUNTRY || '</OPTION>';
BY COUNTRY NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS S_LEVEL1 FORMAT ALPHA
END
-RUN
-HTMLFORM BEGIN
<select name="SELECT1" size="1">
<option value=ALL>ALL</option>
!IBI.FIL.S_LEVEL1;
</select>
-HTMLFORM END
Poking around I was able to get a drop down to populate from a data source and integrate it into my form tag. I am still somewhat new to this..thanks for the help!
Another curveball thrown was they wanted to hover over states and see the % of total sales. We did this by using the HTMLFORM commands and populating the amper value (&WA_STRING) within ALT. It came out good, thanks all again.
francis, i've tried running your example and i can not get the fex (dummy) to run. i did create a fex named dummy, when i click on a provinces YUKON the fex dummy is not found. what am i missing here?
WF 8 version 8.2.04. Windows. In focus since 1990.
Posts: 189 | Location: pgh pa | Registered: October 06, 2004
Spence, the quickest way to determine what MRE parameters are required for a fex is to Publish it. This creates an HTML file with the required form parameters. Then you can simply copy these parameters into the Image Map HTML file. To make things easier, I'd put the Image Map HTML file in the same domain as the executed fex.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server