Kbase P41628: ADM2 How to enable the Save button of a SmartPanel when the UPDATE button is chosen for a SDV: Imple
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/16/2004 |
|
Status: Verified
GOAL:
How to enable the Save button of a SmartPanel when the UPDATE button is chosen for a SDV
GOAL:
How to achieve this behavior for all the SDV in the application without modifying one by one these.
FIX:
In order to achieve such behavior for ALL the viewer the viewer SmartObject Class should be customized.
In particular, the enableFields procedure should be added in the viewerCustom.p.
/* Procedure enableFields /*
RUN SUPER.
/*This call the enableFields procedure in the SUPER procedure*/
RUN valueChanged IN TARGET-PROCEDURE.
/*This makes enable the save button*/
/*target procedure = the viewer*/
END PROCEDURE.