Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't know the how to do the second part with typing in a value but I can help with how to setup the drop down list. First write a query that selects the customer name and unique value for the customer. </p> <p>Example:</p> <pre><code>SELECT CUSTOMER_NAME, CUSTOMER_ID FROM CUSTOMER_TABLE </code></pre> <p>Then add the parameter and select your data type and the check box that says "Allow multiple values". Then in the properties click the "Available Values" tab. Once that opens select "Get values from a query" and select the the query you just wrote. Once that is selected go to the "Value" field and select the unique value from your query and for the "label" field select the customer name and they should all show up. </p> <p>When using the values from the parameter in your main query you will need to make sure you use the IN function and not =. This is because you are not getting just one value back but all of them at once.</p> <p>Example:</p> <pre><code>SELECT CUSTOMER_NAME,CUSTOMER_ADDRESS,CUSTOMER_CITY,... FROM CUSTOMER_TABLE WHERE CUSTOMER_ID IN (@CUSTOMERNAMEPARAMETER) </code></pre> <p>The name of the parameter is what variable name you need to use. </p> <p>Also just another tip you can have them all default to selected by going to the default values and select "Get values from a query" and select your query and unique value again. </p> <p>Also I don't think there is an issue with a number of items limit on the list box. I've had it up to almost 1,000 and had no issues. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload