Kbase P97246: How to check in SmartDataViewer if a record is newly added when saving the record ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/10/2005 |
|
Status: Unverified
GOAL:
How to check in SmartDataViewer if a record is newly added when saving the record ?
FACT(s) (Environment):
OpenEdge 10.x
Progress 9.1x
FIX:
Call getNewRecord in updateRecord of SmartDataViewer object before RUN SUPER.
Example:
PROCEDURE updateRecord:
MESSAGE DYNAMIC-FUNCTION( "getNewRecord" ) .
RUN SUPER.
END PROCEDURE.
When the record is new the return from getNewRecord function is "Add".
When getNewRecord is called after RUN SUPER the return is "NO" which means the record is already added to the database.
getNewRecord always returns CHARACTER data.