Skip to main content

Utils Component



The ParamTargetValue DataElement can be used to store configuration for your application.

ParamTargetValue instances are triplets:

ParamName for the parameter
TargetAdditional tag. At least one triplet should have target default.
ValueValue 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.


You can enable dropdowns for String ValueFields by adding isListField:

<dataElement name="Starship">
<field name="status">
<isListField value="true"/>
<valueFieldType name="String"/>

The options can be provided by inserting TagValuePair instances in the Application

TagCombination of DataElement name and field ({dataElementName}_{fieldName})
ValueValue option

This feature does not work if 2 DataElements in different Components have the same name.