Consultor Eletrônico



Kbase P23956: Dynamic Toolbar's Save button remains disabled after hitting the Update button
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/02/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Clicking on the SmartToolBar's Update button

All of the other buttons on the SmartToolBar become disabled with the exception of the Cancel button

CHANGE:

Upgraded to 9.1D

CAUSE:

The SmartToolBar has been changed so that it correctly enables the Save and Reset buttons only after a change has been made to the record

FIX:

To preserve the old behavior, perform the following steps:

1- Create an initAction procedure override in actioncustom.p
2- Place a call to the assignActionEnableRule("SAVE","ObjectMode=update,modify") function in the code of the created initAction procedure. This turns the SAVE button on at all times, rather than waiting for the 'value-changed' event to be triggered. For instance:

PROCEDURE initAction :
RUN SUPER.
DYNAMIC-FUNCTION('assignActionEnableRule':U IN TARGET-PROCEDURE,
INPUT "SAVE":U,
INPUT "ObjectMode=update,modify":U).
END PROCEDURE.