Posted Wednesday, December 31, 1969 @ 23:59:59
Rigo, I am able to reproduce the problem. This happens whenever the scale
of the data exceeds the scale of the column. I assumed that users will set the
scale based on the data. If the data's scale exceeds the column's scale
, do you want QuickTable to automatically truncate the data?
if you have a data of 0.2711 and if you set the scale to 2, then I
can display 0.27. But the problem is when user tries to change the data
from 0.27 to 0.28, should I update the database with 0.2811? To solve this
complexity, I introduced the DataMap class, the developer decides what
need to be displayed & what should be saved to database.
setscale/setPrecison will be just used for restricting user entering invalid data.
If you just want to format the data to a user readable format, you
should use the class DataMap. This will help to format data of type 1240 to
1,240.00. This will help to preserve the original data. Using this DataMap class
if the scale of the data exceeds the scale of column, you can make a decision, how
exactly you want to dispaly this data.
Ben