I need to create a query form with an input parameter that accepts multiple string inputs.
According to Alation's document "What is a query form? Do you have parameters?", the code is simple:
for passing multiple values:
select * from order_history where customer_id in (${customer_id | type : raw});for string multiple values:
select * from order_history where customer in ${customer | type : raw};
(I don't know what the difference is between passing multiple values and string multiple values, so if anyone can share that insight I'd be grateful).
My code:
SELECT * FROM WTY_DM.PRODUCT
WHERE VIN IN ${VIN | type : raw};
Result:
It produces the parameter option as expected:

But a comma-delimited list as shown in the box throws an identical error whether I use the "passing multiple values" version or the "string multiple values" version:

Expected Result: Everything from that table where the VIN matches either of the entries in the parameter field.
We are not sure about your statement especially ${customer_id | type : raw} part. We might need more detail information about customer_id, type and raw for better understanding of your question.
But generally speaking that part should be like a single word, such as 1 , 'A' or 'BBB'. Or 2 or more words with parentheses, such as (1, 2), ('A' , 'B') or ('AAA' , 'BBB').
Here is a sample usage script of IN and result for your reference on AIX Db2 V11.5.
Here are results of the three select statements:
Hope this helps your understanding.