discard

Removes the uniface.Occurrence object on the client.

OccurrenceObject.discard();

Arguments

None

Description

Calling discard on an occurrence immediately removes the occurrence on the client, as well as all occurrences of the entities that it contains. They no longer participate in subsequent requests to the server.

After this function is called, this Occurrence is no longer valid, so many of its functions will throw a uniface.InvalidDataObjectException.

Note:  This function does not mark the occurrence for deletion on the server; you can use the remove() for that.

Related Topics