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.
My requirement is to have alternating colors for each row (grey, white)for this report...however this requirement throws off my report's alingment. When I remove the grey & white rows...everything alings up as expected...I've created an example using the car file. I'm looking for suggestions...any help would be appreciated.
TABLE FILE CAR
SUM SALES BY COUNTRY
ON COUNTRY SUBFOOT
"Total Type 10:<CNT.COUNTRY”
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE HOLD AS HOLDNAME5 FORMAT PDF
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=DATA, BACKCOLOR=RGB(255 255 255),WHEN=SEQ EQ 1,JUSTIFY=LEFT,$
TYPE=DATA, BACKCOLOR=RGB(231 227 231),WHEN=SEQ EQ 0,JUSTIFY=LEFT,$
TYPE=REPORT,SIZE=9,FONT='ARIAL',ORIENTATION=LANDSCAPE,SQUEEZE=ON,GRID=OFF,$
TYPE=FOOTING, JUSTIFY=CENTER,$
-*TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,ITEM=2,POSITION=rsp0disacqid,JUSTIFY=LEFT,$
-*TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,ITEM=5,JUSTIFY=LEFT,$
TYPE=TITLE,STYLE=BOLD,$
ENDSTYLE
END
Thanks
Timothy
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
this is my actual code...the report needs to alternate colors between grey & white. When I have no backcolor syntax report is aligned with the rest of the report...however if I do include the backcolor...the first column data (report type) starts two characters to the right of the grey...ie with color:
record type
10
Total type 10:2
without color
record type
10
total type 10:2
TABLE FILE TEMPFIL0
PRINT
-*rsp0errorct AS 'Nbr of Errors' NOPRINT
FRAUD0DESC AS 'ERROR Code - Desc'
AND COMPUTE SEQ/I1 = IF LAST SEQ EQ 1 THEN 0 ELSE 1; NOPRINT
BY rsp0rectype IN 1 AS 'Record Type'
BY rsp0disacqid AS 'Acquirer ID'
BY rsp0dismchnum AS 'Discover Acct Nbr'
BY rsp0dbaname AS 'Merchant DBA'
BY rsp0errorct AS 'Nbr OF Errors'
-*
ON rsp0rectype SUBFOOT
" "
"Total Type 10:<ERRORCT10"
ON rsp0disacqid SKIP-LINE
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE HOLD AS HOLDNAME5 FORMAT PDF
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=DATA, WHEN=SEQ EQ 1,JUSTIFY=LEFT,BACKCOLOR=WHITE,$
TYPE=DATA, WHEN=SEQ EQ 0,JUSTIFY=LEFT,BACKCOLOR=GREY,$
-*TYPE=DATA, BACKCOLOR=RGB(255 255 255),WHEN=SEQ EQ 1,JUSTIFY=LEFT,$
-*TYPE=DATA, BACKCOLOR=RGB(231 227 231),WHEN=SEQ EQ 0,JUSTIFY=LEFT,$
TYPE=REPORT,SIZE=9,FONT='ARIAL',ORIENTATION=LANDSCAPE,SQUEEZE=ON,GRID=OFF,$
TYPE=FOOTING, JUSTIFY=CENTER,$
-*TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,ITEM=2,POSITION=rsp0disacqid,JUSTIFY=LEFT,$
-*TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,ITEM=5,JUSTIFY=LEFT,$
TYPE=TITLE,STYLE=BOLD,$
ENDSTYLE
END
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
with color: two blank spaces are displayed before record type - thus throwing dlignment
without color: two blanks are not displayed in front of record type - thus the alignment is correct
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
This won't work as the lines need to alternate colors one color when ln = 1 and the other color when ln = 0. Adding the Backcolor syntax adds to spaces in front of my 1st column data (report type) thus trowing off the alignment.
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
I see what you mean, but that is normal FOCUS behaviour, 2 char column spacing. There was a setting to change this but I think it only applied to HTML? In PDF the "IN 1" doesn't do much?
If Mickey has the Forum open and is checking, he may be able to give you some assistance.
You can use this code to demonstrate exactly what Tim means - just comment the multi colour line and compare the two runs of the report -
APP PREPENDPATH IBISAMP
TABLE FILE GGSALES
SUM DOLLARS AS 'ERROR Code - Desc'
BY REGION IN 1 AS 'Record Type'
BY ST AS 'Acquirer ID'
BY CITY AS 'Discover Acct Nbr'
BY STCD AS 'Merchant DBA'
BY PRODUCT AS 'Nbr OF Errors'
ON REGION SUBFOOT
" "
"Total Type 10:<TOT.DOLLARS"
ON ST SKIP-LINE
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
-* Comment and uncomment the following line to see the effect
TYPE=DATA, BACKCOLOR=(GREY WHITE), JUSTIFY=LEFT, $
TYPE=REPORT,SIZE=9,FONT='ARIAL',ORIENTATION=LANDSCAPE,SQUEEZE=ON,GRID=OFF,$
TYPE=FOOTING, JUSTIFY=CENTER,$
TYPE=TITLE,STYLE=BOLD,$
ENDSTYLE
END
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Your suggestion is basically how I am doing this now..in my code I compute "seq" and print the backcolor based on seq....the issue is this throws off my alignment. (puts 2 spaces before the record type)
TABLE FILE TEMPFIL0
PRINT
-*rsp0errorct AS 'Nbr of Errors' NOPRINT
FRAUD0DESC AS 'ERROR Code - Desc'
AND COMPUTE SEQ/I1 = IF LAST SEQ EQ 1 THEN 0 ELSE 1; NOPRINT
BY rsp0rectype IN 1 AS 'Record Type'
BY rsp0disacqid AS 'Acquirer ID'
BY rsp0dismchnum AS 'Discover Acct Nbr'
BY rsp0dbaname AS 'Merchant DBA'
BY rsp0errorct AS 'Nbr OF Errors'
-*
ON rsp0rectype SUBFOOT
" "
"Total Type 10:<ERRORCT10"
ON rsp0disacqid SKIP-LINE
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE HOLD AS HOLDNAME5 FORMAT PDF
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
TYPE=DATA, WHEN=SEQ EQ 1,JUSTIFY=LEFT,BACKCOLOR=WHITE,$
TYPE=DATA, WHEN=SEQ EQ 0,JUSTIFY=LEFT,BACKCOLOR=GREY,$
-*TYPE=DATA, BACKCOLOR=RGB(255 255 255),WHEN=SEQ EQ 1,JUSTIFY=LEFT,$
-*TYPE=DATA, BACKCOLOR=RGB(231 227 231),WHEN=SEQ EQ 0,JUSTIFY=LEFT,$
TYPE=REPORT,SIZE=9,FONT='ARIAL',ORIENTATION=LANDSCAPE,SQUEEZE=ON,GRID=OFF,$
-*TYPE=FOOTING, JUSTIFY=CENTER,$
-*TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,ITEM=2,POSITION=rsp0disacqid,JUSTIFY=LEFT,$
-*TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,ITEM=5,JUSTIFY=LEFT,$
-*TYPE=TITLE,STYLE=BOLD,$
ENDSTYLE
END
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
I had already removed this....this was an attempt to force this column to appear in the first column....The report is still off by 2...
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
Sorry Tim, I was editing the previous post because I understood what you meant The downside is that I am not sure that you can alter that behaviour in PDF?
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Notice this....this helps explain my problem. When you run the following as is...everything is aligned.
then un-comment the pchold and you'll see my problem...
TABLE FILE CAR
PRINT RCOST DCOST
BY COUNTRY
BY CAR
-*ON TABLE PCHOLD FORMAT PDF
-*ON TABLE SET BYDISPLAY ON
ON TABLE SET STYLE *
TYPE=REPORT, COLOR=NAVY, STYLE=BOLD,$
TYPE=DATA, BACKCOLOR=(BY=COUNTRY TEAL YELLOW GOLD),$
ENDSTYLE
END
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC
You are experienceing the addition of GAPs between the columns. I talk about this in my first article I wrote about HTML and PDF formatted reports. I will also be discussing this in my presentation at Summit 2008.
Basically, for PDF output reports, there are GAPs between columns, not spaces. Each column has a RIGHTGAP and a LEFTGAP. The code below shows you how to change these so the spacing looks correct.
TABLE FILE CAR PRINT RCOST DCOST BY COUNTRY BY CAR ON TABLE PCHOLD FORMAT PDF ON TABLE SET BYDISPLAY ON ON TABLE SET STYLE * TYPE=REPORT, COLOR=NAVY, STYLE=BOLD,$ TYPE=REPORT, COLUMN=COUNTRY, LEFTGAP=0.00,$ TYPE=REPORT, COLUMN=DCOST, RIGHTGAP=0.00,$ TYPE=DATA, BACKCOLOR=(BY=COUNTRY TEAL YELLOW GOLD),$ ENDSTYLE END
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
Mickey looks like those articles need to be mandatory reading for all. If anyone is going to Summit..go check out Mickey's presentation on this subject.
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005
Prod: WebFOCUS 7.6.10 MRE Oracle/Sybase Test: DevStudio 7.6.6 WF Server 7.6.6 Report Caster 7.6.6 Web Server - Tomcat MS Windows XP SP2 Output: HTML, Excel 2000 , PDF, CSV, DOC