Focal Point
[SOLVED] Number Format Problem

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6981044961

May 26, 2006, 05:14 AM
kalyanswarna
[SOLVED] Number Format Problem
Hi All
I have some problem with my number format in Bar Chart(Y1Label).that is

iam using the following two lines of API for whole number format.
setTextFormatPattern(getY1Label(),"#");
setDataTextFormat(1);

it is showing 9999 but i want in another format that is 9,999 is it possible to show this format is it possible.please give me a solution for this problem.


Thanks,
Kalyan.S

This message has been edited. Last edited by: Kerry,
May 26, 2006, 06:01 AM
Tony A
Try -

setCustomDataText(getY1Label(), true);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#,###,###");




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 
May 26, 2006, 07:39 AM
kalyanswarna
Thanks Tony.


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
June 08, 2010, 10:59 AM
Doug
Thanks Tony,
It helps when I removed the undesireable
quote:
setTextFormatPattern(getY1Label(),"###");
which somehow got in the code after the desired
quote:
setTextFormatPattern(getY1Label(),"#,###,###");