#Default value in Filter of a Query
1 messages · Page 1 of 1 (latest)
You could try something like {{ CategoryDropDown.selectedOptionValue !== undefined ? CategoryDropDown.selectedOptionValue : 'your wildcard here' }}
Okay, that code looks good but what can be used as wildcard for Google Spreadsheets?
Asterisk and ampersand are not working.
If I try text contains = * in Google Spreadsheet it work as expected.
If that works, then maybe make it a contains clause instead but with the same
logic.
I already changed the condition to contains but no combination with * work in my query.
As all values in the column started with the same word I now use the following JS expression:
{{ CategoryDropDown.selectedOptionValue ? CategoryDropDown.selectedOptionValue : 'Word' }}
And does this work as expected for you?
Yes it does. But I think here we have a bug as known wildcards for Spreadsheet filters does not work.
Could you please help us file a feature request/bug using the following link?
https://github.com/appsmithorg/appsmith/issues/new/choose
Please include your use case and how it will be useful for you.
Is there an existing issue for this? I have searched the existing issues Description When I try to use wildcard characters in a google spreadsheets query for Filter by it does not work. Known wildc...