<dependencies>

When a field of type 'value' changes its value 'v', the <dependencies> field allows to force a change in other values.

The parameters are as follows,

node - It is the xpath expression to the node that should be updated.

value - Field <value> allows to define a condition to execute a dependence.

att, atti, i=1,2 - Indicates to which attributes of a node affect a change in one value.

v,vi, i=1,2 - Indicates the new value for atti, i=1,2. It can be normal, hidden or disabled.

default - Default value for the condition. It permits to execute a dependence.

actualize - This only updates a specified field in data tree. Note that only this specified field will be refreshed in the user interface, and not the whole data tree. It is a boolean value as a 1 or 0 that indicates if it is activated or deactivated.

actualize_tree - It updates the information in the whole data tree, and automatically refresh data shown in the user interface. It is a boolean value as a 1 or 0 that indicates if it is activated or deactivated. If the data source is changed, such as new fields have been added or data values and field have been modified, all the user interface will reflect those changes. Furthermore, all the TCL procedures defined in the data tree will be called and the whole data tree will be refreshed. Therefore, this instruction must be carried out only when necessary.

Example: when the user select 'No' in the combo 'show_weight' the item value with name='weight' will be hidden, and when select 'Yes' is showed.

Note the use of a relative xpath node="../value[@n='weight']" to specify the xml node to be changed by the dependency:

<value n="show_weight" pn="Show the weight" values="Yes,No" actualize_tree="1">

<dependencies value='Yes' node="../value[@n='weight']" att1="state" v1='normal'/>

<dependencies value='No' node="../value[@n='weight']" att1="state" v1='hidden'/>

</value>

<value n="weight" pn="Weight" v="0.0" unit_magnitude="M" units="kg" help="Specify the weight that you want to apply"/>