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     [Sharing] Change Field and Title on PAGE-BREAK

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Sharing] Change Field and Title on PAGE-BREAK
 Login/Join
 
Virtuoso
posted
I'll state the problem in terms of the CAR file.

Our customer wanted to sort a report by SEATS, COUNTRY, CAR and BODYTYPE, for 4 and 5 SEATS, PAGE-BREAK for SEATS.
Display is RCOST and SALES when SEATS=4, DCOST only for SEATS=5.
This is what we came up with:
  
DEFINE FILE CAR
F1/I6=IF SEATS EQ 4 THEN RCOST ELSE DCOST;
F2/I6S=IF SEATS EQ 4 THEN SALES ELSE 0;
TF1/A6 =IF SEATS EQ 4 THEN 'RETAIL' ELSE 'DEALER';
TF2/A5 =IF SEATS EQ 4 THEN 'SALES' ELSE ' ';
END
TABLE FILE CAR
PRINT 
     F1 AS ''
     F2 AS ''
BY  SEATS AS ''
BY  COUNTRY AS ''
BY  CAR AS ''
BY  BODYTYPE AS ''
     
ON SEATS PAGE-BREAK
HEADING
"SEATS<+0>COUNTRY<+0>CAR<+0>BODYTYPE<TF1<TF2"
IF SEATS EQ 4 OR 5
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
TYPE=DATA,
     COLUMN=N6,
     BACKCOLOR=RGB(255 255 153),
$
TYPE=DATA,
     COLUMN=N5,
     BACKCOLOR=RGB(204 255 204),
$
TYPE=DATA,
     COLUMN=N4,
     BACKCOLOR=RGB(255 255 153),
$
TYPE=DATA,
     COLUMN=N3,
     BACKCOLOR=RGB(204 255 204),
$
TYPE=DATA,
     COLUMN=N2,
     BACKCOLOR=RGB(255 255 153),
$
TYPE=DATA,
     COLUMN=N1,
     BACKCOLOR=RGB(204 255 204),
$
TYPE=TITLE,
     COLUMN=N6,
     BACKCOLOR=RGB(255 255 153),
$
TYPE=TITLE,
     COLUMN=N5,
     BACKCOLOR=RGB(204 255 204),
$
TYPE=TITLE,
     COLUMN=N4,
     BACKCOLOR=RGB(255 255 153),
$
TYPE=TITLE,
     COLUMN=N3,
     BACKCOLOR=RGB(204 255 204),
$
TYPE=TITLE,
     COLUMN=N2,
     BACKCOLOR=RGB(255 255 153),
$
TYPE=TITLE,
     COLUMN=N1,
     BACKCOLOR=RGB(204 255 204),
$
TYPE=HEADING,
     HEADALIGN=BODY,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     BACKCOLOR=RGB(204 255 204),
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     BACKCOLOR=RGB(255 255 153),
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     BACKCOLOR=RGB(204 255 204),
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=4,
     BACKCOLOR=RGB(255 255 153),
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     BACKCOLOR=RGB(204 255 204),
     COLSPAN=1,
     JUSTIFY=LEFT,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=2,
     BACKCOLOR=RGB(255 255 153),
     COLSPAN=1,
     JUSTIFY=LEFT,
$
ENDSTYLE
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [Sharing] Change Field and Title on PAGE-BREAK

Copyright © 1996-2020 Information Builders