getStatus()
Returns the status of this uniface.Occurrence object.
Return=
OccurrenceObject.getStatus()
Arguments
None.
Return value
Return—one of:
- uniface.Occurrence.STATUS_EMPTY
- uniface.Occurrence.STATUS_NEW
- uniface.Occurrence.STATUS_UNMODIFIED
- uniface.Occurrence.STATUS_MODIFIED
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()); } } }