Consultor Eletrônico



Kbase P100395: How to interact with user to validate data from within the SDO ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/25/2005
Status: Unverified

GOAL:

How to ask the user to validate data from the Smart Data Object side ?

GOAL:

How to interact with user to validate data within the SDO ?

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

FIX:


Here is how to display a YES/NO dialog box asking user to validate the data.
In a NORMAL scenarion the validate procedures just returns errors and messages
without any UI intervention. Then the SDO takes all the return-values from validate procedure
and makes a addMessage call for each validate procedure which didn't pass the validation.
Then later on the messages are going to the user. BUT by the time user sees the messages the transaction is already rejected on the SDO.
So what needs to be done is to ask the user to validate in the middle of <column>Validate procedure.