Subject Re: [IBO] How can I create persistent fields
Author Andreas Hesse
sergiogarciaruso wrote:
> --- In, Helen Borrie <helebor@...> wrote:
>> At 10:00 AM 21/02/2006, you wrote:
>>> Hi.
>>> How can I create persistent fields with a TIB_Query component? I'm
> using D7
>>> and IBO v4.5.0
>> TIB_Query doesn't support persistent fields. (TIBOQuery does.)
>> Can you explain what you need to do?
>> Helen
> Well, I need to write an OnChange event handler to respond to some
> changes in the field's data. I did it using TIBOQuery, but I want to
> use iboControls's components, and they doesn't work with native
> TDatasource component.
> Regards,
> Sergio

Two possibilities:

1) OnValidateField - Event of TIB_Query

2) OnAfterModify - Event of TIB_Column (=Field),
put the assignment in the OnAfterPrepare - Event of TIB_Query, like:
ib_query.FieldByName('MyField').OnAfterPrepare := DoOnChangeMyField;