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     Print alternating row in same color with first record [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Print alternating row in same color with first record [SOLVED]
 Login/Join
 
Platinum Member
posted
Hello,

How can I make FOCUS determine each first row/line/record on a PDF page, to make it start alternating the rows always with the same color? I've been puzzling with TABPAGENO, counters etc.


 
$
TYPE=DATA,
BACKCOLOR=BY=???(RGB(255 255 255) RGB(215 235 194)), 


or something like

$
TYPE=DATA,
BACKCOLOR=WHEN=???(RGB(255 255 255) RGB(215 235 194)), [/CODE]

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


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Gold member
posted Hide Post
is the below output you want?
TABLE FILE CAR
PRINT *
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=DATA,
BACKCOLOR=(RGB(255 255 255) RGB(215 235 194)), $
ENDSTYLE
END


WF 8.1.04,Infoassist,Oracle, Excel, PDF,HTML.
 
Posts: 82 | Registered: January 06, 2014Report This Post
Platinum Member
posted Hide Post
Thank you for your reply. No, I get this part, what I'm looking for in particular is:

first page
BLUE
WHITE
BLUE

second page
BLUE
WHITE
BLUE

NOT

first page
BLUE
WHITE
BLUE

second page
WHITE
BLUE
WHITE


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Master
posted Hide Post
quote:
what I'm looking for in particular is:

first page
BLUE
WHITE
BLUE

second page
BLUE
WHITE
BLUE

APP PREPENDPATH IBISAMP
TABLE FILE GGSALES
PRINT SEQ_NO
COMPUTE PGNUM/I2 = TABPAGENO; NOPRINT
COMPUTE FLAG/I1 = IF PGNUM NE LAST PGNUM THEN 1 ELSE
                   IF LAST FLAG EQ 1 THEN 2 ELSE 1; NOPRINT
IF SEQ_NO LE 100
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE = DATA, BACKCOLOR = 'AQUA',  WHEN = FLAG EQ 1,$
TYPE = DATA, BACKCOLOR = 'WHITE', WHEN = FLAG EQ 2,$
ENDSTYLE
END  
 
Posts: 822 | Registered: April 23, 2003Report This Post
Platinum Member
posted Hide Post
Hi David,

Thank you for your solution. It works like a charm! Figured that the first define is not essential and could be replaced in the second define: replace PGNUM with TABPAGNO.

Thanks again,
Stephan


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report 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     Print alternating row in same color with first record [SOLVED]

Copyright © 1996-2020 Information Builders