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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
TABLE FILE CAR
PRINT MODEL COUNTRY WARRANTY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, TARGET='_blank', FOCEXEC=car_lnch(COUNTRY=COUNTRY), $
Then, on the resulting report, click the country hyperlink which runs car_lnch.fex. This is an external fex that only contains
I would like then to have a hidden variable in car_page (&COUNTRY) that is passed to car_cht.fex, which then displays on car_page.htm at runtime.
I'm at the GUI's mercy when creating my html. I've seen examples of how to do this using !IBI.AMP.COUNTRY, but I don't know how to use this in the APP Studio GUI. Can anyone help explain or possibly even show me a different way to do it? Thanks
I don't know if the code for the html or the other fex is needed, but here it is anyway:
The chart fex:
GRAPH FILE CAR
WHERE COUNTRY EQ '&COUNTRY.EVAL'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH GAUGE1
Open your HTML page in composer, open the parameters tab and select your "hidden" control (the lozenge shaped one), right click and select "settings". Ensure the "data Type" is set to "static" and click on the "new" icon. Add the value !IBI.AMP.COUNTRY; - not forgetting the exclamation mark and the trailing semi-colon.
Save and run.
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
I see what Neelima is try do but is wrong because include script in HTML need be -HTMLFORM BEGIN and -HTMLFORM END yes?
Depends.. Is the HTML in an HTML file or a FEX.. If in a FEX, then yes, if in an HTML then no.
Personally, I don't use HTML Composer, I put all my HTML in FEXes and write all my code at an HTML5/CSS3 standard. This way I can pass anything I want using FEX Parameters and still have the greatness of HTML5/CSS3. Unbound to the limits of HTML Composer.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server