Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread AfterCommit question
Wed, Aug 21 2013 5:10 AMPermanent Link

Uli Becker

I use the AfterCommit notify event to refresh a dataset after the user
has changed a record.

Since I want to call different procedures depending on which dataset has
been updated: how do I do that?

I tried to read the "sender" object, but it always returns "undefined".

Thanks Uli
Wed, Aug 21 2013 6:59 AMPermanent Link

Walter Matte

Tactical Business Corporation


I've been setting a Flag when calling Commit and testing in in the AfterCommit... not elegant... so I would be interested too.

Walter
Wed, Aug 21 2013 7:51 AMPermanent Link

Uli Becker

Walter,

at least a workaround SmileThanks.

Uli
Fri, Aug 23 2013 9:14 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< I use the AfterCommit notify event to refresh a dataset after the user
has changed a record.

Since I want to call different procedures depending on which dataset has
been updated: how do I do that? >>

AfterCommit is database-wide, so there really is no way to determine which
dataset was involved, at least not without adding another event.

<< I tried to read the "sender" object, but it always returns "undefined".
>>

Sender should always be the global TDatabase instance for AfterCommit.

Tim Young
Elevate Software
www.elevatesoft.com
Image