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.
Hoping someone can help or point me in the right direction. Let's say I have a grid with a category as the row, a date as the column, and some value:
Category Month 1 Month 2 Month 3 Etc -------- ------- ------- ------- Category A 1234 0 0 Category B 0 2345 3456 Category C 0 0 0 (edit - sorry, this grid didn't display in the message the way it does in the editor, not sure how to fix but I think you get the idea).
Easiest way I can describe what I am thinking of is Excel.. you highlight the values and turn on conditional formatting. The formatting can be tied to whatever the values are.
In Webfocus I've been searching and the only way I can see to do formatting of cells is in the styling, and would be to style the sheet based on hard-coded values or based on comparing to some other cell.
Is there some relatively easy way in webfocus to to just color/style cells in a grid based on all the values displayed -- i.e. higher value cells are darker, lower value cells are lighter, 0's are white?This message has been edited. Last edited by: FP Mod Chuck,
First to have your sample properly displayed enclose with the code tag, most right icon :
</>
in the option ribbon of the discussion editor and place your text between the two tags.
Second : Search in the Knowledge Base for : DEFMACRO. It could be a way to do it. You will then end up with topics on styling with macros. Search in the Knowledge Base for : when clause in styling. It could be another way to do it. WHEN can be used in multiple ways.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Is there some relatively easy way in webfocus to to just color/style cells in a grid based on all the values displayed -- i.e. higher value cells are darker, lower value cells are lighter, 0's are white?
You can achieve a close approximation of Excel's Conditional Formatting > Color Scales feature for data in a column. Use COMPUTE (with NOPRINT) to capture the minimum and maximum values of the column, then further compute the range, and the endpoints of sections (quartiles or deciles or whatever granularity achieves a satisfactor gradient effect). Define a corresponding set of RGB color declarations (amper variables) for the sections thus defined, and reference them in your WHEN clauses for the background color of the column's cells.
I have an Excel file that will generate the RGB vars, for a 15-color breakdown. Send me a PM if you would like a copy.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
basic condtional formatting as seen in the above syntax will work. Although, I prefer using COLUMN=FileName rathe than COLUMN=N#. This makes it easier to mantan and follow the logic. Perhaps a NFR can be added to allow the selection of fields by name as well as reference numbers.
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005