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 want to format the selection criteria in the report header. This selection criteria is being passed from a different application and I am using -set commands to display that conditionally in the report header.
-SET &ACCOUNTCLASSDESC = IF &IACCOUNTCLASSDESC EQ '' THEN 'Account Class: All' ELSE 'Account Class: ' ||&IACCOUNTCLASSDESC ; -SET &METHODDESC = IF &IMETHODDESC EQ '' THEN 'Call Method: All' ELSE 'Call Method: ' ||&IMETHODDESC ; -SET &SEGDESC = IF &IMARKETSEGMENTDESC EQ '' THEN 'Segment: All' ELSE 'Segment: ' || &IMARKETSEGMENTDESC; -SET &REPORTCATEGORY = IF &IMEREPORTCATDESC EQ '' THEN 'Report Category: All' ELSE 'Report Category: ' ||&IMEREPORTCATDESC;
-* Report Header ON TABLE SUBHEAD "&ACCOUNTCLASSDESC<+0>&SEGDESC<+0>&METHODDESC<+0>&REPORTCATEGORY<+0> <+0> "
-- The final result if none selected
Account Class: All Segment: All Call Method: All Report Category: All
you are using the grid, and each item of that grid can get a different fontcolor, bold setting etc, only the background is always the same per line (I just found out today) So what you need to change is that the text "account class" is not in your amper field, but hard coded in the header and in a separate grid field.
ON TABLE SUBHEAD "&ACCOUNTCLASSDESC<+0>&SEGDESC<+0>&METHODDESC<+0>&REPORTCATEGORY<+0> <+0> "
- Yes we can do this. You can use TYPE=SUBHEAD, BY=1, ITEM=1, COLOR=BLACK, $ TYPE=SUBHEAD, BY=1, ITEM=2, COLOR=READ, $ to apply color to an individual item in subhead..
Now in your example
&ACCOUNTCLASSDESC - is combination of label and value , and you want label colored black and value ('All') colored red so here is what I think you may do
SET &ACCOUNTCLASSDESC = IF &IACCOUNTCLASSDESC EQ '' THEN 'All' ELSE &IACCOUNTCLASSDESC ; -SET &METHODDESC = IF &IMETHODDESC EQ '' THEN 'All' ELSE &IMETHODDESC ; -SET &SEGDESC = IF &IMARKETSEGMENTDESC EQ '' THEN 'All' ELSE &IMARKETSEGMENTDESC; -SET &REPORTCATEGORY = IF &IMEREPORTCATDESC EQ '' THEN 'All' ELSE &IMEREPORTCATDESC;
-* Report Header ON TABLE SUBHEAD "Account Class:<+0>&ACCOUNTCLASSDESC<+0> All Segment:<+0>&SEGDESC<+0> Call Method:<+0>&METHODDESC<+0> Report Category:<+0>&REPORTCATEGORY<+0> <+0> "
and then apply stylesheet above to color each item the way you want them colored. item 1,3,5 & 7 are all labels and item 2,4,6 & 8 are selected values..
Hope this helps !!
-Yogesh Patel ------------------------------------------------------------------------ PROD: WF 764 on Linux Apache tomcat v5.5 DEV: WF 768 on Linux
Posts: 42 | Location: Edison, New Jersey | Registered: January 30, 2007
The only addition I would make to that is to use RED instead of READ .
Also check out the article by Susannah Jones entitled "What is Indian Red anyway" which gives a good overview of what colours that Excel can display (yes they are limited!!).
Another excellent site (again thanks to Susannah for putting me onto this one) is www.colorsontheweb.com
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
Why not simplify your task and convert one-row-of-three into 3-rows-of-one. 'Echo' the filter specs in a two column by 3 row diaplay. Put the filter's name in the first column and it's value in the 2nd column. Use <+n> spacing controls to left-justify both columns. Takes up more vertical realestate but it's simpler to code and just as easy to read as colors.
WIN/2K running WF 7.6.4 Development via DevStudio 7.6.4, MRE, TextEditor. Data is Oracle, MS-SQL.
Posts: 154 | Location: NY | Registered: October 27, 2005