Show/Hide Toolbars

TMS XData Documentation

Navigation: Server-Side Events

OnEntityList Event

Scroll Prev Top Next More

Occurs when the client queries an entity collection. This event is fired after the TCriteria object is built based on the client request, and right before the criteria is actually executed to retrieve the entities and sent to the client.

 

Example:

 

Module.Events.OnEntityList.Subscribe(
  procedure(Args: TEntityListArgs)
  begin
    // code here
  end
);

 

TEntityGetArgs Properties:

 

Name

Description

Criteria: TCriteria

The Aurelius criteria built based on client request that will be used to retrieve the collections. You can modify the request here, adding extra filters, orders, etc., before it's executed and results are sent to the client

Handler: TXDataBaseRequestHandler

The XData request processor object.