Class LookupFieldUtil

java.lang.Object
com.saperion.ngc.iform.field.lookup.LookupFieldUtil

public final class LookupFieldUtil extends Object
Utility methods for AdvancedLookupField.
  • Method Details

    • valueContainedInTable

      public static boolean valueContainedInTable(AdvancedLookupField field)
      Parameters:
      field - the AdvancedLookupField 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(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 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