Class QueryDataLookup

    • Constructor Detail

      • QueryDataLookup

        public QueryDataLookup​(int windowNo,
                               org.idempiere.adInterface.x10.ADLoginRequest login,
                               String keyColumn,
                               String displayColumn,
                               String filter,
                               String endPoint,
                               String serviceType)
        Parameters:
        windowNo -
        login -
        keyColumn -
        displayColumn -
        filter -
        endPoint -
        serviceType -
    • Method Detail

      • getDisplay

        public String getDisplay​(Object key)
        Description copied from class: Lookup
        Get Display of Key Value
        Specified by:
        getDisplay in class Lookup
        Parameters:
        key - key
        Returns:
        String
      • get

        public NamePair get​(Object key)
        Description copied from class: Lookup
        Get Object of Key Value
        Specified by:
        get in class Lookup
        Parameters:
        key - key
        Returns:
        Object or null
      • getData

        public ArrayList<Object> getData​(boolean mandatory,
                                         boolean onlyValidated,
                                         boolean onlyActive,
                                         boolean temporary,
                                         boolean shortlist)
        Description copied from class: Lookup
        Fill ComboBox with Data (Value/KeyNamePair)
        Specified by:
        getData in class Lookup
        Parameters:
        mandatory - has mandatory data only (i.e. no "null" selection)
        onlyValidated - only validated
        onlyActive - only active
        temporary - force load for temporary display
        Returns:
        ArrayList
      • getColumnName

        public String getColumnName()
        Description copied from class: Lookup
        Get underlying fully qualified Table.Column Name. Used for VLookup.actionButton (Zoom)
        Specified by:
        getColumnName in class Lookup
        Returns:
        column name
      • containsKey

        public boolean containsKey​(Object key)
        Description copied from class: Lookup
        The Lookup contains the key
        Specified by:
        containsKey in class Lookup
        Parameters:
        key - key
        Returns:
        true if contains key
      • containsKeyNoDirect

        public boolean containsKeyNoDirect​(Object key)
        Description copied from class: Lookup
        The Lookup contains the key, do not push direct
        Specified by:
        containsKeyNoDirect in class Lookup
        Parameters:
        key - key
        Returns:
        true if contains key
      • refresh

        public int refresh()
        Refresh and return number of items read. Get get data of parent lookups
        Overrides:
        refresh in class Lookup
        Returns:
        no of items read