Class LookupFieldUtil
java.lang.Object
com.saperion.ngc.iform.field.lookup.LookupFieldUtil
Utility methods for AdvancedLookupField.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LookupQueryCondition
Returns the condition set on the condition-column of the field.static LookupQueryCondition
Returns the link-condition set on the condition-column of the field.static com.saperion.intf.SaPropertyValue
getTypedCondition
(String condition, int fieldType, String ddc, String fieldName) Returns a typed representation of the specified condition string.static boolean
-
Method Details
-
valueContainedInTable
- Parameters:
field
- theAdvancedLookupField
to check- Returns:
- true if the value entered in the field is empty or is contained in the lookup table
-
getColumnCondition
Returns the condition set on the condition-column of the field. IF no condition is set, the returned LookupQueryCondition will be marked as not found.- Parameters:
field
- field to get the condition from- Returns:
- column-condition
-
getColumnLinkCondition
Returns the link-condition set on the condition-column of the field. If no link-condition is set, the returned LookupQueryCondition will be marked as not found.- Parameters:
field
- field to get the condition from- Returns:
- column link condition
-
getTypedCondition
public static com.saperion.intf.SaPropertyValue getTypedCondition(String condition, int fieldType, String ddc, String fieldName) Returns a typed representation of the specified condition string. If the string cannot be converted to the specified field type, an IllegalArgumentException is thrown.- Parameters:
condition
- condition as stringfieldType
- type of the field with the conditionddc
- ddc of the field with the conditionfieldName
- name of the field with the condition- Returns:
- typed value representing the condition
-