Consultor Eletrônico



Kbase 21982: ADM2: Supplying Initial Values to an SDV or SDB on [Add]
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/19/2002
SUMMARY:

This Solution applies to Progress Version 9.0A and later. It provides
sample code you can use if you need to supply initial values to a SmartDataViewer (SDV) or a SmartDataBrowse (SDB) when the user clicks a SmartUpdatePanel's (Add) button.

SOLUTION:

-- Solution for the SmartDataViewer

1) Edit the Master for the SDV.

2) Add a New Procedure as an override of addRecord.

3) Add the following code after Run SUPER:

ASSIGN rowobject.<field-name>:SCREEN-VALUE
IN FRAME {&FRAME-NAME} = "initial-value".

-- Solution for the SmartDataBrowse

1) Edit the Master for the SDB.

2) Add a New Procedure as an override of displayfields.

3) Add the following code after Run SUPER:

ASSIGN rowobject.<field-name>:SCREEN-VALUE
IN BROWSE {&BROWSE-NAME} = "initial-value".