Page 1 of 1

Default filter for browse on Lookup?

Posted: Sun Feb 05, 2017 6:45 am
by erickge
As my application grows the number of rows returned on a lookup grows. It would help if there was a way to put in a default filter similar to the Button control.
One way I was thinking of doing this is to use jQuery to put a value in the search input field. Does anyone know the name of the field, or is there a better way to do this?
2017-02-04_23-37-16.jpg
2017-02-04_23-37-16.jpg (15.41 KiB) Viewed 9558 times
Thanks!

Re: Default filter for browse on Lookup?

Posted: Mon Feb 06, 2017 12:48 am
by admin
erickge,

Have you read this.. http://wiki.nubuilder.net/nubuilderv3/i ... Button_Tab

Steven

Re: Default filter for browse on Lookup?

Posted: Mon Feb 06, 2017 5:09 pm
by erickge
Thanks for the reply Steven, yes I have read the wiki for the button tab but I don't see how it helps me in this situation. I need the functionality of the Lookup tab along with the ability of entering a default filter for browse similar to the button tab.
Thanks

Re: Default filter for browse on Lookup?

Posted: Fri Feb 10, 2017 6:24 am
by erickge
I found a solution but it is not very elegant. In forum entry
http://forums.nubuilder.cloud/viewtopic.p ... 68a#p14281
it was revealed that nuSearchField is the name of the "green" search field and I found that the search button is called nuSearchButton. So I put
$('#nuSearchField').val('Data to search for');
$('#nuSearchButton').click();
in a nuLoadBrowse function of a Lookup tab and it works. You have to put in logic to make sure that the function does not go into a loop.

Re: Default filter for browse on Lookup?

Posted: Wed Feb 22, 2017 8:20 pm
by admin
.