CONDITION:
Attributes


ACTION

An action can be carried out on to another widget. You can change the editable status or visible status on another widget by specifying this action.

Value(s)

Default Value

#REQUIRED

ARGUMENT

Value(s)

CDATA

Default Value

#IMPLIED

COLOUR

If the condition action is to set a colour, this colour is used. The colour may be specified in text for a limited number of colours, but it is safer to specify it in #RRGGBB format.

If no colour is set, the action will restore original colour of the target instead.

Value(s)

CDATA

Default Value

#IMPLIED

CONVERT

Before running the compare 'operation' against 'value' you can convert something to a variable and use that for comparing. Convert can be normal (default), strlen or numtuples. More functions will be added in the future (check with dtd %valid_condconv_req). This function is useful when you want to create conditions on number of records or required string length.

Value(s)

Default Value

#IMPLIED

FORCE_NUMERIC_EVALUATION

Value(s)

Default Value

false

OPR

Operation is similar to what you would find in a SQL statement. You can specify a type of compare operation to do like equal/not equal/greater than etc. Check the dtd for more details.

Value(s)

Default Value

#REQUIRED

REVERSE_IF_FALSE

Normally when a condition is run, it only performs the action if the condition is met. If the reverse_if_false property is set to true, the opposite action is performed if the condition is not met.

Value(s)

Default Value

false

SOURCEDBOBJECTSRC

Name of the dbobject which the condition will retrieve values from.

Value(s)

CDATA

Default Value

#IMPLIED

SOURCEFIELD

Value(s)

CDATA

Default Value

#IMPLIED

SOURCETABLE

Name of the table that the sourcefield belongs to; only necessary if the dbobject has more than one field of the same name.

Value(s)

CDATA

Default Value

#IMPLIED

SOURCEWIDGET

Name of the widget from which the condition value should be taken. Note that it is possible to take values from database objects directly, see sourcefield, sourcetable and sourcedbobjectsrc below.

If sourcewidget and srcdbobjectsrc are not specified, but targetwidget is, then sourcewidget will default to the widget containing the condition.

Value(s)

CDATA

Default Value

#IMPLIED

TARGETWIDGET

Name of the widget which should be affected by the condition. Note that if the target widget is not specified, this will default to the widget containing the condition.

Value(s)

CDATA

Default Value

#IMPLIED

VALUE

This is a numerical or string value to compare using the 'opr' operation. It should not be set if you are doing a null or not null operation.

Value(s)

CDATA

Default Value

#IMPLIED
Back to CONDITION


bond-2.1 DTD