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     [CLOSED] COMPOUND REPORT WITH LOOPS HELP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] COMPOUND REPORT WITH LOOPS HELP
 Login/Join
 
Platinum Member
posted
I have a compund report that prints six different reports on one request. The problem is that there are three flavors. If the user request the header information the customer parent flag is set to 'C' and only the header info is in the six compound reports. If they request the detail report, the customer parent flag is set to a 'D' and the detail info is in the six compound reports. That works great with the looping logic. My problem is they have an ALL option that sets the customer parent flag to a space. In this case it has to first print the header page with the six compound reports and then also print the detail page with the six compound reports. My logic is not working for the 'all' option. Can anyone help?

 -SET &XCNT = &LINES ;
-REPEAT XLOOP FOR &XIND FROM 1 TO &XCNT
-READ SAVE &XCUSTOMER.A4, &XDESTINATION.A2

-SET &XOPEN = IF &XIND EQ 1 THEN 'OPEN NOBREAK' ELSE 'NOBREAK' ;
-SET &CUSTPARENT = IF &ICUSTPARENTFLAG EQ 'D' THEN '&XDESTINATION.EVAL' ELSE IF &ICUSTPARENTFLAG EQ '' AND &XIND EQ 1 OR 2
-                  THEN '00' ELSE IF &ICUSTPARENTFLAG EQ '' AND &XIND GT 2 THEN '&XDESTINATION.EVAL'  ELSE '00';
-SET &CUSTDEST = '&XCUSTOMER'|'&XDESTINATION' ;
-SET &DDEST = IF &ICUSTPARENTFLAG EQ 'D' THEN  '&CUSTDEST.EVAL' ELSE IF &ICUSTPARENTFLAG EQ 'C' THEN '&XCUSTOMER.EVAL' ELSE
-               IF &ICUSTPARENTFLAG EQ '' AND &XIND EQ 1 THEN '&XCUSTOMER.EVAL' ELSE
-       IF &ICUSTPARENTFLAG EQ '' AND &XIND GT 1 THEN '&CUSTDEST.EVAL' ; 

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


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Virtuoso
posted Hide Post
to generate a compound report of 6 or 12 TABLE components.
set up two loops, perform 1 or both depending on the parameter

initialize &XOPEN to OPEN NOCLOSE beforehand, and set to NOCLOSE in each loop, after the END of the Table request.

place a -RUN (or -CLOSE) after end of first loop, to allow 2nd loop to re-read the customer list from the top.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
Thank you, I will try it


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report 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     [CLOSED] COMPOUND REPORT WITH LOOPS HELP

Copyright © 1996-2020 Information Builders