To change the variable type, go to the menu Application> Global Variables.Īfter clicking on this menu will show the variables in the application and its settings. To pass values between applications, it is necessary to define the same variable in the applications that will use them, however, in the source application the variable must be defined as Output and in the destination application must be defined as Input. = “This global has a number stored in it” Passing values between applications = “This global has a text stored in it” To define a global variable, you only have to enter it in between brackets, for example:
SCRIPTCASE PRODUCTION ENVIRONMENT MANUAL
Unlike the local and field variables, Global variables can be used in the SQL of the applications that allows the manual to be changed, and in the WHERE Clause of the Form application, thus enabling a dynamic use of the applications. These variables can be used at any application event. These are variables that are stored in the application session, these variables can be used to pass parameters through the applications in the project. = 100 Global Variables (Session Variables) To assign the field value to a local variable to be used within an event, we can perform the steps as below: In the examples below it’s possible to visualize the operation of the fields. These fields can be used at Scriptcase events, but will not work from the onScriptInit event because only the events after that will have values in the fields.
In Scriptcase the fields are internally treated as local variables PHP, however, at Scriptcase interface it’s necessary to inform these, using keys, so it’s possible to retrieve or assign values to the application fields.