MSM-Workstation
Events

MovePrevious

The high level event MovePrevious may occur for components of the type SQL data.

This event occurs when a SQL Data control moves to the previous field in sequence.

Unless the SQL Data control is ReadOnly, MSM-Workstation will the process an UpdateRecord event. The SQL Data control then moves back to the previous record.

If there is none, the SQL Data control remains on the first record and sets the variable SQLCODE=100 and does not execute any MovePrevious action logic. Otherwise it sets the variable SQLCODE=0, loads the bound controls from the new record and then executes any MovePrevious action logic.

The MoveNext event is one of a group of Move-events (MoveFirst, MoveLast, MoveNext, MovePrevious and MoveTo).

This event is caused by a execution of code generated by the macro %%Perform in other action logic.

When that happens, MSM-Workstation will next process a Validate event. If action logic on that event causes execution of code from the macro %%NotOK the event MovePrevious completes.

Otherwise if

MSM-Workstation will process an UpdateRecord event. If action logic on that event causes execution of code from the macro %%NotOK the event MovePrevious completes.

Otherwise the SQL Data control moves to the Previous record.

If there are no such records, the SQL data control will remain at the last record, if any, and the event MovePrevious completes.

Otherwise, if there are any list-type controls on the window that are bound to one of these SQL Data Control components (see the property ChoiceField), then those lists are loaded from the new record. After this, any MovePrevious action logic is executed. If action logic on that event causes execution of code from the macro %%NotOK the event MovePrevious completes.

Otherwise any action logic for the UpdateControls event is executed.

Go to the alphabetic list of events.