Snippet - Arguments, Variables, Dynamic Values & Sourced Values
The Snippet – Arguments, Variables, Dynamic Values & Sourced Values project demonstrates how to define arguments, variables, dynamic values and shows how to use appRules Sourced Values to set these values.
Arguments
Arguments are defined in the Arguments tab of the Project Details form as show below.
Note that the values shown are defaults. They can be changed by passing different values when you run the project.
Variables
Variables are defined in the Variables tab of the Project Details form as show below.
Dynamic Values
Dynamic Values are not pre-defined. They are created automatically the first time they are used in the project.
Sourced Values
Sourced Values are used when getting and setting values in appRules. appRules includes several built-in value sources and editors are displayed at design time based on the Source(type) of the data. In this sample project, you will explore several editors displayed when setting the values.
The Sample Project:
Two activities are used in this project to set and display values.
SetValues Activity
This activity from the Base module is used for setting the values.
The Values property is a collection for setting values.
The following is the Sourced Value editor for setting the value:
The following is the selection of the Sourced Value that sets the new value:
ViewRuntimeValues Activity
This activity from the Dialogs module is used to display the values. When the project is run, the following form is displayed:
Last updated