Kbase P22531: Errors 7341 and 138 Adding records into a Dynamic-Browser using submitRow()
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/4/2005 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
Errors 7341 and 138 Adding records into a Dynamic-Browser using submitRow()
Invalid rowid for FIND-BY-ROWID method of BUFFER object <name>. (7341)
Invalid ROWID for FIND-BY-ROWID method of BUFFER object RowObject (7341)
** <file-name> record not on file. (138)
bRowObjUpd record not on file (138)
Records are added using the submitRow() function
CAUSE:
There are records left in RowObject after submitRow() fails. The row created by addRow() is still in RowObject.
FIX:
If submitRow() fails, cancel the newly added row, so that RowObject and RowObjUpd will be in sync.
DEF VAR lErr AS LOG NO-UNDO.
IF lErr THEN
DO:
DYNAMIC-FUNCTION('cancelRow' IN h_SDO).
RETURN.
END.