Special table type - Generic table Variable
Not all user relevant data can be captured using an LDAP or database query. Table data are also generated by some specific script actions, in which case the collected data are stored in a variable, instead of being generated as part of a form table object. UMRA comes with several built-in script actions producing table output, stored in a variable:
List services status – script action to manage services;
List printer documents – script action to manage printers and printer queues;
Generate generic table - script action to generate a generic table (LDAP query, database query or variable) and store the result in a variable for further processing;
LDAP script actions to access other (non-Active Directory) directory service like Novell eDirectory and Linux OpenLDAP;
Manage table data – script action for creating, editing, and merging tables. See section Programmatically creating and evaluating tables and the Help for more information.
Projects making use of these script actions, usually consist of two parts. The first project, or "auxiliary" project can be defined as the project in which the project data are collected using one of the above mentioned script actions. The result is stored in a variable. In the second project, or "main" project, a table of the variable type can be inserted to show the contents of this variable. Script actions can then be executed for selected rows in the table (see the figure below).

Figure 17 - Concept of the generic table Variable
The practical use of this powerful concept is illustrated in and 16. Project A contains the script action "List services status". The result of this script action is
stored in table format in a variable called %ServicesTable%.

Figure 18 - Project A - Running a script action collecting data in table format. The results are stored in a variable.
By defining project A as an initial project in project B, the script in project A will be executed before the form of project B is displayed. The variables in project A will be passed to project B. In project B (see Figure 15), a generic table of the variable type can now be inserted in the form window to display content of the variable %ServicesTable%.

Figure 19 - Project B - The content of the variable is now displayed using the generic table Variable
|