Skip to main content



      Home
Home » Archived » BIRT » 1000's separator in tooltip
1000's separator in tooltip [message #793708] Wed, 08 February 2012 08:09 Go to next message
Eclipse UserFriend
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 09:03] by Moderator

Re: 1000's separator in tooltip [message #793885 is a reply to message #793708] Wed, 08 February 2012 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Any direction?
Re: 1000's separator in tooltip [message #793909 is a reply to message #793885] Wed, 08 February 2012 13:33 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 19:33:42 EDT 2025

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

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

Back to the top