Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Build Procedure Search not filtering records

Questions related to using nuBuilder Forte.
Post Reply
chpwebmaster
Posts: 72
Joined: Mon Jun 10, 2019 5:00 pm
Has thanked: 6 times
Been thanked: 4 times

Build Procedure Search not filtering records

Unread post by chpwebmaster »

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
kev1n
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

Unread post by kev1n »

Hi,

Can you show the Browse SQL?

Press CTRL+SHIFT+I in nuBuilder 4.5 or enter nuCurrentProperties().browse_sql in the developer console.
chpwebmaster
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

Unread post by chpwebmaster »

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"
kev1n
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

Unread post by kev1n »

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
You do not have the required permissions to view the files attached to this post.
Post Reply