Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Browse Screen display rows conditionally

Questions related to using nuBuilder Forte.
Post Reply
Martin
Posts: 30
Joined: Fri Nov 09, 2018 5:42 pm

Browse Screen display rows conditionally

Unread post by Martin »

How can I do this: Each user only sees his own entries but the globadmin and all users with the role "super" see all entries (of all users).
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: Browse Screen display rows conditionally

Unread post by admin »

Martin,

You can do this by using Hash Cookies in the Browse SQL of the Form properties.

eg.

Code: Select all

SELECT * FROM customer 
WHERE cus_employee_id = '#USER_ID#'
OR '#USER_GROUP_ID#' = ''
https://wiki.nubuilder.cloud/ ... sh_Cookies

If you want to know which Hash Cookies are available you could add this to the Before Browse event of the same Form.

Code: Select all

nuDebug(nuHash());
And check it in the Debugger.

Steven
Post Reply