Consultor Eletrônico



Kbase P135928: The Reset and Cancel buttons are no longer showing in the Smart Toolbar
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/5/2008
Status: Unverified

SYMPTOM(s):

The Reset and Cancel buttons are no longer showing in the Smart Toolbar

Smart Toolbar was built in the toolbar/menu designer and have a "Reset record" button

FACT(s) (Environment):

OpenEdge 10.1B
OpenEdge 10.1C
All Supported Operating Systems

CHANGE:

Upgraded from Progress 9.1x/Dynamics 2.1x or later to OpenEdge 10.1B or later

CAUSE:

This is expected behavior in 10.1B and later. From the 10.1B Readme file:

RN#: 101B-00104
==============
A new UndoChange action has been added as default to all shipped toolbars and tableio bands, and will replace the old Reset action per default in these toolbars.

This does constitute a behavior change (label and accelerator) for existing applications that use the shipped toolbars or bands, since the caption is changed to "Undo" instead of "Reset" and the accelerator is changed to "CTRL-Z" from "ALT-R".
The new UndoChange action defines some of the translatable text needed for the context sensitive text in the admmsgs.i include, message number 97.

FIX:

Customers that use the shipped toolbars or bands will need to customize the class if they want to remove the new action while customers that already have specific toolbars may need changes either to be able to use the new action or to remove it.

Remove (hide) the new UndoChange action and get Reset back in shipped toolbar or band:
-------------------------------------------------------------------
The Reset action is already present in the toolbar, so in order to make the Reset into default, the UndoChange needs to be added to the comma separated HiddenActions property.



Existing customer toolbars
--------------------------
Existing customer toolbars may or may not get the new UndoChange action. If the toolbar or menu is defined with the "Tableio" category or one of the tableio bands then the action will be added automatically, but many toolbars add tableio actions specifically in initAction() or initMenu() overrides in order to control the order and add rules. The "UndoChange" will need to be added to these.

customized initAction
---------------------
The toolbar initAction has been changed to setIsActionsLoaded(true) since the getTableioUndoNew may need to load the actions if it is called from a visual object before the toolbar is initialized. Overrides of initAction that do not call super must add the same call, using dynamic-function or the {set} include.