Questionnaires

Compose a Questionnaire

Technologies > Software Engineering Techniques > Advanced Techniques > Create and View Questionnaires

Several views exist in Archibus Web Central for the creation of questionnaires specific to certain applications. For example, to define a Project Questionnaire see Capital Projects / Projects / Setup / Define Project Questionnaires .

When composing a questionnaire:

• Create a new questionnaire id (Questionnaire Code).
• Create a series of questions associated with that questionnaire id.

The following format types are available to each question:

Free Form

The Free Form format type displays an input field. If defined, Free Form Width sets the maximum length of the input value.

Enumerated

The Enumerated format type provides an enumerated list of answers from which the user may select. The list should be defined in the Enumeration List field as a semi-colon delimited list of values. Each possible answer should be listed first by id and then by display value. For example, a list consisting of "Yes" and "No" could be given as:

Yes;Yes;No;No

The Enumerated format type has the additional feature of being able to trigger the generation of action items as a result of user input. This technique is further described under Setting Up an Action Response .

Lookup

The Lookup format type allows the user to lookup a value in an existing table by opening a Select Value dialog. When a Format Type of Lookup is selected for a question, the Look-up Table and Look-up Field fields must also be defined for the question. Enter the table name and field name of the lookup field to appear in the select value dialog.

Date

The Date format type displays a standard Date form field.

Setting Up an Action Response

The questionnaire can be set up to generate an action item as a result of user input into a question field. The following steps must be taken in order to set up an Action Response:

• Create a new question
• Enter a Question Name to appear as the action item's title
• Select a Format Type of Enumerated and define the Enumeration List
• Enter one of the Enumeration List values into the Action Response field
• Select an Action Type for the action item to be generated

Take, for example, the question "Create a nameplate for the new employee?" with an enumerated list of "Yes;Yes;No;No". If "Yes" is entered into the Action Response field, then a user input of "Yes" will generate an action item when generateActions() is called from the questionnaire control.

Questionnaires

For a full explanation of all fields in the questionnaire and questions tables, see The Questionnaire Tables .