Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Aborting Change to a record
Wed, Mar 4 2009 7:49 PMPermanent Link

"Adam H."
Hi,

I have a string field linked to a DBradiogroup component. When the user
changes a value, I need my software to perform some checks and stop the user
from making the change under certain conditions.

In the past I have done this by using an ABORT statement in the datafields
ONCHANGE event.

However, the problem that I have with visual components is that when the
ABORT statement is executed - while the dataset doesn't keep the change, the
visual component appears to.

I was wondering if there is another way to abort the change (or possibly
just change the value back to the previous one?) in a more suitable manner?

Thanks & Regards

Adam.
Thu, Mar 5 2009 3:14 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Adam


What about issuing a Refresh?

Roy Lambert [Team Elevate]
Thu, Mar 5 2009 4:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Adam,

<< I was wondering if there is another way to abort the change (or possibly
just change the value back to the previous one?) in a more suitable manner?
>>

The only way to do so is to save and then restore the value by writing event
handlers to trap the enter/exit cycle of the control, if you wish to keep
the dataset in edit mode and cannot refresh the dataset.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image