Consultor Eletrônico



Kbase P103245: ADM2 SubmitRow function does not display errors from SDO validation procedures
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/14/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

SYMPTOM(s):

ADM2 SubmitRow function does not display errors from SDO validation procedures

Errors from smartDataObject validion procedures are not displayed.

SubmitRow does not display error messages

CAUSE:

SubmitRow passes the modified record to the SDO and executes the validation procedures. It does not display any error messages coming back from those validation procedures indicating that the update has failed.

FIX:

If updateRecord is not being used (as the standardToolbar does) then fetchMessages or showDataMessages should be run in the server side SDO to retrieve any previously generated error messages. For example:


DEFINE VARIABLE h_SDO AS HANDLE NO-UNDO.
DEFINE VARIABLE lOk AS LOGICAL NO-UNDO.
DEFINE VARIABLE cMessage AS CHARACTER NO-UNDO.

{get datasource h_SDO}.lOk = DYNAMIC-FUNCTION("submitRow" IN h_SDO, ?, "CustNum" + chr(1) + '1000').

cMessage = dynamic-function('fetchMessages':U IN h_SDO).
MESSAGE "Cmessage : " cMessage.