Package org.idempiere.adinterface
Class ADLookup
- java.lang.Object
-
- org.idempiere.adinterface.ADLookup
-
public class ADLookup extends Object
-
-
Constructor Summary
Constructors Constructor Description ADLookup()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
fillLookupValues(org.idempiere.adInterface.x10.LookupValues lvs, Lookup lookup, boolean isMandatory, boolean isReadOnly, boolean isShortList)
static String
getDirectAccessSQL(Lookup lookup, String text)
Generate Access SQL for Search.static boolean
isUUID(String value)
-
-
-
Method Detail
-
fillLookupValues
public static void fillLookupValues(org.idempiere.adInterface.x10.LookupValues lvs, Lookup lookup, boolean isMandatory, boolean isReadOnly, boolean isShortList)
- Parameters:
lvs
-lookup
-isMandatory
-isReadOnly
-isShortList
-
-
getDirectAccessSQL
public static String getDirectAccessSQL(Lookup lookup, String text)
Generate Access SQL for Search. The SQL returns the ID of the value entered Also sets m_tableName and m_keyColumnName- Parameters:
text
- uppercase text for LIKE comparison- Returns:
- sql or "" Example SELECT C_Payment_ID FROM C_Payment WHERE UPPER(DocumentNo) LIKE x OR ...
-
isUUID
public static boolean isUUID(String value)
- Parameters:
value
-- Returns:
- true if value is a uuid identifier
-
-