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.
I am looking to grab a data from our database and set it into a variable so that the variable can be reached on a static html page. I have been successfully able to read variables on that html page, but have not been able to set a variable with data from our database. Is there a way to do this? My other option is to just write the html in my fex file using the htmlform command, and print out data fields intermittently throughout the code, but that seems rather sloppy to me. Any advice will be great. I am very new to WebFOCUS, so I thank you in advance for you patience.
Do a query that gets you one line (the data you want to be in the variable).
FILEDEF HOLDX DISK holdx.dat TABLE FILE WHATEVER SUM X ON TABLE HOLD AS HOLDX END -RUN -READ HOLDX &VAR.A10.
Change A10 to the correct format/length for X. Now you have it in an amper var, and can put it on the HTML page with !IBI.AMP.VAR;This message has been edited. Last edited by: <Maryellen>,
To retrieve data from a table and make it available as a Dialog Manager variable, you have to TABLE the data, create a SAVE or HOLD file and then -READ the file. The Dialog Manager created by the -READ statement can then be used as a piece of HTML or inserted into a form element using JavaScript.
See the example below:
TABLE FILE CAR SUM COUNTRY BY COUNTRY NOPRINT WHERE RECORDLIMIT EQ 1 ON TABLE HOLD AS H1 FORMAT ALPHA ON TABLE SET HOLDLIST PRINTONLY END -RUN
-READ H1 &COUNTRY.A10.
-HTMLFORM BEGIN
THIS IS A COUNTRY: !IBI.AMP.COUNTRY;
-HTMLFORM ENDThis message has been edited. Last edited by: <Maryellen>,
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
If you have more than one value from your data base you can hold the values as a file for use in your HTML page.
FILEDEF statement DEFINE FILE CAR CNTY/A46 = '<OPTION VALUE="' |COUNTRY|| '">' | COUNTYRY |'</OPTION>'; END
TABLE FILE CAR SUM CNTY BY COUNTRY NOPRINT ON TABLE HOLD AS H1 FORMAT ALPHA END -RUN -HTMLFORM HTMFILE (to call an external HTML file that defines the display page or use -HTMLFORM BEGIN and -HTMLFORM END) -RUN