Skip to main content
Aug 31, 2021 11:11 AM UTC
Solved

Any idea how i can subscribe or make kind of listener on a property?

Hello, 

 

I have a field that is receiving string values, i want to show the current value in the pre said text field (i already done it) but when come a new value, the current value get inserted into an infotable and new get displayed in the text field!!.

 

Regards, 

Yous

PaiChungAnswer
Sep 2, 2021 8:20 PM UTC

You can add a subscription to your property DataChange event.

3 replies

Aug 31, 2021 2:02 PM UTC

You want to have the string historically saved and display the most current?

I would log the property, that means you'll have all values over time and you can retrieve that from the value stream.

For the updated value to display, I usually use GetProperties with the option to push updated values. But you can also use an AutoRefresh

Aug 31, 2021 2:52 PM UTC

Hello, 

 

Thanks for reply,  it should work that way but what if need something like listner (event & subscription).

 

Regards, 

Yous

PaiChungAnswer
Sep 2, 2021 8:20 PM UTC

You can add a subscription to your property DataChange event.