ClaySys AppForms 1.0
Session variables are used for carrying on a common value in multiple forms of a tenant. On clicking Session Variables under the Data Entry section the following form is displayed :

Variable Name: Enter the name of the session variable to be created.
There are three buttons on the Session Variables form, below the Session Variables title:
- Save: On clicking this button the Session Variable with provided Variable Name is saved and displayed in the list below.
- Delete: On clicking this button a saved Session Variable from the list can be deleted.
- Clear: On clicking this button data entered in the text box is cleared.
A Session Variables grid with Variable Name column exists, which displays all the defined Session Variables with their Variable Names.
Example:

In this example a Session Variable with its Variable Name Sessionvar1 is defined and viewed in the list column Variable Name as in figure.
Example Flow:
- This flow is provided to give a basic idea about the use of session variable created.
- Create a session variable with Variable Name ‘Sessionvar1’ and save it.
- Create a form “SessionForm” with a textbox “txtsession” and button “btnok”.
- In the rules section, add a rule named “sessionRule”. This rule is created to assign a value to the session variable Sessionvar1 and displays the Sessionvar1 in a Message box on clicking the OK button as in figure.
- Add an action to the rule Session (Sessionvar1)=txtsession.Value.
- Add an action with Messagebox(Session(Sessionvar1)).
- Add the trigger as btnOK.

Preview:
When the button OK is clicked the session variable assigned is displayed in the Messagebox of the form named “SessionForm” as shown in figure below.

- Create another form “Sessiontest” with a textbox “txtsestest” and button “btnok”.
- In the rules section, add a rule named “sessiontestRule”. This rule is created to display the value of session variable ‘Sessionvar1’on clicking the OK button as shown in figure below.
- Add an action to the rule txtsestest.Value= Session(Sessionvar1).
- Add the trigger as btnok.

Preview:
When the button OK is clicked the session variable assigned through the form “SessionForm” is displayed in the textbox of the form named “Sessiontest” as shown.
