Initial ValueChanged events vs. compound widget

Hello,

It seems that the option Initial ValueChanged events, which works perfectly with common events, does not work for events within a compound widget.

In my compound widget, a LocalProperty bound to a variable is defined with a dedicated event and action. In the EventBinding, the result of the action is read, and actions are performed accordingly.

Could you suggest a better syntax to achieve an initial update for this event?
obrázok
+
obrázok

Thank you.
Regards
Michal Malek

Hi Michal,

is for the content which uses this compound widget preCaching enabled?

I noticed, that preCaching triggers initial events.

Maybe you can use OnWidgetsReady event of compound widget.
See B&R Online Help (br-automation.com)

This event is triggered when the compound widget is loaded for the first time.

Hope, this helps you.

Sincerly Simon :slight_smile:

2 Likes

Thank you, Simon. Now it rus perfectly.

1 Like

Hi Michal, is it topic solved/closed? If so, please mark a reply from Simon as a solution. Thanks.