Hi,
I'd like to have some buttons on "User home" to launch the same browse form but with different filters.
E.g. the frist button should set a filter "where employees.active = 1" to show only active employees
the 2nd button "where employees.active = 0" should a filter to show inactive employees
(a 3rd button should show all employees) etc.
How can I set these filters?
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.
Several buttons, launch same browse form, set filters Topic is solved
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Several buttons, launch same browse form, set filters
toms,
You can do this...
Steven
You can do this...
- Clone the main BrowseEdit Form
Change the SQL to filter out what you want.
Redirect To... the original Form.
Steven
You do not have the required permissions to view the files attached to this post.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Several buttons, launch same browse form, set filters
Thanks, that's a simple way to do it. I first tried passing a variable from the button to the form's sql but that just didn't work out for some reason.
However, the same technique works when opening a lookup form by setting a hash variable and using that in the form's sql.
However, the same technique works when opening a lookup form by setting a hash variable and using that in the form's sql.
-
- Posts: 15
- Joined: Thu Dec 14, 2017 11:51 am
Re: Several buttons, launch same browse form, set filters
toms is't working for You?
I've connected new Form to old one, but it open new Edit Form (blank without any objects).
I've connected new Form to old one, but it open new Edit Form (blank without any objects).
Re: Several buttons, launch same browse form, set filters
pierrot,
You may need an update from Github - there was a fix yesterday.
Steven
You may need an update from Github - there was a fix yesterday.
Steven