getOccurrenceCount()

Returns the number of occurrences that are present in the entity.

EntityObject.getOccurrenceCount()

Arguments

None.

Return Values

Return—number of occurrences in this entity.

Exceptions

The following exceptions may be thrown:

Description

The EntityObject is a uniface.Entity object returned by the getEntity function of the uniface.Instance object.

var vInstance = uniface.getInstance("MUSICLIST");
if (vInstance != null) {
    var vEntity = vInstance.getEntity("ITEMS.MUSICSHOP");
    if (vEntity != null) {
        alert("There are " + vEntity.getOccurrenceCount() + " items.");
    }
}

Related Topics