I have a strange encounter when creating a GridView using SELECT..WHERE..<field> IN (value1, val2...) .
On the Configure Data Source tab, if I hardcode the SELECT .... WHERE field1 in ('AAA', 'BBB', 'CCC') values SELECT .... WHERE field1 in ('AAA', 'BBB', 'CCC') , the system works well.
However, if I define a new parameter and pass in a concatenated string of values ββusing a variable; be it @session, Control or querystring; for example SELECT .... WHERE field1 in @SESSION result is always empty.
I did another experiment, reducing the content of the parameter to a single value, it works well.
in short, if I hardcode a string of values, it works, if I pass a variable with a single value, it works, but if I pass varialbe with two values; he did not pass.
Pls advise if I am wrong or this is a known bug.
BR SDIGI
SDIGI9
source share