JQADM search with wildcard?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
JQADM search with wildcard?
Hi,
is it possible to search for customers in the backend/jqadm using wildcards (*, %, etc.)?
(using PostgreSQL)
For example, a customer with a company name of "Super Test Company".
Search for "Super" (first term, correct case (S))
-> OK, result: "Super Test Company".
Search for:
"super" (s … case sensitive), or
'Test' (2nd term) , or
"Company" (3rd term)
-> no results
Are there any options to search for eg.: "%test%" in jqadm?
thank you!
is it possible to search for customers in the backend/jqadm using wildcards (*, %, etc.)?
(using PostgreSQL)
For example, a customer with a company name of "Super Test Company".
Search for "Super" (first term, correct case (S))
-> OK, result: "Super Test Company".
Search for:
"super" (s … case sensitive), or
'Test' (2nd term) , or
"Company" (3rd term)
-> no results
Are there any options to search for eg.: "%test%" in jqadm?
thank you!
Re: JQADM search with wildcard?
Overwrite the template in your own extension where you want to use a "%...%" based search and add "~=" as operator, e.g. here:
https://github.com/aimeos/ai-admin-jqad ... t.php#L191
Example:
This enables searching within the string but be aware that no index is used that it will be very slow when you have a lot of recoreds.
https://github.com/aimeos/ai-admin-jqad ... t.php#L191
Example:
Code: Select all
'customer.company' => ['op' => '~='],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
