This feature was introduced with Frontline Command Center 3.0.11 and holds the following benefits:
If you want your components to behave in the same way, you need to enable the Use (component-)shared setting. For your components to behave differently, enable the Use (component-)local setting.
The following example is based on the Questionnaire component.
To define a particular property shared, the property must have all of the following 3 attributes: id
, shared
, and inherit
.
Note: The shared property ID must be unique. If the same ID is used multiple times, the property defined later on will not overwrite the previous one.
After applying the above described changes in the config.json file, additional options become available:
Additionally, the properties become available in the Shared Properties tab:
Click on the Globe/Home button to change which settings apply:
Docs
"shared":true, "inherit":true, "id":"unique_shared_variable_id",
The unique property ID can be used directly inside your workflow, without naming the whole property path:
<ui_element name="YOUR_UI_ELEMENT"> <param name="visibility"><![CDATA[§{#if shared_show_icon}§Visible§{else}§Gone§{/if}§]]></param> </ui_element> <!--vs.--> <ui_element name="YOUR_UI_ELEMENT"> <param name="visibility"><![CDATA[§{#if Configuration.layout.value.show_icon.value}§Visible§{else}§Gone§{/if}§]]></param> </ui_element>