This menu shows the global variables being used within the application, the global variable is an external parameter required to application execution. The application can include global variables in the WHERE clause, in the definitions and field names, programming events, etc.
Global variables are defined in square brackets ([variable]). These variables should be passed to the application that is being implemented through one of the methods (Session, Post, Get).
Image 1: Global Variables Interface.
Select customerid, customername from customers
where customerid ='[ID]'
In this case, the variable "ID" will be displayed in the "Variables Settings".
Image 2: Variables Settings Interface.
Show all global variables used in the application.
- Attribute - Variable name in the application.
- Value - Defines variables behavior, this content is subdivided in three blocks, they are:
- Scope - Defines how the variable is received by the application. If it has been defined to use the Post method and it pass by using the Get method so the content won't be accepted. Ways to pass values of variables :
- Session - In this option the variable must be created as a session variable in the PHP by other application.
- Get - Defines that the variable must be passed by the URL, that means, being visible to the browser.
- Post - Defines that the variable must be passed through the Post method of an HTML form.
- Settings - Do not validate (checking) the variable at execution time.
- Type (Input/Output) - Defines if the variable is an input or an output.
- Description - Indicates where the variable is being used.