getOccurrences()
Returns an array of uniface.Ocurrence objects held by this uniface.Entity.
Return=
EntityObject.getOccurrences()
Arguments
None.
Return value
Return—an array of uniface.Ocurrence objects.
Example: JavaScript Data Addressing API
var vInstance = uniface.getInstance("MUSICLIST"); if (vInstance != null) { var vEntity = vInstance.getEntity("ITEMS.MUSICSHOP"); if (vEntity != null) { var vOccs = vEntity.getOccurrences(); for (var i = 0; i < vOccs.length; i++) { doSomethingWithOccurrence(vOccs[i]); } var vOcc = vEntity.getOccurrence(4); if (vOcc) { alert (vOcc + " has status " + vOcc.getStatus()); } } }