In a USoft client/server GUI, you can refer at all times to values of the following system-defined variables in the USoft Action Language:
As with other variables in path syntax, in USoft Action Language syntax, you can refer to values of system-defined variables by using a colon:
Application status is constantly available in a USoft C/S GUI. At each point in time, it has either the value 'unchanged' or the value 'changed'. Record status has the NULL value when the current context is not a record in an info box, for example, when the end user is currently in the SQL Command dialog.
NOTE 1: When you record a procedure in USoft Benchmark, application status and record status are recorded for each step. When the procedure is played back, USoft checks for each step that the current application status and the current record status are the same as when the procedure step was recorded. If there is a difference, the playback raises an error ("Application status lists different" or "Record status lists different").
NOTE 2: Unlike system-defined global variables (below), you cannot retrieve values of applicationStatus and recordStatus by referring to these variables in a SQL SELECT list. The following raises an error:
However, you can test values of the applicationStatus and recordStatus variables in WHERE clauses of Decision SQL.
In this example, the input parameter passed to the :1 placeholder is selected IF the application status is currently 'unchanged':
WHERE :applicationStatus = 'unchanged'
System-defined global variables
After you have set the language for a Binder project, or executed one of the following methods:
You can use a system-defined global variable to get the result:
If a language has been set, the global.language variable contains this setting, otherwise it contains an empty string.
As with other variables in path syntax, refer to the value of the global using a colon:
Global.system_result returns an empty string if the CommandWindows() command has failed for another reason than Out of memory, File not found, or Path not found.