This commit is contained in:
@@ -25,7 +25,7 @@ namespace AyaNova.PickList
|
||||
const int MAXIMUM_RESULT_COUNT = 100;
|
||||
|
||||
//Build the query for a picklist request
|
||||
internal static string Build(IAyaPickList pickList, List<string> templateColumnNames, string autoCompleteQuery, string tagSpecificQuery, bool IncludeInactive, long preId, string variant)
|
||||
internal static string Build(IAyaPickList pickList, List<string> templateColumnNames, string autoCompleteQuery, string tagSpecificQuery, bool IncludeInactive, long[] preIds, string variant)
|
||||
{
|
||||
|
||||
//determine this in advance as it will be used in a loop later
|
||||
@@ -62,9 +62,12 @@ namespace AyaNova.PickList
|
||||
|
||||
|
||||
|
||||
if (preId != 0)
|
||||
if (preIds.Length > 0)
|
||||
{
|
||||
PredefinedOnlyWhereFragment = rowIdColumn.SqlIdColumnName + " = " + preId.ToString();
|
||||
//select id,name from acustomer where id in(1,3,5,7)
|
||||
//string.Join(",", arr)
|
||||
// PredefinedOnlyWhereFragment = rowIdColumn.SqlIdColumnName + " = " + preId.ToString();
|
||||
PredefinedOnlyWhereFragment = $"{rowIdColumn.SqlIdColumnName} in ({string.Join(",", preIds)})";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user