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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
PDF with REPEAT
 Login/Join
 
Platinum Member
posted
Can anyone tell me how to create a PDF statement before a REPEAT that will open the PDF like:

ON GRAPH PCHOLD FORMAT PDF OPEN


And then after the ENDREPEAT CLOSE it by the following:


ON GRAPH PCHOLD FORMAT PDF CLOSE


Do I have to do this within the REPEAT by doing a CASE/IF or can this be done outside of the REPEAT.


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Expert
posted Hide Post
neuro,

Try something like this as I have found the SET COMPOUND = OPEN / CLOSE problematic at best in 7.1.3!

SET HOLDLIST = PRINTONLY
TABLE FILE CAR
BY COUNTRY
ON TABLE SAVE
END
-RUN
-SET &Loops = &LINES;
-SET &Cnt = 1;
-READ SAVE, &Country&Cnt.EVAL
-REPEAT :Loop WHILE &IORETURN EQ 0;
-SET &Cnt = &Cnt + 1;
-READ SAVE, &Country&Cnt.EVAL
-:Loop

-SET &Cnt = 1;
-REPEAT :Loop2 &LINES TIMES;
-SET &Compound = IF &Cnt EQ 1 THEN 'OPEN NOBREAK' ELSE IF &Cnt EQ &Loops THEN 'CLOSE' ELSE 'NOBREAK';
TABLE FILE CAR
SUM RCOST
    DCOST
 BY CAR
 BY MODEL
 WHERE COUNTRY EQ '&Country&Cnt.EVAL'
ON TABLE PCHOLD FORMAT PDF &Compound
END
-SET &Cnt = &Cnt + 1;
-:Loop2


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, 2004Report This Post
Platinum Member
posted Hide Post
Awesome, it worked for your CAR example, but after modifying it a bit I was able to get it to work for my code!

Many thanks!


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Expert
posted Hide Post
neuro,

You are most welcome, glad it helped you out!

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, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders