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.
Try the following, the only problem is that it inserts a 0 into what would have been an empty cell
SET HOLDLIST=PRINTONLY SET ASNAMES=ON TABLE FILE CAR SUM SEATS ACROSS COUNTRY NOPRINT BY MODEL ON TABLE HOLD AS XX FORMAT ALPHA END CHECK FILE XX HOLD -RUN -* TABLEF FILE HOLD PRINT COMPUTE FN/A20= EDIT(ALIAS,'999') ; COMPUTE FT/A20=' AS ' | '''' || EDIT(FIELDNAME,'$$$9999999999') || '''';
WHERE FLDNO NE 1 ON TABLE HOLD AS FIELDS FORMAT ALPHA END -RUN -* TABLE FILE CAR BY MODEL ON TABLE HOLD AS ZZ FORMAT ALPHA END -RUN TABLEF FILE FIELDS PRINT COMPUTE COUNTA/I5= LAST COUNTA +1; NOPRINT COMPUTE COUNTER/I9= COUNTA -1; NOPRINT COMPUTE STYLE/A100='TYPE=DATA, COLUMN=' || FN ||',BACKCOLOR=RED,WHEN=' || FN | ' EQ 0, $'; ON TABLE HOLD AS CELLF FORMAT ALPHA END -RUN TABLE FILE XX SUM -INCLUDE FIELDS BY MODEL ON TABLE SET STYLE * -INCLUDE CELLF ENDSTYLE END
This message has been edited. Last edited by: <Mabel>,
Providing an example that runs on all WebFOCUS environments would help us help you.
Here is an example that might be doing what you need. Unfortunately I used DevStudio to create it, so the code is unnecessarily long.
Basically, if I understand correctly, you would like to use a background colour for the column title of your BY field. Unfortunately, the background colour styling will only work if there's text in the column title - if you have AS '' to remove the text, then you cannot have a background colour. So, simply make the column title text colour and background color the same.
i use that wasted real estate in an across table with a table overlay, with a z-index and absolute positioning. cheating, i know, html only, i know, but you might be able to use the idea.