Subject Re: [IBO] TIB_LookupCombo Problem
Author Eric Handbury
In article <5.1.0.14.0.20020218174120.072baec0@...>,
"Helen Borrie (TeamIBO)" <helebor@...> wrote:

> At 05:28 PM 18-02-02 +1100, you wrote:
>>Hello,
>>
>> I have a OnChange Event in my LookupCombo which initializes a couple
>> of
>>different fields in the dataset depending on the lookup value.
>> The problem is that the user will change the field in the LookupCombo
>>control, which fires-up the OnChange event, which initializes different
>>fields in the same dataset, which (here's the problem) resets the value
>>in the LookupCombo to the value before the change. If I don't initialize
>>the fields in the OnChange, then everything works.
>
> It's not clear to me from your description but are you describing
> changes in the lookup dataset or in the linked parent?

Sorry... its the parent.

>
> Remember that, in native IBO, the data drives the controls, not the
> reverse as in the VCL. If you want to change values in the parent in
> response to a selection in the lookup, place your code on the
> TIB_Column.AfterModify event of the linked parent column that is getting
> modified by the lookupcombo.

I've been trying to figure out how to code-up the OnAfterModify event
to no avail. Can you point me in the right direction in terms of any
documentation on this.

Thanks, Eric.