Subject | Re: [IBO] NewRecord values in a lookupCombo |
---|---|
Author | Helen Borrie (TeamIBO) |
Post date | 2002-08-09T12:44:52Z |
At 12:08 PM 09-08-02 +0000, you wrote:
the dataset at this stage may "know" what values will be written. Once the
datalink updates the dataset, the lookup dataset should respond appropriately.
I'm not sure exactly when the datalink fires the buffer update, but try
putting your default-assignment code on the AfterInsert handler instead....
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com
>Hi there,The OnNewRecord event doesn't flag the row in the buffer as Modified, so
>
>I'm not sure if I'm simply missing something here, so please
>understand if this is a silly question.
>
>I am using two IB_LookupCombo boxes which are correctly linked to
>their respective lookup tables. All's well.
>
>Now, I have a defaults table where users can fill out
>their "preferred" values, so that when a new record is inserted,
>these fields automatically fill out with these default values. Part
>of these default values involve the two fields which are displayed
>using the lookup combos. When I set the field values of these fields
>(in the event onNewRecord), all values are displayed correctly in
>their respective IB_Edit fields, but not reflected in the lookup
>combo boxes.
the dataset at this stage may "know" what values will be written. Once the
datalink updates the dataset, the lookup dataset should respond appropriately.
I'm not sure exactly when the datalink fires the buffer update, but try
putting your default-assignment code on the AfterInsert handler instead....
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com