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     [CLOSED] PDF Data Styling with Alternating Colors

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] PDF Data Styling with Alternating Colors
 Login/Join
 
Gold member
posted
I am trying to style my report data with alternate colors in PDF. I have it setup on a BY field.

The BY field that I am using is the 3rd BY field but it is the first one that is visible.

 
BY fieldname1 NOPRINT
BY fieldname2 NOPRINT
BY fieldname3
 


When I do the styling on fieldname3 in PDF, it just alternates colors for every line instead of on that BY field. If I change the output from PDF to HTML, the alternating woks without any problems at all.

Any ideas why this is happening?

Thanks,

Dave

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


WebFOCUS 7.7.03
Windows Web Server 2008
MS SQL Server 2000
Excel,CSV,PDF,HTML
 
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011Report This Post
Virtuoso
posted Hide Post
Works okay for both HTML and PDF in 7.7.03:

-* File alt_colour.fex
TABLE FILE CAR
PRINT 
     CAR.BODY.SEATS
     CAR.BODY.DEALER_COST
     CAR.BODY.RETAIL_COST
BY  CAR.ORIGIN.COUNTRY NOPRINT 
BY  CAR.COMP.CAR NOPRINT 
BY  CAR.CARREC.MODEL
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
TYPE=REPORT,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     FONT='ARIAL NARROW',
     SIZE=10,
     COLOR='BLACK',
     STYLE=NORMAL,
$
TYPE=DATA,
     COLUMN=N3,
     FONT='ARIAL NARROW',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR=( 'WHITE' 'SILVER' ),
     STYLE=NORMAL,
$
TYPE=TITLE,
     FONT='ARIAL NARROW',
     SIZE=10,
     COLOR='BLACK',
     BACKCOLOR='GRAY',
     STYLE=NORMAL,
$
ENDSTYLE
END



Would you create a sample version of your code using the CAR table for us to better try and reproduce what you're seeing?



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
Giving an example in the CAR file could prove to be difficult. I'm not the best at giving examples in the CAR file. The procedure I have is creating 2 HOLD files and 2 FILEDEF commands, joining the 2 HOLD files in the end and then outputting some data from each file.

I have pasted the CSS code below. Maybe that can help. If you really want an example, I could try. It seems like a cache issue, which I have no idea how to fix.

  
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='Letter',
     LEFTMARGIN=0.250000,
     RIGHTMARGIN=0.250000,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,
     FONT='ARIAL',
     SIZE=9,
     JUSTIFY=CENTER,
$
TYPE=DATA,
     BACKCOLOR=( BY=B2 RGB(211 230 248) 'WHITE' ),
$
TYPE=DATA,
     COLUMN=N3,
     JUSTIFY=LEFT,
$
TYPE=DATA,
     COLUMN=N2,
     JUSTIFY=LEFT,
$
TYPE=DATA,
     COLUMN=N1,
     JUSTIFY=LEFT,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TITLE,
     COLUMN=N3,
     JUSTIFY=LEFT,
$
TYPE=TITLE,
     COLUMN=N2,
     JUSTIFY=LEFT,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     STYLE=BOLD,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=2,
     STYLE=BOLD,
     JUSTIFY=RIGHT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=4,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=5,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=6,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=7,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=1,
     STYLE=BOLD+UNDERLINE,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=4,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=TEXT,
     ITEM=5,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=3,
     OBJECT=FIELD,
     ITEM=1,
     STYLE=BOLD,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=FIELD,
     ITEM=1,
     STYLE=BOLD,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=4,
     OBJECT=FIELD,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=FIELD,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=5,
     OBJECT=FIELD,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=FIELD,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=6,
     OBJECT=FIELD,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=7,
     OBJECT=TEXT,
     ITEM=1,
     STYLE=BOLD+UNDERLINE,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=7,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=7,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=7,
     OBJECT=TEXT,
     ITEM=4,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=7,
     OBJECT=FIELD,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=7,
     OBJECT=FIELD,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=8,
     OBJECT=TEXT,
     ITEM=1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=8,
     OBJECT=TEXT,
     ITEM=2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=8,
     OBJECT=TEXT,
     ITEM=3,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=8,
     OBJECT=TEXT,
     ITEM=4,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=8,
     OBJECT=FIELD,
     ITEM=1,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=3.000,
