Model Templates : Properties : Properties Initiation Section : Body

Body

The body of the initiation section is between the BEGIN and END keywords. In this template, the body consists of only one statement, an assignment statement that assigns a value to the LIST OF DATA_ITEM variable, di_ids. A database extraction function assigns to di_ids a list of elements whose names match the string pattern di_pattern. These are the data-items for which the report will be generated. In this example, assume that you specified the string pattern SIGNAL*. The data-items for which the properties are generated will all have names that begin with SIGNAL (see the generated output in Final Output for Data-item Properties.

Note that the template uses a status code variable, st, as an argument in the function. However, the template does not include a statement to check st. If st does not indicate success, the returned list of data-items assigned to di_ids is empty.