When I run a search under Build Procedure Browse form it highlights my search in red as normal but is not filtering out the non matching records.
Thanks
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Build Procedure Search not filtering records
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Build Procedure Search not filtering records
Hi,
Can you show the Browse SQL?
Press CTRL+SHIFT+I in nuBuilder 4.5 or enter nuCurrentProperties().browse_sql in the developer console.
Can you show the Browse SQL?
Press CTRL+SHIFT+I in nuBuilder 4.5 or enter nuCurrentProperties().browse_sql in the developer console.
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
Re: Build Procedure Search not filtering records
SELECT zzzzsys_php_id,sph_code,sph_description,sph_group,CONCAT(sfo_code, ' - ', sfo_description)
FROM zzzzsys_php LEFT JOIN zzzzsys_form ON zzzzsys_form_id = sph_zzzzsys_form_id
WHERE (sph_system != '1' || sph_system IS NULL) or '#nuDevMode#' = '1' AND ( (CONVERT(sph_code USING utf8) LIKE "%Billing%" OR CONVERT(sph_description USING utf8) LIKE "%Billing%" OR CONVERT(sph_group USING utf8) LIKE "%Billing%" OR CONVERT(CONCAT(sfo_code, ' - ', sfo_description) USING utf8) LIKE "%Billing%") )
ORDER BY sph_code"
FROM zzzzsys_php LEFT JOIN zzzzsys_form ON zzzzsys_form_id = sph_zzzzsys_form_id
WHERE (sph_system != '1' || sph_system IS NULL) or '#nuDevMode#' = '1' AND ( (CONVERT(sph_code USING utf8) LIKE "%Billing%" OR CONVERT(sph_description USING utf8) LIKE "%Billing%" OR CONVERT(sph_group USING utf8) LIKE "%Billing%" OR CONVERT(CONCAT(sfo_code, ' - ', sfo_description) USING utf8) LIKE "%Billing%") )
ORDER BY sph_code"
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Build Procedure Search not filtering records
Enclose the WHERE statement with brackets to make it work:
SELECT * FROM zzzzsys_php
LEFT JOIN zzzzsys_form ON zzzzsys_form_id = sph_zzzzsys_form_id
WHERE ((sph_system != '1' || sph_system IS NULL) or '#nuDevMode#' = '1')
ORDER BY sph_code
SELECT * FROM zzzzsys_php
LEFT JOIN zzzzsys_form ON zzzzsys_form_id = sph_zzzzsys_form_id
WHERE ((sph_system != '1' || sph_system IS NULL) or '#nuDevMode#' = '1')
ORDER BY sph_code
You do not have the required permissions to view the files attached to this post.