Subject | How to edit calculated field? |
---|---|
Author | mircostange |
Post date | 2002-01-28T09:12:06Z |
(Hope this hasn't been asked before - the search options provided by
yahoo are not very good).
I would like to edit a calculated field in a TIB_Grid control.
The background is: a table stores a person's age in days (thus its an
integer field). This is however not very convenient for display, so I
created three calculated fields to return the person's age in days,
months, years (calculating with 1y=365d, 1m=30d).
This works fine.
Now I would like to be able to edit those three fields and then
calculate back to the age in days and store this in the db.
Anyone can give me a hint
(a) how to get the calculated fields editable
(b) on which event to react to update person.age with the entered
value(s)?
Mirco
yahoo are not very good).
I would like to edit a calculated field in a TIB_Grid control.
The background is: a table stores a person's age in days (thus its an
integer field). This is however not very convenient for display, so I
created three calculated fields to return the person's age in days,
months, years (calculating with 1y=365d, 1m=30d).
This works fine.
Now I would like to be able to edit those three fields and then
calculate back to the age in days and store this in the db.
Anyone can give me a hint
(a) how to get the calculated fields editable
(b) on which event to react to update person.age with the entered
value(s)?
Mirco