Validation Messages

Topic updated 11-5-2007

GenWise projects use a system of validations that produce messages when they are not passed.

GenWise Templates validate themselves. Validation messages propagate from the templates where they originate to parent templates, up to the project template. When a template down in the template hierarchy has validation messages, all its parent templates up to the project template show these validation messages.

Some actions in GenWise Studio cause validations to be performed automatically, for example source code generation or certain changes to templates. It is also possible to manually start validation of project items.

 

Validation message indicators

There are two types of validation messages with corresponding indicator icons:

ValidtionError-Yellow

Yellow validation message icons indicate validation warnings. Validation warnings do not prevent project items from being used or generated. This indicates however that problems are expected to arise if you try to use the item in some advanced way.

ValidtionError-Red

Red validation message icons indicate the more serious validation errors. Validation errors must be fixed before the project can be successfully regenerated and/or saved.

Validation message indicators appear in different parts of the GenWise Studio user interface:

In the Project Explorer
In the Template Tree displayed on a Template Options Page
In the Template Tree tool window of the WebForm Designer.

 

Validation messages propagate up the template hierarchy as shown in the example below. A validation error in a project item causes the yellow validation error icon to be displayed next to the project item and next to the project node in the Project Explorer.

A tooltip with the validation message appears if you move the mouse over items that have a validation message indicator. Validation messages from child nodes are collected in these tooltips. If multiple project items have validation messages, the tooltip of the project node will list all those messages.

ValidationMessageTooltip

 

See also

Validation of project items