The PxWebQuery component contains events that are triggered by the change in state of the component.
Each event of the PxWebQuery component can be defined in the "Page_Load"
procedure of the form, where this event shall be triggered.
Definition of the "wquAdresar_AfterScroll " procedure, which is called the " AfterScroll " event shall be as follows:
Each change of the current row cursor, either in the PxWebQuery component or
in the PxSuperGrid component, which is linked to the PxWebQuery component,
triggers the "AfterScroll event. The "Name" column value of the current row
is registered in the Label component for the each event triggered.
The following table contains a summary of all events of the PxWebQuery component.
Event Name | Event Description
|
BeforeInsert | This event is triggered before the execution of the PxWebQuery.Insert () command;
|
AfterInsert | This event is triggered after the execution of the PxWebQuery.Insert () command;
|
BeforeEdit | This event is triggered before the execution of the PxWebQuery.Edit () command ;
|
AfterEdit | This event is triggered after the execution of the PxWebQuery.Edit () command;
|
BeforePost | This event is triggered before the execution PxWebQuery.Post () command;
|
AfterPost | This event is triggered after the execution of the PxWebQuery.Post () command;
|
BeforeValidPost | This event is triggered during the verification of the specified items before the actual data storing by Post () method;
|
BeforeOpen | This event is triggered before the execution of the PxWebQuery.Open () command;
|
AfterOpen | This event is triggered after the execution of the PxWebQuery.Open () command;
|
BeforeScroll | This event is triggered before the change of the row cursor position in the PxWebQuery component
|
AfterScroll | This event is triggered after the change of the row cursor position in the PxWebQuery component
|
BeforeDelete | This event is triggered before the execution of the PxWebQuery.Delete() command;
|
AfterDelete | This event is triggered after the execution of the PxWebQuery.Delete () command;
|
BeforeCancel | This event is triggered before the execution of the PxWebQuery.Cancel () command;
|
AfterCancel | This event is triggered after the execution of the PxWebQuery.Cancel () command;
|
StateChange | This event is triggered during the change in the state of the PxWebQuery component, usually after the execution of the Insert, Edit, Delete, Post, and other commands.
|
AfterCreateField | This event is triggered after the set up of all the table columns (fields) of the PxWebQuery component. This event is used mainly to create a new dynamic column (field) of the PxWebQuery component table.
|