Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » 1000's separator in tooltip
1000's separator in tooltip [message #793708] Wed, 08 February 2012 13:09 Go to next message
nlajka - is currently offline nlajka -
Messages: 61
Registered: April 2011
Member
Hi,

I am adding a float value into tooltip for a text (row+"-"+row[TotalSaleValue"]. Is there a way to configure row[TotalSaleValue" as a number with no decimals and with 1000's separator?

Thanks.

P.S. know that toFixed() would cut off decimals, but how to make a big float (ex. 123456789.00) to be presented as 123,456,789 in tooltip?

[Updated on: Wed, 08 February 2012 14:03]

Report message to a moderator

Re: 1000's separator in tooltip [message #793885 is a reply to message #793708] Wed, 08 February 2012 18:00 Go to previous messageGo to next message
nlajka - is currently offline nlajka -
Messages: 61
Registered: April 2011
Member
Any direction?
Re: 1000's separator in tooltip [message #793909 is a reply to message #793885] Wed, 08 February 2012 18:33 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Try:

importPackage(Packages.java.text);
formatter = new DecimalFormat("###,##0");
this.helpText = "my total "+
formatter.format(parseFloat(this.getValue()));


Jason

On 2/8/2012 1:00 PM, nlajka Mising name wrote:
> Any direction?
Previous Topic:Data Set Refresh Output Columns
Next Topic:Problem when integrating WebViewer into RCP application
Goto Forum:
  


Current Time: Sat Oct 25 15:35:46 GMT 2014

Powered by FUDForum. Page generated in 0.01585 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software