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     Dynamic conditional formatting

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dynamic conditional formatting
 Login/Join
 
Silver Member
posted
In a guided ad-hoc report where you don't know the sequence of selected elements (user will determine that at runtime)
How can we add conditional formatting to a cell when we have no clue what the Nn will be
example

DEFMACRO=COND0001,
MACTYPE=RULE,
WHEN=N3 EQ 'RED', can the when = be a guided ad-hoc parameter?

I tried a WHEN = N* that didn’t work, tried C* and that also wasn’t successful
Respectfully,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 37 | Registered: December 03, 2010Report This Post
Virtuoso
posted Hide Post
You say "Guided Ad-Hoc". I suppose that means that the user provides the field names.
In that case, you could use:
  
DEFMACRO=COND0001,
MACTYPE=RULE,
WHEN=fieldname EQ 'RED'


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Silver Member
posted Hide Post
What if the field name is not selected by the user at run time will the fex run or will an error be generated?

That was a good idea but as user are fickle if they don’t select the field at runtime we end up with the error
(FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE 18: MACRO=COND0001
So that will not fit the Dynamic user ad-hoc kind of conditional formatting but is was worth a try and I thank you for your attention to this request for help.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 37 | Registered: December 03, 2010Report This Post
Virtuoso
posted Hide Post
You can place all the unused choices at the end of the list of verb objects, with NOPRINT, and code
TYPE=(as applicable), COLUMN=fieldname, ..., WHEN=fieldname EQ 'value', $

Both references to fieldname will then be syntactically valid. If fieldname is selected by the user and appears (earlier in the list) as a visible verb-object, the rule will be applied there (and both the selection and the condition will be taken as references to the printed column); otherwise the rule will refer to the NOPRINT verb object and will be valid but will have to no effect on rendition of the report.

This assumes that all the selectable verb objects are listed in a single segment of the synonym. If that is not so, there could be side-effects from the inclusion of the additional fields.

This message has been edited. Last edited by: j.gross,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
That worked thank you...

Let me share
Dynamic summaries from a guided parameter report with 7.6.4 where multiple BY is not recognized


might be a useful tip for someone.

-* Set up and strip the user parameter into usable code for the table file note I add NOPRINT to each &USERSELECT


&USERSELECT = '&USERSELECT'

  &USERSELECT.(AND(<THE_TEAM_#,THE_TEAM_# NOPRINT>,<TEAM_NAME,TEAM_NAME NOPRINT>,<COUNTRY,COUNTRY NOPRINT>,<STATEPROVINCE,STATEPROVINCE NOPRINT>,<CITY,CITY NOPRINT>,<ZIPCODE,ZIPCODE NOPRINT>,<ADDRESS,ADDRESS NOPRINT>,<DATE_APPROVED_BIA,DATE_APPROVED_BIA NOPRINT>,<THE_PROCESS,THE_PROCESS NOPRINT>,<DEFAULT_BP_CRITICALITY,DEFAULT_BP_CRITICALITY NOPRINT>,<TEAM_REQUIRED_CRITICALITY,TEAM_REQUIRED_CRITICALITY NOPRINT>,<REJECTREASON,REJECTREASON NOPRINT>,<COMMENTS,COMMENTS NOPRINT>,<DAILYREVENUELOSS,DAILYREVENUELOSS NOPRINT>,<DAILYPENALTIES,DAILYPENALTIES NOPRINT>,<AVERAGETRANSACTVALUES,AVERAGETRANSACTVALUES NOPRINT>,<PEAKTRANSACTVALUES,PEAKTRANSACTVALUES NOPRINT>,<APPLICATIONCODE,APPLICATIONCODE NOPRINT>,<SERVICE_APPLICATION_NAME,SERVICE_APPLICATION_NAME NOPRINT>,<LEVEL3,LEVEL3 NOPRINT>,<R_ADDRESS,R_ADDRESS NOPRINT>,<R_CITY,R_CITY NOPRINT>,<R_STATE,R_STATE NOPRINT>,<R_COUNTRY,R_COUNTRY NOPRINT>,<R_ZIP,R_ZIP NOPRINT>,<R_NAME,R_NAME NOPRINT>)).1st PART BODY OF REPORT.


-SET &TEXT2 = STRREP(&USERSELECT.LENGTH,&USERSELECT,3,'AND',2,'BY',&USERSELECT.LENGTH,'&USERSELECT');
-SET &THEBY = STRIP(&TEXT2.LENGTH,&TEXT2,'''',&TEXT2);

-SET &THEPSUM = STRREP(&USERSELECT.LENGTH,&USERSELECT,7,'NOPRINT',1,'''',&USERSELECT.LENGTH,'&USERSELECT');
-SET &THESUMP = STRIP(&THEPSUM.LENGTH,&THEPSUM,'''',&THEPSUM);

-TYPE &THESUMP
-TYPE &THEBY


-* end of parameter prep work


in my world the SQL stuff that is the "MST" file
then

TABLE FILE SQLOUT
SUM FST
&THESUMP
BY &THEBY NOPRINT

This query has distinct records at the detail if (all) columns are selected

But if you selected a subset of the columns it looked like there were duplicates rows

By dynamically linking the user selection with the "by" any possible summary is possible this is probably a mute point with a higher version of web focus...


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 37 | Registered: December 03, 2010Report 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     Dynamic conditional formatting

Copyright © 1996-2020 Information Builders