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     when and stylesheet on defined field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
when and stylesheet on defined field
 Login/Join
 
<Vipul>
posted
I am having problems using when in stylesheet to color the value in a column when it is defined field and I cannot use the real field in the when clause. please see the code attached and help me.


-* File testwhen.fex
DEFINE FILE CAR
DEALERCOST/P17.2CM = IF COUNTRY EQ 'ENGLAND' THEN DEALER_COST ELSE 0;
END
-*
TABLE FILE CAR
SUM DEALER_COST
DEALERCOST
RETAIL_COST
BY MODEL
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
GRID=OFF,
$
TYPE=REPORT,
STYLE=NORMAL,
FONT='ARIAL',
SIZE=8,
BACKCOLOR='NONE',
$
TYPE=DATA,
SIZE=8,
BACKCOLOR=( RGB(255 255 255) RGB(230 230 230) ),
$
TYPE=REPORT,
COLUMN=N1,
WRAP=1.000000,
$
TYPE=REPORT,
COLUMN=N2,
JUSTIFY=LEFT,
WRAP=1.20000,
$
TYPE=DATA,
COLUMN=N2,
COLOR=RED, WHEN= DEALER_COST LE 5000 ,$
$
TYPE=DATA,
COLUMN=N3,
COLOR=RED, WHEN= DEALERCOST LE 5000 ,$
$
TYPE=TITLE,
BACKCOLOR=RGB(000 000 102),
COLOR=RGB(255 255 255),
$
-************************
TYPE=SUBHEAD, SIZE=8, $
ENDSTYLE
END
-RUN
-EXIT
I need the same behaviour on the dealercost field as with dealer_cost. I tried holding the first table request and then using the hold file - doesn't work.

Thanks in Advance,

Vipul

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
<Vipul>
posted
I have fixed this problem....I am posting this as this was so simple but totally threw me off. Yes I am a rookie.

Just so you donot make such silly stupid mistakes like I do all the time.

I just have to change the Defined field format from Packed to Decimal. The when condition will not work on packed fields

see: [url]
http://techsupport.informationbuilders.com/ibase/master...create16.htm#1258114
[/url]

Vipul :-)
 
Report This Post
<Pietro De Santis>
posted
Vipul,

Don't be hard on yourself. I would say that the fact that WHEN styling won't work with a packed field is a deficiency of the software, not of the programmer!

Pietro.
 
Report 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     when and stylesheet on defined field

Copyright © 1996-2020 Information Builders