Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HTML Compound Report going to Infinite Loop.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] HTML Compound Report going to Infinite Loop.
 Login/Join
 
Gold member
posted
Hi,

I am trying to generate a compound HTML report where the count of number of reports is dynamic.
Following is the sample code snippet.

-REPEAT LOOP_HTML FOR &CT FROM 1 TO &LOOP_CNT
TABLE FILE CAR
PRINT MODEL
WHERE CTR EQ &CT
ON TABLE HOLD FORMAT HTMTABLE AS REPORT&CT
END
-RUN
-LOOP_HTML
-SET &J=0;
-HTMLFORM BEGIN
-GENERATE
-SET &J=&J+1;
!IBI.FIL.REPORT&J;
-IF &J LT &LOOP_CNT THEN GOTO GENERATE;
-HTMLFORM END

The problem is that above code is running in an infinite loop and I am not able to figure out where the problem is.

Please help

-Regards
Swapnil

This message has been edited. Last edited by: Kerry,


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
Platinum Member
posted Hide Post
Hi,

Maybe you should put the non-HTML code outside the HTMLFORM BEGIN and END.

ie. -SET &J=&J+1;
-IF &J LT &LOOP_CNT THEN GOTO GENERATE;

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Gold member
posted Hide Post
I solved it...

There was a GOTO statement which is a starting condition to select the format. The program was again and again repeating the same thing. i.e. it was again calling the code for HTML.

Thanks anyways for your help.


Webfocus 7.7.03
Windows XP
Excel, PDF, HTML, APDF, AHTML, Maintain
 
Posts: 59 | Registered: July 22, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HTML Compound Report going to Infinite Loop.

Copyright © 1996-2020 Information Builders