Hello, everyone. I did a quick search and didn't see a similar question out there so here goes...
I have an Impromptu pick list with several dozen values. Users typically select 1 item or all items. If the user selects all items, Impromptu builds a giant "IN" statement that is very inefficient. I'm trying to figure out how to alter the final SQL when this occurs. If I could dynamically control the SQL I would do something like this:
IF 1 Item Selected THEN " WHERE Field = Value Selected"
ELSE IF all Items Selected THEN do nothing
Since my pick list represents all available values in the "Field" column I don't need the WHERE statement line for this at all if all items are selected.
Any great ideas out there? Thank you!
Troy
I have an Impromptu pick list with several dozen values. Users typically select 1 item or all items. If the user selects all items, Impromptu builds a giant "IN" statement that is very inefficient. I'm trying to figure out how to alter the final SQL when this occurs. If I could dynamically control the SQL I would do something like this:
IF 1 Item Selected THEN " WHERE Field = Value Selected"
ELSE IF all Items Selected THEN do nothing
Since my pick list represents all available values in the "Field" column I don't need the WHERE statement line for this at all if all items are selected.
Any great ideas out there? Thank you!
Troy