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.
TABLE FILE CAR
PRINT MODEL COUNTRY WARRANTY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, TARGET='_blank', FOCEXEC=car_lnch(COUNTRY=COUNTRY), $
END
Then, on the resulting report, click the country hyperlink which runs car_lnch.fex. This is an external fex that only contains
-HTMLFORM CAR_PAGE
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:
-SET &ECHO=ALL;
-? &
GRAPH FILE CAR
SUM CNT.MODEL
WHERE COUNTRY EQ '&COUNTRY.EVAL'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH GAUGE1
END
< !DOCTYPE html> <script type="text/javascript"> //confidential_id=IBI_OptionsScript var bRuntimes=true;var szHtmlAlias="./ibi_html/";var is_mobile="false";var szRunTimeHtmlAlias="runTimeHtmlAlias";var cgipath="cgipath";var ib_composer="ib_composer";var map="ib_composer_map";var grid="ib_composer_grid";var emf="ib_composer_emf";var ibiOptions = new Array(cgipath,ib_composer);if(typeof(szRunTimeHtmlAlias) === 'string' && szRunTimeHtmlAlias.indexOf('/') == 0)szHtmlAlias=szRunTimeHtmlAlias;document.write('<script src="'+szHtmlAlias+'ibigbl.js" type="text/javascript"><\/script>');<script type="text/javascript"> //confidential_id=IBI_ibigblloadCss if(typeof ibigblloadCss === 'function'){ibigblloadCss(null);addIntlTranslatedJS("composertrans.js");}else {alert("JavaScript alias './ibi_html/' is not valid.");window.location("about:blank");}HtmlPage<script type="text/javascript"> //confidential_id=clientEventHandlersJS
//Begin function window_onload function window_onload() {
UpdateData();
// TODO: Add your event handler code here //add onInitialUpdate() function to make changes before initial run of the reports } //End function window_onload < !--//confidential_id=focus_xmlelement
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.
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
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