Kbase P65190: SetButtons in SmartPanel is deprecated
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/11/2005 |
|
Status: Unverified
GOAL:
SetButtons in SmartPanel is deprecated
GOAL:
Action-chosen state panel is deprecated
FACT(s) (Environment):
Progress 9.1D
FIX:
SetButtons method and 'action-chosen' panel state are deprecated and
there are 3 (three) more panel states instead ( 'update', 'modal-update' & 'modal-update-modified' ).
For more info check src/adm2/pupdsav.w SetButtons internal procedure.
PROCEDURE setButtons :
/*------------------------------------------------------------------------------
Purpose: Sets the sensitivity of the panel's buttons depending upon what
sort of action is occuring to the TABLEIO-TARGET(s) of the panel.
Parameters: Character string that denotes which action to set the button
sensitivities.
initial - the panel is in a state where no record
changes are occuring; i.e. it is possible
to Update, Add, Copy, or Delete a record.
disable-all - the panel has all its buttons disabled,
in the case a link is deactivated.
add-only - for the time that there are no records
in the query, and the action that can be
taken is an add.
delete-only - for the case where no fields are enabled
update-only - update only usually if changes diallows
add/delete
NB ! No longer used by the panel class only supported for backwards
compatibility:
action-chosen - the panel is in the state where
Update/Save, Add, or Copy has
been pressed.
for backwards compatibility.
Replaced by the three following states:
update - Save,reset
modal-update - Save,cancel
modal-update-modified - Save,cancel,reset
if 'action-chosen' is needed, override setPanelState to
call super with 'action-chosen' instead of the approproiate or
for all three for that matter.
Notes: This procedure has been deprecated and is no longer part of the normal
resetting of the action's states.
------------------------------------------------------------------------------*/