Example - Setting variables in an initial project
Suppose you need to create a project Wizard where you need to display the domain name and the name of the currently logged in user in various different forms. It would of course be possible to define these variables for each individual form or project, but it is much more efficient to define these variables in an initial project which can be referred to from within other projects.
1. Create a new form project called ProjectVariables. In this project we will create an action which splits the variable %UMRAFormSubmitAccount% into two variables, one to hold the domain name (%UmraFormSubmitDomain%, the other (%UmraFormSubmitUsername% to hold the user name. The separator delimiter is the backslash (MyDomain\jsmith is thus separated in "MyDomain" and "jsmith").
2. Drag the script action Split variable to the script window and enter the following property values:
This project form can now be referred to in other project forms where you want to use the variables for domain and user name.