Kbase P18169: How do I know whether the record displayed in a SmartDataViewer is a new one, or a copy of an existi
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How do I know whether the record displayed in a SmartDataViewer is a new one, or a copy of an existing one.
GOAL:
How do I know whether the Add or Copy button was pressed in a SmartPanel in order to create a new record.
FIX:
The NewRecord property in the data visualization object (usually a SmartDataViewer) can be used to retrieve this information. Within the data visualization Object you can run:
DEFINE VARIABLE cNew AS CHARACTER.
....
{ get NewRecord cNew }.
Variable cNew will contain:
"Add" if the new record was created pressing the Add button.
"Copy" if the new record was created pressing the Copy button.
"No" if the record viewed is not a new one.