mappView Eventbinding Expression Variables

Hello,
I did not find any detailed description about the EventBinding SetValue with an Expression.

Widget Action Eventbinding

Is it possible to define a Expression like this: Value of the old value + 1, so that I can create a click event from an button to increment the value of an numeric input widget.

Are there any predefined variables for an expression?

Hi Johannes, those expressions are meant to assign to results from the event you are using or the result of an operand read.

Example #1
The ValueChanged event returns the current value of buttons enable property and is then negated for the visibility for a label.

Example #2
In this case the operand reads the name for the AlarmContent defined in a session variable. The result of that read gets assigned to the content section of the action.

Another example for displaying text in a msg box.

And a more complex example using a compound widget with custom arguments which are returned when clicked on. All arguments are assigned inside the widget and are then used to set variables defining which machine details it needs to display in the dialog that opens.

2025-01-16_10-02-50

So you can see plenty of different use cases.

1 Like

Amazing! Now I understand how this works!
I was able to accomplish my target! Thank you very much!

1 Like