Progress
ADM 2 Reference
updateState (panel.p)
Receives state message events related to record updates.
Parameters:INPUT pcState AS CHARACTER
Update state can be
"
Update"
or"
UpdateComplete"
Returns: Nothing (procedure)Notes:
- For
"
Update"
, a Navigation Panel will set its PanelState property to disable–all, to prevent navigation during an update operation. A Save or Update panel will set its state to"
action–chosen"
, meaning that a button has been pressed that puts the panel in the middle of an Update or Add or Copy operation that must be explicitly Saved to be completed.- For "UpdateComplete", a Navigation Panel will restore the prior PanelState (having been disabled when the update began). A Save or Update panel will set its state to ‘add–only’ if no rows are available in the current dataset, to
"
disable–all"
if no rows are available and there is also no available parent row for this dataset (meaning that not even an Add could be done), or to"i
nitial"
if the RecordState is RecordAvailable, meaning that all operations are allowed (Update/Add/Copy/Delete).- In addition, for an Update panel, which explicitly enables fields when an Update begins and disables them when the operation is Saved, the updateMode event is published with a value of
"
UpdateEnd"
, to tell visualizations to disable their fields.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |