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 having a table output which returns 1000 records. Business case is I have to show the output on browser page only, and hence I am loading the output in a IFRAME in my HTML page.
I happened to come across jquery's and its Datatables, which pulls in data during the scroll and hence reduces the burden on the browser page. Does anyone have any ideas / samples on how to use juery Datatables with WebFOCUS output. Thanks!This message has been edited. Last edited by: <Kathryn Henning>,
You are right, for 1000 records its not a burden. I referred that as a sample, however when the number is really huge say 10K on a HTML. Also I found there are many features in datatables like pagination, search option etc., which are easy to implement and also benefits the user more.
Here is a working example of WebFOCUS (using the CAR file) and jQuery Datatables. Datatables can be fed data in many ways, I chose a JavaScript array in this example.
I'll let you decipher the code. The two files can be put in any app folder - just change the HTMLFORM app reference (currently baseapp).
SET BYDISPLAY=ON
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
SET CENT-ZERO=ON
-RUN
TABLE FILE CAR
SUM
COMPUTE ROWCOUNT/P6 = ROWCOUNT + 1; NOPRINT
COMPUTE COMMA/A1 = IF ROWCOUNT EQ 1 THEN '' ELSE ',';
COMPUTE JS_ARRAY_VALUES/A500 =
'["' || COUNTRY || '","' ||
CAR || '","' ||
MODEL || '","' ||
TRIM('L', FPRINT(SALES,'D6','A10'), 10, ' ', 1, 'A10') || '","' ||
TRIM('L', FPRINT(WEIGHT,'D6','A10'), 10, ' ', 1, 'A10') || '"]';
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL NOPRINT
ON TABLE HOLD AS HDATA1
END
-RUN
-HTMLFORM baseapp/datatables1.htm
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
Of course, this probably does not answer the "huge" question. If the data is "huge", then it probably shouldn't be displayed in HTML at all, or, as Sashanka suggests, use WebFOCUS On-Demand Paging (WEBVIEWER):
Creating Reporting Applications With Developer Studio > Viewing and Printing Reports and Graphs > Navigating Through Multi-Page Web Reports
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