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.
Limit Search on a browse form to just one column?
Limit Search on a browse form to just one column?
Is there a simple way to restrict the search on a browse form to just one column. The default seems to be to search all columns.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Limit Search on a browse form to just one column?
Manually via Options Menu:
By Code: nuSetNoSearchColumns()
This function excludes a list of columns from being searched on the current Browse Form.
A new function has been added to nuBuilder: nuSetSearchColumns()
This function includes a list of columns from being searched on the current Browse Form, all other columns are excluded.
E.g. include only the first column:
By Code: nuSetNoSearchColumns()
This function excludes a list of columns from being searched on the current Browse Form.
A new function has been added to nuBuilder: nuSetSearchColumns()
This function includes a list of columns from being searched on the current Browse Form, all other columns are excluded.
E.g. include only the first column:
Code: Select all
nuSetSearchColumns([0]);
You do not have the required permissions to view the files attached to this post.
-
- Posts: 3
- Joined: Thu Jun 01, 2023 5:36 pm
Re: Limit Search on a browse form to just one column?
I am a complete nuBuilder novice with only a few hours experience.
This is exactly what I want to do, but where do I put the call to nuSetSearchColumns?
This is exactly what I want to do, but where do I put the call to nuSetSearchColumns?
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Limit Search on a browse form to just one column?
Hi,
Place that code in the form's Custom Code.
1) Click on the "Options Menu"
2) Select "Form Properties"
3) Select the "Custom Code" Tab
4) Click on the "Browse" button
5) Write your code in the JavaScript field.
Place that code in the form's Custom Code.
1) Click on the "Options Menu"
2) Select "Form Properties"
3) Select the "Custom Code" Tab
4) Click on the "Browse" button
5) Write your code in the JavaScript field.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 3
- Joined: Thu Jun 01, 2023 5:36 pm
Re: Limit Search on a browse form to just one column?
Hello Kevin,
Thanks for your quick response.
I have now got this to work using NuSetNoSearchColumns()
nuSetSearchColumns() does not work for me. Perhaps I am not using the latest version.
Your screenshot above shows a Version Info option in the drop down menu, but I don't see this.
Thanks for your quick response.
I have now got this to work using NuSetNoSearchColumns()
nuSetSearchColumns() does not work for me. Perhaps I am not using the latest version.
Your screenshot above shows a Version Info option in the drop down menu, but I don't see this.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Limit Search on a browse form to just one column?
What version are you using? (See button Setup -> Setup tab)
nuSetSearchColumns() was added on February 17th
nuSetSearchColumns() was added on February 17th
-
- Posts: 3
- Joined: Thu Jun 01, 2023 5:36 pm
Re: Limit Search on a browse form to just one column?
DB Version V.4.5-2023.04.10.00
Files version V.4.5-2023.05.01.02
Files version V.4.5-2023.05.01.02
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact: