MSM-Workstation
Events

Create

The high level event Create may occur for windows and all components.

The Create event is a high-level event that occurs when an object (window, control etc.) is created.

The code that is generated by the ViEW/Builder will first execute the "create action logic" for the window, and then the "create action logic" for each of the components in the window (components that are defined as "Initially Disabled" are skipped in this context). The traversal of the various components is in order of the collating sequence of their names.

Appropriate code for this event includes any initialization that is specific to the entity in question.

The create event for a control occurs after the window has been created, unless the control is defined as "Initially Disabled". It occurs after the window create event and the create events for any controls with names collating before this control.

If there are any SQL Data Control components in the window, and 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 before the action logic (if any) for the event Create is executed. Before the "create action logic" is executed, the SQL Data Control component will be positioned before the first record.

Note: in some circumstances (e.g. if the property DataSort specifies a sequence that is not indexed within the database) the event Create on the SQL data control queries the database for all the records, which may cause a perceptible delay.

Note: once the action logic for the Create event has been executed, this action logic cannot be performed again unless a Destroy event is first processed.

See the Message property for information about how to show the progress of data control creation.

Go to the alphabetic list of events.