cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to make custom event which behave some how DataChangeEvent?

bgupta-2
9-Granite

How to make custom event which behave some how DataChangeEvent?

Dear Team,

How to make custom event which behave some how DataChangeEvent?

6 REPLIES 6

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:

  • DataChangeEvent
  • AnyDataChangeEvent
  • Subscribe to a Timer's o Scheduler Trigger 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.

Top Tags