If the control refers to another CARL Source object, you can assign an infozone to it
and customize its behavior.
The available infozones are accessible from the characteristics and attributes of the dictionary.
If the field is a standard object having an infozone, the infozone is automatic: you do not need to fill it in. However, you may customize it.
Search by infozone
An infozone provides access to a search form.
If the "infozone" field is filled in, you can specify the properties:
- Criterion 1 (Name): Attribute among the search criteria of the infozone for which you wish to assign a default value.
- Criterion 1 (Value): Default value of the criterion filled in in the "Criterion 1 (Name)" property. For a Boolean expression, enter #{true} or #{false}.
- Locked criteria: Names of the criteria, the values of which cannot be changed, separated by commas.
As soon as you have filled in the properties for a criterion, the properties of an additional criterion become available.
Example:
In a customized Asset details form, the only authorized templates are those of the "VEHICLES" family, and as default the templates offered are those for which the name starts with an "A."
The criteria of the "template" infozone are as follows:
Criterion 1 (Name) = name, Criterion 1 (Value) = A*, Criterion 2 (Name) = family, Criterion 2 (Value) = VEHICLES, Locked criteria: family: family.
The value can be dynamic. The expression must designate a character string (and not an object).
Example 1:
In the work order details, offer the cost centers for which the manager is the creator of the work order:
Criterion 1 (Name) = supervisor, Criterion 1 (Value) = #{formAnimator.bean.createdBy.code}.
Example 2:
In the WR details, offer agents whose manager is the same as that of the connected user:
Criterion 1 (Name) = supervisor, Criterion 1 (Value) = {actor.supervisor.code}.
The "code" criterion will only work in search mode and not in the direct entry mode. As a result, other discriminating criteria must be used.
Infozone on tree structure
For infozones that open the equipment tree structure, three specific criteria are available.
- structureFede: Code of the structure (hierarchical or network) corresponding to the tab to go to.
- positEquipment: Code of the equipment that will be selected in the tree structure if different from that entered in the infozone field.
- server: if structureFede is of the network type, indicate #{true} to display the equipment servers, #{false} to display customers.
Example of infozones in question: BOX, LISTBOX, ACTIVEBOX, MATERIAL, LISTMATERIAL, ACTIVEPATTERN, FAMILYSEL.
Suggestion/Completion
In an infozone, it is possible to configure the dialogue box that offers the values available for the field.
- Suggestion activation: To be checked so that the suggestion can appears for this field.
- Suggestion columns: Attributes displayed in the suggestion box, separated by commas, in addition to the code and name, displayed as default. For example, you can specify: manufacturer.code for the trademark.
- Suggestion Height/Width: Box size in pixels. The entered value is an integer, without the unit being specified. For example 300.
- Number of characters: Number of characters entered after which the suggestion box appears.
- Max number: Maximum number of offered elements.
- Refresh: Refresh interval in seconds. For example 0.4.
- Suggestion sorting: Sorting column for the offered data. For example, to sort agents according to their profiles: user.profile.code.
The default values of the
Number of characters,
Max number and
Refresh settings are defined in the
System configuration (respectively
suggestMinchars,
suggestMaxRows,
suggestFrequency).