You can create a static table to enter structured data into a form. A static table is a type of container, like a field set, that can contain certain elements of a form. You can use the columns in the table to organize the data from each type of element. In contrast to a dynamic table, a static table consists of fixed data that you specify manually.
Follow these steps:
The name of the element that you drag-and-drop becomes the name of the first column. For example, if you drag-and-drop a Date element, the name of the first column becomes Date.
Similarly, the data that you enter in the column must match its element. For example, in a Date column, you can enter only dates.
Note: After you save the form, you can optionally rename the element that you dragged and dropped. If you rename the element, the name of the column changes accordingly. For example, if you rename the element to Start Date, the name of the column also changes to Start Date.
For date fields the value returned must be a long or appropriately formatted string. For label columns the value is converted to a string. For spinner columns, the value must be an integer or double. For text columns, the value is converted to a string.
The second element that you add specifies the name and data type of the second column, as illustrated in the previous step. For example, you can add a Text element as the second column. In that case, the second column is titled Text and must contain text data. As noted in the previous step, you can optionally rename the element, which automatically renames the column.
Note: You cannot move, copy, cut, or paste rows.
The Form Designer does not validate any actual data or the format of any data that you enter in the rows of the table. However, when users display the form in a request, the Catalog system validates the data and displays it only if you use the correct format. Thus, any invalid values that you specify do not appear when users view the form in a request. For example, if you specify a string value for a date column, the corresponding table cell appears empty to the user. Therefore, be careful to specify the correct format. For example, enter only dates in Date Time fields and only text in Text fields.
If you are using a Select field whose Multi-Select attribute is set to false, then the Select field does not contain the value attribute. In that case, do the following:
You have created a static table.
|
Copyright © 2013 CA.
All rights reserved.
|
|