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     Changing format on the go......

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Changing format on the go......
 Login/Join
 
Platinum Member
posted
I have two types of records - "P" and "S". Each of these have an amount field. If the record is a "P" record I want my amount field to be displayed with commas and a $ sign. If the record is an "S" record I want the amount field to be displayed with only commas - NO $ sign. Can anyone give me an example of how this is done.... Thanks so much ......
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Guru
posted Hide Post
Here is come code that should help you:<br />
DEFINE FILE CAR
FMT/A8 = IF RETAIL_COST GE 10000 THEN 
'D12.2' ELSE 'D12.2M';
END
-RUN
TABLE FILE CAR
SUM
RETAIL_COST
RETAIL_COST/FMT
BY COUNTRY
BY CAR
END
You can
change the if statement to look
for P's and S's.

This message has been edited. Last edited by: <Mabel>,
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Platinum Member
posted Hide Post
Thanks so much CurtisA..... I was trying to put the entire RETAILCOST/D12.2C in the define..... I didn't even think about just doing the Format.........
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Guru
posted Hide Post
Report painter also has no problem with creating dynamic field formats this way too.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Platinum Member
posted Hide Post
Report Painter.... Right click on field, select dynamic and then select the FMT ( or whatever name you gave the already defined field) .......

Took me a little bit but I found it - if in fact this is how you would have done it .... thanks for the tip that Report Painter does this too...... I'm just starting to use Report Painter it's amazing all the things it can do........ Cool

and my user is very happy I could accomodate her particular formatting issue......
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report 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     Changing format on the go......

Copyright © 1996-2020 Information Builders