Hi,
I have a simple piece of code calling field verifying that does not quite produce the required behaviour.
The custom field in question sits in a DAC extension to SOShipment (SOShipmentExt) and is called usrSealNo. Essentially all I am looking to do is raise an error if the value in this field has been used on any other Shipments (and prevent the record from being saved until a unique usrSealNo is provided).
The code in place is:
Now, when a value is entered into the field that already exists on another Shipment, the Field Verifying event seems to raise the exception OK:
However, the user is still able to save the record despite the error being raised.
I have other FieldVerifying events in my customisation that do prevent a user saving when the Error exception is raised. The difference seems to be that they are on fields that are in a custom DAC, not a DAC extension.
Is there some trick to Verifying custom fields in DAC extensions?
Thanks in advance for any help on this,
John.
Best answer by JWS539
View original