Manage Services - Form table
The form table lists the services and services status information. The configuration of the table is described in this chapter. The services information is obtained in project Collect Services. In that project, the services information is stored in a table variable. The variable is passed to the Manage Services project. The generic table type is able to show the table data of a variable. So select Generic table as shown in the following figure:

Press Configure to continue. Next, you need to select the type (source) of the generic table. Select Variable since the table data is obtained from a variable.

When selected, the configuration window Variable generic table can be selected. The window is used to specify the name of the variable and to define the columns of the table.

Specify the name of the variable: %ServicesTable%. The name must equal the name of the variable generated by the action List services status of project Collect Services.
Important: A table variable only holds the data of the table, not the names of columns. You therefore need to add the names of the columns that can be shown with the generic table. As described in the online help, the List services status generates a table with the following columns: Computer, Service, Name, State, StateCode, ProcessId, Type (text), Type (code), Interactive, Startup (text), Startup (code), Executable, Log on as. Add these columns one-by-one. The first part of the generic table configuration is now complete. Press OK.
You now need to setup the table columns that must be shown in the form. Click on the Columns tab.

This window is used to configure the columns that must shown in the form and to specify the variables that are passed to the UMRA Service when the end-user selects a service and presses a submit button.
On the left side, the Available columns are shown. These columns correspond with the columns configured in the previous step. By using the add (->) and remove (<-) buttons you can setup a column configuration. In the example, the form will show a table with 3 columns. The 3rd column is not visible since it has a width of 0%. This column is included since it uniquely specifies the name of the service. When the user selects a service and presses a button, the value of this column is stored in variable %ServiceName%. This variable is passed to the UMRA Service and used for further processing.
Use the Row icon image and Options windows to specify additional table configuration settings. The configuration of the table is now complete.
To specify additional table display settings such as font and alignment, select the Display window of the Configure form field window.
|