AmosGetContainerEntities()

The AmosGetContainerEntities(); rule recursively retrieves all entities containing an entity with a specified entityId.

Syntax

The AmosGetContainedEntities(); statement uses following syntax.

AmosGetContainerEntities ( entityId );

Example

The following example shows how to use the AmosGetContainerEntities(); rule.

int entityId=0;
entityId = eval(int,'&NmosEntityId');

RecordList myEntities = NULL;
myEntities = AmosGetContainerEntities(entityId);