OpenWGA 7.6 - TMLScript reference

HDBModelEvent
Method :

cancel(message [, javaException])

On object HDBModelEvent
Usage Cancels the HDBModel operation currently taking place
Description

Cancelling is possible in all hierarchical "pre" events and in non-hierarchical event "onSave".

All following code of the event script plus all subsequent events will not be executed.

If the event was triggered by some WebTML form storage operation then the message given to the cancel method will be added to the form as global validation message.

Parameters

message (String):

An error message describing the error cause.

javaException (Java Exception Object, optional):

A Java Exception which caused the cancellation. Can be passed on so that logging of this error will reveal the root cause.