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.
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.
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
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
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, 2011