Class LookupFieldUtil
- java.lang.Object
-
- com.saperion.ngc.iform.field.lookup.LookupFieldUtil
-
public final class LookupFieldUtil extends java.lang.Object
Utility methods for AdvancedLookupField.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LookupQueryCondition
getColumnCondition(AdvancedLookupField field)
Returns the condition set on the condition-column of the field.static LookupQueryCondition
getColumnLinkCondition(AdvancedLookupField field)
Returns the link-condition set on the condition-column of the field.static com.saperion.intf.SaPropertyValue
getTypedCondition(java.lang.String condition, int fieldType, java.lang.String ddc, java.lang.String fieldName)
Returns a typed representation of the specified condition string.static boolean
valueContainedInTable(AdvancedLookupField field)
-
-
-
Method Detail
-
valueContainedInTable
public static boolean valueContainedInTable(AdvancedLookupField field)
- Parameters:
field
- theAdvancedLookupField
to check- Returns:
- true if the value entered in the field is empty or is contained in the lookup table
-
getColumnCondition
public static LookupQueryCondition getColumnCondition(AdvancedLookupField field)
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
public static LookupQueryCondition getColumnLinkCondition(AdvancedLookupField field)
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(java.lang.String condition, int fieldType, java.lang.String ddc, java.lang.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
-
-