Set shared data provider
Actions – Abstract
The Set shared data provider action assigns the available input data ($input) to a so-called 'shared data provider'.
The Set shared data provider action assigns the available input data ($input) to a so-called 'shared data provider'. Multiple elements of a form can use the same shared data provider as a data source without having to initialize the data service for each element individually. This technique is particularly common in the context of a Dashboard, where different output formats are often used on a common database.
►NOTE◄ Linking an element has no effect on this action. If a target element is already linked, the action cannot be selected under Action type.
The optional Data Provider ID parameter defines an identifier for the data provider to which the input data is assigned. The text used can be freely assigned. Elements that use this data provider must refer to this ID.
If no Data Provider ID is specified, the (numeric) element ID of the executing element is used as the data provider ID, as suggested by the light grey colored standard text (see image).
Example
Discrete load carriers and their loading and unloading locations along a previously compiled route are entered in a form. The route is defined in the example as a multiple selection of master data items (City). The City selected as the Route should then in turn determine the options in the Combobox for Place of loading and Place of unloading when registering individual load carriers in a Repeatable element container.
Runtime example:
As the view demonstrates, the precise City for the Place of loading can be selected, which is defined by the Multiselect combobox Route above by multiple selection.
The entries appear in the Multiselect combobox in the order of their selection.
Configuration:
|
The behaviour shown on the left is configured for the Multiselect combobox Route:
|
|
For the two Combobox elements Place of loading and Place of unloading, which should offer the City selected via the Multiselect combobox Route as options, the configuration under 'Entries and Services' must be shown as indicated on the left:
|