Utils Component
ParamTargetValue
The ParamTargetValue DataElement can be used to store configuration for your application.
ParamTargetValue instances are triplets:
Field | Description |
---|---|
Param | Name for the parameter |
Target | Additional tag. At least one triplet should have target default . |
Value | Value for this param-target combination |
The ParamTargetValueAgent exposes 2 methods:
public String getParamTargetValue(String paramName, String targetName) {}
public boolean isParamTargetValueActive(String paramName, String targetName, boolean defaultValue) {}
getParamTargetValue()
returns the value associated with the given paramName and targetName.
In case this combination is not defined, the method returns the value associated with paramName and target default
.
isParamTargetValueActive()
returns true if the associated value is true
, false if it is false
and otherwise defaults to the default value.
This method also defaults to target default
if the given target is not defined.
TagValuePair
You can enable dropdowns for String
ValueFields by adding isListField
:
<dataElement name="Starship">
<fields>
<field name="status">
<isListField value="true"/>
<valueField>
<valueFieldType name="String"/>
</valueField>
</field>
</fields>
</dataElement>
The options can be provided by inserting TagValuePair instances in the Application
Field | Description |
---|---|
Tag | Combination of DataElement name and field ({dataElementName}_{fieldName} ) |
Value | Value option |
This feature does not work if 2 DataElements in different Components have the same name.