Displays and Symbols > Dynamics and Animations > Action Dynamic
  
Action Dynamic
 
Table 4: Action Dynamic configuration  
Setting
Description
Action
Executes action triggered by the user interface:.
Event
Choose one of the Mouse events. More than one event can be selected for each action. For example: One action for MouseLeftButtonDown and another action for MouseLeftButtonUp.
Action
Select an action for the given event:
None—No action.
SetValue—Sets the value of the object.
Object—The object that will receive the value.
Value—The value that will be passed to the object.
Toggle—Toggles the object value. If the object current value is zero, the value will be 1. If the object current value is different from zero, the value will be 0.
Object—The object that will be toggled.
OpenDisplay—Opens a display.
Display—The name of the display that will be opened.
CloseDisplay—Closes a display.
Display—The name of the display that will be closed.
OpenLayout—Opens a layout.
Layout—The name of the layout that will be opened.
RunScript—Runs a script that is placed in the display CodeBehind tab. Do one of the following:
Enter the new method name and click New.
Select one of the existing methods in the comboBox.
RunExpressions—Runs the given expression.
Expression—Enter the expression. For example: Tag.a + 1, or Tag.a + Tag.b, or Math.Cos(Tag.angle) * Math.PI.
Result (optional)—Enter the tag or the property that will receive the expression value.
 
Run Expressions Examples:
Sum two values and pass the result to another tag.
Expression—Tag.quantity1 + Tag.quantity2.
Result—Tag.totalQuantity.
Increment a tag.
Expression—tagCounter + 1.
Result—tagCounter.
Increment a tag (0 - 10).
Expression—If(tagCounter < 10,tagCounter + 1,0).
Result:—tagCounter.
For more information, see Configuring Expressions.