$
TYPE=TABHEADING,
     LINE=8,
     OBJECT=FIELD,
     ITEM=2,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=OFF,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=TEXT,
     ITEM=3,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=TEXT,
     ITEM=4,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=TEXT,
     ITEM=5,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=FIELD,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=9,
     OBJECT=FIELD,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=TEXT,
     ITEM=1,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=TEXT,
     ITEM=2,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=TEXT,
     ITEM=3,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=TEXT,
     ITEM=4,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=TEXT,
     ITEM=5,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=FIELD,
     ITEM=1,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=TABHEADING,
     LINE=10,
     OBJECT=FIELD,
     ITEM=2,
     BORDER-TOP=OFF,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=OFF,
     BORDER-RIGHT=OFF,
     BORDER-TOP-STYLE=SOLID,
     BORDER-BOTTOM-STYLE=SOLID,
     BORDER-LEFT-STYLE=SOLID,
     BORDER-RIGHT-STYLE=SOLID,
     BORDER-TOP-COLOR='BLACK',
     BORDER-BOTTOM-COLOR='BLACK',
     BORDER-LEFT-COLOR='BLACK',
     BORDER-RIGHT-COLOR='BLACK',
     JUSTIFY=LEFT,
     WIDTH=1.500,
$
TYPE=FOOTING,
     LINE=1,
     JUSTIFY=LEFT,
$
TYPE=FOOTING,
     LINE=2,
     JUSTIFY=LEFT,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSVALUE,
     ACROSS=2,
     JUSTIFY=LEFT,
$
TYPE=ACROSSVALUE,
     ACROSS=3,
     JUSTIFY=LEFT,
$
TYPE=ACROSSVALUE,
     ACROSS=4,
     JUSTIFY=LEFT,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=ACROSSTITLE,
     ACROSS=2,
     JUSTIFY=LEFT,
$
TYPE=ACROSSTITLE,
     ACROSS=3,
     JUSTIFY=LEFT,
$
TYPE=ACROSSTITLE,
     ACROSS=4,
     JUSTIFY=LEFT,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
TYPE=REPORT,
     COLUMN=N3,
     WRAP=1.500000,
$
TYPE=REPORT,
     COLUMN=N27,
     WRAP=6.000000,
$
TYPE=REPORT,
     COLUMN=N24,
     WRAP=6.000000,
$
TYPE=REPORT,
     COLUMN=N23,
     WRAP=6.000000,
$
TYPE=REPORT,
     COLUMN=N21,
     WRAP=6.000000,
$
TYPE=REPORT,
     COLUMN=N15,
     WRAP=6.000000,
$
ENDSTYLE


Thanks.


WebFOCUS 7.7.03
Windows Web Server 2008
MS SQL Server 2000
Excel,CSV,PDF,HTML
 
Posts: 71 | Location: Kingston, ON | Registered: May 03, 2011Report This Post
Virtuoso
posted Hide Post
Did you try the sample code I wrote with the CAR table? We need to make sure that you can indeed have alternating colours in one single BY field in both HTML and PDF which is what your original post was about and which is indeed possible in 7.7.03.

We don't expect you to replicate your whole business logic with the CAR table, just the final TABLE FILE that produces the actual report with alternating colours ... similar to what I atempted to do but perhaps including extra stuff you may have (such as conditional styling, dialogue manager, etc.).

Anyway, please try my code in your environment as is. If it doesn't work, then that's a product issue in 7.6.11 that needs to be dealt with with tech support, but if it does work in your version at least you'll know that what you want to have is indeed possible and what you have to do now is to carefully analyze the code, compare with my simple version and try and find where things break.

Sorry, your style declaration is too long and there is no context information to easily follow it through.

Start with baby steps. Comment out ALL of your styling and start adding your declarations back one by one, running it in each case to see how the report format changes .... oh wait a second ... I think I spotted something ...

...
TYPE=DATA,
     BACKCOLOR=( BY=B2 RGB(211 230 248) 'WHITE' ),
$



That syntax look funny to me ... I'm not saying that it's wrong but instead that I've never seen it before.

What about changing it to something like:

TYPE=DATA,
     COLUMN=B2, 
     BACKCOLOR=( RGB(211 230 248) 'WHITE' ),
$



That's more similar to what I used in my sample. Hopefully that'll help.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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     [CLOSED] PDF Data Styling with Alternating Colors

Copyright © 1996-2020 Information Builders