pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Formatted value and actual data in TextInput
Date Thu, 16 Dec 2010 19:04:12 GMT
Not sure I fully understand the use case. It sounds like you have a value in a model somewhere
that has some number of significant digits (say 10). However, you want to present a smaller
number of significant digits to the user (say 3). Then when the user is done editing, you
want to go back to 10. Is that right? If so, can you provide a more concrete example?

On Dec 16, 2010, at 11:03 AM, lello wrote:

> Hi all,
> in my application I have a table with a row editor in which TextInput field
> displays a number (double precision). When I edit the number I want to have
> only three decimal digits, however I need the "exact" data table (the double
> precision version) to perform the same other calculation.
> The point is: I can easily display the number of digits I want by
> implementing a TextInput.TextBingMapping,
> however, when the valueOf() method fires in the the table data a rounded
> number, and when I retrieve the data from the table I get the wrong values.
> Is there any way to separate the displayed formatted numbers of a table from
> the actual data contained in the table, when using a TextBindMapping
> interface?
> -- 
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Formatted-value-and-actual-data-in-TextInput-tp2099149p2099149.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message