Column Name
|
Description
|
Object name of data for children
|
Identifier
used to provide the data item to the child.
|
Data source – Name
|
Name
of the object where the data that should be provided to the child is located. You can
select one of the objects provided by parent dispels.
|
Data source – Reference
|
Reference
to a data item within the above identified object.
|
Not for tools
|
Data provided to children is normally available to tools,
too. If you check this option, data will be available only to children and not to tools.
|
Optional name
|
This option applies to data reference in the Enki
language. If you check this option, the object identifier (specified in the Object name of data
for children field) need not be specified; it is sufficient to specify the data reference –
the object is looked up automatically by virtue of the reference (i.e. the name of the first found object
containing the target of the reference is substituted). This applies, for example, to the behavior of
the
this standard identifier. See
the Data
References chapter in the section devoted to the Enki
language.
Example: suppose an object called address containing a street
item is defined here, and the Optional name checkbox is checked. Then, when you write
Enki
language expressions in subordinate dispels, it is enough to write
street
instead of the equivalent address.street .
If this checkbox is unchecked, you must always write the entire address.street
reference.
|
Item
|
Description
|
Name of variables
|
An identifier
used to provide the variables to the child. The standard identifier is
vars .
Example: if you keep the
vars
variables identifier unchanged and define an x
variable, the variable should be referenced in the Enki
language by the expression vars.x .
(If the Name of variables is optional option below is checked, it is enough to write
just x ). In subordinate editors, you
should set Object name = vars
and Data reference = x .
|
List of variables
|
|
Name
|
Variable name – must be an identifier.
|
Data type, type properties
|
Variable data type specified by the data
type editor.
|
optional
|
The variable value need not be assigned.
|
Initial value
|
The value assigned to the variable when the data provider is created.
|
Variables not accessible by tools
|
The variables object is normally available to tools,
too. If you check this option, it will be available only to children and not to tools.
|
Name of variables is optional
|
If checked, the identifier specified in the Name of variables field need not be specified
in the Enki
language. It is sufficient to specify directly the variable name. (
x
is enough instead of vars.x .)
See the Optional name item in the Functionality – data links
section above for more details.
|
number_of_customers
.
Item
|
Description
|
Object name
|
Name
of the object to which the handler should be attached.
|
Data reference
|
Reference
to data within the above specified object.
The reference can also contain asterisks replacing any name or index. This is especially
useful when you need to assign the handler to table columns or to any element in a list. See the chapter
on handlers
in the Definitions document section for details and examples.
|
Transitive
|
Significant only when the data reference points to a table or sequence. If the transitive
option is not checked, the handler is invoked only when an element of its own sequence is added
or removed. If the handler is defined as transitive, it is invoked also whenever the
value of any element of the sequences is changed.
If the data reference does not point to a sequence, this setting is ignored.
|
Invoke on event
|
|
data attached
|
If checked, the handler is invoked when data is attached (reason =
DATA_ATTACHED ).
|
data changed
|
If checked, the handler is invoked when data is changed (reason =
DATA_CHANGED ).
|
data detached
|
If checked, the handler is invoked when data is detached (reason =
DATA_DETACHED ).
|
Expression
|
Expression evaluated when the handler is invoked. The expression is entered using the function
editor. The value of reason is passed as parameter:
DATA_ATTACHED (0)
handler has been newly set – the first call of the handler enabling initialization, if applicable.
DATA_CHANGED (1)
monitored data has been modified.
DATA_DETACHED (2)
handler will be removed – the last call of the handler enabling the termination of data monitoring.
You should use the symbolic names specified here, if necessary. The numeric values enclosed in parentheses
are listed only as information for debugging.
|
err
Error
type. The validator function can assign an error message to this parameter (e.g.: err
= error("the value of X is too big");
)
The message should start with a lowercase letter and should not end with a period – errors can
be nested, and when they are listed, the first letter is automatically uppercased, and a period is placed
at the end.
set_data_ref
operator to specify reference to data related to the error. For strings you can also specify the line
and column where the error occurs. (e.g.: err<-set_data_ref(
[Dref]"data.age");
)
VLD_OK
(0)
err
parameter is ignored).
VLD_WARNING
(1)
err
parameter. He can choose either to close the window or to correct the error. If he chooses the latter,
an editor of the data specified by the err<-
set_data_ref
operator is activated.
VLD_ERROR
(2)
err
parameter. If a data reference is specified by the err<-
set_data_ref
operator, the respective editor is activated.
Data_provider_def