Kbase P63840: The Error Raised From createData Not Passed Back to Client Over AppServer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
FACT(s) (Environment):
Dynamics
SYMPTOM(s):
The Error Raised From createData Not Passed Back to Client Over AppServer
Code started sdo with startSDO then used createData to create a record however if any error was raised then this error was not returned to the client or the AppServer log
CAUSE:
Need to initialize the sdo after it has been started, for example:
CREATE table.
ASSIGN
table.code = "100"
table.name = "TEST".
RUN startDataObject IN gshRepositoryManager
(INPUT "myfullo",
OUTPUT hSDO)
NO-ERROR.
{get DataDelimiter cDelim hSDO}.
ASSIGN
cFieldNames = "code, name"
cRequestData = STRING(table.code) + cDelim +
STRING(table.name).
RUN createData IN hSDO
(INPUT cFieldNames,
INPUT-OUTPUT cRequestData,
OUTPUT cError)
NO-ERROR.
MESSAGE " the error details are " cError VIEW-AS ALERT-BOX.
Failed to display the message however if the call to initialize the sdo is added:
RUN startDataObject IN gshRepositoryManager
(INPUT "myfullo",
OUTPUT hSDO)
NO-ERROR.
RUN initializeObject in hSDO.
{get DataDelimiter cDelim hSDO}.
Then the error is returned as expected.
FIX:
Ensure there is a call to initializeObject in the sdo after running startSDO