Good day!
This is my sql that works just fine in a browse screen but what doesn't work is the search, it won't find anything. Just an empty table is shown. Am I missing something here?
SELECT
*
FROM (SELECT
t.*,
cu.client,
mgr.name AS manager
FROM t
LEFT JOIN cu
ON t.id = emp.id
LEFT JOIN cu AS mgr
ON cu.mgr_id = mgr.id
WHERE (f = ''
AND (usr = '#USER_ID#'
OR f <> 'globeadmin'))) T
ORDER BY d DESC
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.
browse screen search not working
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: browse screen search not working
Amit,
Add a WHERE 1 as shown below. This is required for the "query parser" to work correctly.
Add a WHERE 1 as shown below. This is required for the "query parser" to work correctly.
Code: Select all
SELECT
*
FROM (SELECT
t.*,
cu.client,
mgr.name AS manager
FROM t
LEFT JOIN cu
ON t.id = emp.id
LEFT JOIN cu AS mgr
ON cu.mgr_id = mgr.id
WHERE (f = ''
AND (usr = '#USER_ID#'
OR f <> 'globeadmin'))) T WHERE 1
ORDER BY d DESC
-
- Posts: 36
- Joined: Sat Jun 02, 2018 1:26 pm