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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
currency format
 Login/Join
 
Silver Member
posted
Hi All,
Is there anyway we can change the currency format?

Example Indian Rupees would be displayed as 1,23,456.78

US $ would be 123,456.78

Canada $ would be 123 456,78


Webfocus 8002M, 8009
OS: Windows7
 
Posts: 33 | Registered: July 31, 2008Report This Post
Virtuoso
posted Hide Post
Suresh,

As far as I know, WF provides only CDN (continental decimal notation) where the decimal point is a comma and the separator is a period.
If you want something more, use the FTOA function to create an alpha field and then EDIT.


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
Virtuoso
posted Hide Post
quote:
US $ would be 123,456.78

Canada $ would be 123 456,78


As Daniel says, there is the CDN, is there any reason you don't want a comma in the Canadian, or was that an error on your post?


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
Leah,

I don't think it is an error: there a many countries where the 1000-separator is a space. And in switzerland it is the apostrophe '. Even in calculators!!!


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
Platinum Member
posted Hide Post
Did you try to define your data in the MFD as a curreny, and the name of the currency.
e.g.
FIELDNAME=PRICE,ALIAS=PR, FORMAT=D9.2,CURR=country_name-from_list ,$

Search the documentation for how to find the list of currencies.(search is in upper right hand of this page)


Release 7.6.9
Windows
HTML
 
Posts: 226 | Registered: June 08, 2003Report This Post
Platinum Member
posted Hide Post
Punctuating Numbers with CDN (WF761):

SET CDN = OFF    -   123,456.78
SET CDN = ON     -   123,456,78
SET CDN = SPACE  -   123 456,78
SET CDN = QUOTE  -   123'456,78
SET CDN = QUOTEP -   123'456.78
Ref: WF 761 - Punctuating numbers - SET CDN

Not CDN value for:  1.23.456,78 (Indian number format)
(The Indian number format groups the lowest order 3 digits (thousands) and then every 2 digits after that)

Regards,
Mikel

This message has been edited. Last edited by: Mikel,


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Virtuoso
posted Hide Post
Mikel,

Very nice. This shows that there is one acronym that has to be changed:
Not RTFM, but RAVOTFM (Read All Versions Of The Focus Manual)


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
<JG>
posted
Suresh, as Danny suggested the only option is to convert it to alpha and manipulate it

Best would be to either create your own user written subroutine or set up a DEFINE FUNCTION

For example set up the following function so that it is executed by your profile
(that way it will always be available).

DEFINE FUNCTION INDIAVAL (VALUE/D20.2)
A1/A22 = FTOA(VALUE, '(D20.2c)', 'A22');
A2/A27 = EDIT(A1,'99,99,99,99,99,99,99,999999');
A3/A27 = CTRAN(27, A2, 32, 44, 'A27');
INDIAVAL/A27 = TRIM('L',A3,27, ',', 1, 'A27');
END
-RUN

you can then call it via a DEFINE or COMPUTE at any time.

for example

TABLE FILE CAR
PRINT
COMPUTE TVALUE/D20.2=SALES * DEALER_COST + 0.99;
COMPUTE INDIAVAL/A27= INDIAVAL(TVALUE); AS 'Value,in,Rupees'
BY COUNTRY
IF SALES NE 0
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=INDIAVAL, JUSTIFY=RIGHT,$
END
 
Report This Post
Silver Member
posted Hide Post
Thanks a lot for the info Mikel.
was a great piece of info for CDN attributes.

I had a doubt if i could just specify country name or something as a parameter to get the currency values in that format.


Webfocus 8002M, 8009
OS: Windows7
 
Posts: 33 | Registered: July 31, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders