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.
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,
DaveThis 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, 2011
-* 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?
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.
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 ...