Class LookupFieldUtil
- java.lang.Object
- 
- com.saperion.ngc.iform.field.lookup.LookupFieldUtil
 
- 
 public final class LookupFieldUtil extends java.lang.ObjectUtility methods for AdvancedLookupField.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static LookupQueryConditiongetColumnCondition(AdvancedLookupField field)Returns the condition set on the condition-column of the field.static LookupQueryConditiongetColumnLinkCondition(AdvancedLookupField field)Returns the link-condition set on the condition-column of the field.static com.saperion.intf.SaPropertyValuegetTypedCondition(java.lang.String condition, int fieldType, java.lang.String ddc, java.lang.String fieldName)Returns a typed representation of the specified condition string.static booleanvalueContainedInTable(AdvancedLookupField field)
 
- 
- 
- 
Method Detail- 
valueContainedInTablepublic static boolean valueContainedInTable(AdvancedLookupField field) - Parameters:
- field- the- AdvancedLookupFieldto check
- Returns:
- true if the value entered in the field is empty or is contained in the lookup table
 
 - 
getColumnConditionpublic 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
 
 - 
getColumnLinkConditionpublic 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
 
 - 
getTypedConditionpublic 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 string
- fieldType- type of the field with the condition
- ddc- ddc of the field with the condition
- fieldName- name of the field with the condition
- Returns:
- typed value representing the condition
 
 
- 
 
-