Kbase P4596: Cannot override the addRow function in a SmartDataObject
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/06/2005 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.x
SYMPTOM(s):
Cannot override the addRow function in a SmartDataObject
If there is a SmartDataViewer with a groupAssign link, the initial values cannot be overridden
CAUSE:
The exact cause is unknown at the time of this writing
FIX:
It is possible to workaround this issue by overriding the displayFields procedure in the SmartDataViewer and using the following code:
DEFINE VARIABLE hSDO AS HANDLE NO-UNDO.
/* Code placed here will execute PRIOR to standard behavior. */
RUN SUPER(INPUT pcColValues).
ASSIGN hSDO = DYNAMIC-FUNCTION('getDataSource':U).
IF DYNAMIC-FUNCTION('getNewRow':U IN hSDO) = 'yes' THEN
ASSIGN RowObject.name:SCREEN-VALUE IN FRAME {&FRAME-NAME} = 'name'
RowObject.address:SCREEN-VALUE = 'address'
RowObject.address2:SCREEN-VALUE = 'address2'.