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] conditional page foot notes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[solved] conditional page foot notes
 Login/Join
 
Guru
posted
I like to print 2 foot notes on each page if any of the detail lines on the current page satisfy certain conditions. 2 conditions are independent and transitional, will be phased out over time.

Any sugguestions?

Thanks.

Hua

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


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Virtuoso
posted Hide Post
Can you DEFINE or COMPUTE fields for the FOOTING that contain a value if the condition(s) are true and blank when false?

DEFINE FILE ...
 FOOTING1/A50 = IF <condition is true> THEN '<text>' ELSE ' ';
 FOOTING2/A50 = IF <condition is true> THEN '<text>' ELSE ' ';
END
TABLE FILE ...
 PRINT/SUM ...
 BY ...
 HEADING
 "..."
 FOOTING
 "<FOOTING1 "
 "<FOOTING2 "
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Guru
posted Hide Post
Thanks Dan, this should do it.

quote:
DEFINE FILE ...
FOOTING1/A50 = IF "condition is true" OR LAST FOOTING1 NE ' ' THEN "text" ELSE ' ';
FOOTING2/A50 = IF "condition is true" OR LAST FOOTING2 NE ' ' THEN 'text' ELSE ' ';
END



Hua


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Guru
posted Hide Post
Not quite, how do I reset the fields to blanks on page-break?


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Virtuoso
posted Hide Post
Can you use SUBFOOT instead of FOOTING?

ON <sort break> COMPUTE/RECAP FOOTING1/A50 = ... ;
ON <sort break> COMPUTE/RECAP FOOTING2/A50 = ... ;
ON <sort break> PAGE-BREAK AND SUBFOOT
"<FOOTING1 "
"<FOOTING2 "


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Guru
posted Hide Post
Dan,

I am just thinking it aloud, that could the foot notes be reset before printing, using the recap/recompute?

Hua


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Master
posted Hide Post
quote:
ON COMPUTE/RECAP FOOTING1/A50 = ... ;
ON COMPUTE/RECAP FOOTING2/A50 = ... ;
ON PAGE-BREAK AND SUBFOOT
""


you can use WHEN phrase to conditional display for SUBFOOT

ON <sort break> PAGE-BREAK AND SUBFOOT
"<FOOTING1 "
"<FOOTING2 "
WHEN <condition>;
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Guru
posted Hide Post
Ram,

I see where you and Dan trying to lead me to. I had few attempts but not getting anywhere.

Here is the sample I WISH it worked:
TABLE FILE CAR
PRINT 
     MODEL
     SEATS
     DEALER_COST
BY COUNTRY
BY CAR
ON COUNTRY 
SUBFOOT WITHIN
"*some models have 2 seats"  
WHEN MIN.SEATS EQ 2;
SUBFOOT
"**SOME MODELS HAVE 5 SEATS"
WHEN MAX.SEATS EQ 5;
END
  

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


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Virtuoso
posted Hide Post
What isn't working? If you add a PAGE-BREAK on COUNTRY, the output seems to do exactly what you wanted.

TABLE FILE CAR
 PRINT MODEL
       SEATS
       DEALER_COST
 BY COUNTRY PAGE-BREAK
 BY CAR
 ON COUNTRY 
  SUBFOOT
   "*some models have 2 seats"  
   WHEN MIN.SEATS EQ 2;
  SUBFOOT
   "**SOME MODELS HAVE 5 SEATS"
   WHEN MAX.SEATS EQ 5;
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Guru
posted Hide Post
It only worked on either one condition. When forced to run with 2 conditions, only the last one was tested. GUI too drops the first condition.


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Guru
posted Hide Post
I recall now that some posts suguested using the stylesheet to fool the appearance of the report seems do the trick.

I might have to use this trick for now. Hope someone come up with better solution.

DEFINE FILE CAR
NOTE1/A50 = '* some models have 2 seats';
NOTE2/A50 = '** SOME MODELS HAVE 5 SEATS';
END
TABLE FILE CAR
PRINT 
     MODEL
     SEATS
     DEALER_COST
BY COUNTRY
BY CAR
     
ON COUNTRY SUBFOOT
"<NOTE1"
"<NOTE2"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
     DEFMACRO=COND0001,
     MACTYPE=RULE,
     WHEN=N4 NE 2,
$
     DEFMACRO=COND0002,
     MACTYPE=RULE,
     WHEN=N4 NE 5,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
TYPE=SUBFOOT,
     BY=1,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     COLOR='WHITE',
     MACRO=COND0001,
$
TYPE=SUBFOOT,
     BY=1,
     LINE=2,
     OBJECT=FIELD,
     ITEM=1,
     COLOR='WHITE',
     MACRO=COND0002,
$
ENDSTYLE
END
  


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report This Post
Guru
posted Hide Post
quote:
What isn't working?


SUBFOOT WITHIN...
The keyword WITHIN was missing. Sweating
GUI doesn't seem to like it.


Thanks for your help.


Hua

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


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
 
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008Report 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] conditional page foot notes

Copyright © 1996-2020 Information Builders