Hi!

But my code (shown above), would get the value from database anytime the
chargeFee==0.



So how do I distinguish between the two cases?



1.      When the chargeFee came as 0 because the default is 0 and the
user had not entered any value.
2.      When the chargeFee came as 0 because the user had deliberately
made it 0.



Why does your code get executed in both cases?
Execute it only when the user hits the display button (ie on display you
populate the data from the DB).
If the user wants to put in another value and calculate that he should hit a
calculate button, resulting in execution of another action.

Hope it helps,

Tamas

Reply via email to