Welcome to the nuBuilder Forums!

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

Questions related to using nuBuilder Forte.
Post Reply
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Several buttons, launch same browse form, set filters

Unread post by toms »

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?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Several buttons, launch same browse form, set filters

Unread post by admin »

toms,

You can do this...
  • Clone the main BrowseEdit Form
    Change the SQL to filter out what you want.
    Redirect To... the original Form.
This will open any choice from the new Browse Form to the original Edit Form.
Untitled.png
Steven
You do not have the required permissions to view the files attached to this post.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Several buttons, launch same browse form, set filters

Unread post by toms »

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.
pierrot
Posts: 15
Joined: Thu Dec 14, 2017 11:51 am

Re: Several buttons, launch same browse form, set filters

Unread post by pierrot »

toms is't working for You?
I've connected new Form to old one, but it open new Edit Form (blank without any objects).
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Several buttons, launch same browse form, set filters

Unread post by admin »

pierrot,

You may need an update from Github - there was a fix yesterday.

Steven
Post Reply