I am trying to make Caché perform certain actions depending on whether a particular property of the object was changed using triggers.
For example, say I have this class:
Class Dummy.Class Extends %Persistent {
Property Name As %String;
Property Visible As %Boolean;
Trigger OnUpdate [ Event = UPDATE/DELETE, Time = BEFORE ] {
if ({Published*O} = 0) && ({Published*N} = 1) {
do .CertainAction({ID})
}
}
ClassMethod %OnBeforeSave(insert As %Boolean) As %Status [ Private, ServerOnly = 1 ] {
// .
XDATA is used for a whole host of ISC libraries to store things like Zen pages, BPL logic and DTL transformations.