Dear Team,
How to make custom event which behave some how DataChangeEvent?
Hi Bhuwaneshwar,
DataChangeEvent ( the one for an specific property ) can't be simulated by code as far as I know.
But, you can throw AnyDataChange event:
me.AnyDataChange({
newValue: value, // -- Where values it's a Infotable with VTQ DataShape
name: propertyName, // -- The property name for AnyDataChange event
oldValue: oldValue // -- (Optional) same as newValue format but for previous property value
})
Thanks Carles for your reply.
But in my scenario, I have created one CustomEvent1 which I am attaching to one subscriptions. So when this events trigger?
If it's a custom event, you should trigger it. How? based on a subscription to another event:
Ok. It means custom event on its own can not trigger. It need help of another any predefined events.
Is this correct what I have written?
Yup.
Thanks Carles for your quick reply.