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 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.
HuaThis 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, 2008
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, 2007
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, 2008
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, 2008
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, 2007
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, 2008