Hello!
I’m loving Skuid and I’m on version 11.1.7 but noticed something that’s given me a challenge with the “contains” function in queries. When you set a model condition using “contains” as a condition this uses the LIKE function in SOQL.
Use case: I want the user input to generate a search on another model and return results based on similar names.
Here’s an example using the Account model, this is the actual Skuid soql:
SELECT Name,Type,Id FROM Account WHERE (Name LIKE ‘%Test Corp%’) LIMIT 11
This query doesn’t find things like “Test 2 Corp”.
This would be significantly more effective if the spaces were substituted for a % sign so the query ready like this:
SELECT Name,Type,Id FROM Account WHERE (Name LIKE ‘%Test%Corp%’) LIMIT 11
This would find things like “Test 2 Corp”
Thank you,
Dan
Question
Model Query operator for Contains doesn't sub spaces with %
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
