Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Browse search empty

Questions related to using nuBuilder Forte.
Locked
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Browse search empty

Unread post by Timo »

Something has puzzled me. Sometimes no results were displayed when searching a browse form, now I have found out why that is so. This only happens if you have previously navigated to another page with this page navigator at the buttom of a browse form.

As you see, I'm on page 2/9 when I start a search:
searchformempty.png
After clicking [Search], no results are shown.
searchempty2.PNG
You notice that Page 2/1 shown and that's why no results are visible. As a result, the first page should always be displayed during a search, otherwise it will be confusing.
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse search empty

Unread post by admin »

Timo,

Can you run nuCurrentProperties().browse_sql in the console to let me know the differences?

Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Browse search empty

Unread post by Timo »

Hi, there is no difference as both search strings are the same. All that has to be done is to set the page to 1/1 after a new search operation. This will fix it.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse search empty

Unread post by admin »

Timo,

I have fixed it on Github.

Let me know if it works for you now.


Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Browse search empty

Unread post by Timo »

It's not fixed for me. It's easy to replicate the issue. Open up the Forms browse form, navigate to page 2, enter "blank" in the search field, hit enter. You see that no results are displayed as page 2/1 is shown at the bottom
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse search empty

Unread post by admin »

Timo,

OK, I've made another change.

Let me know if this works.


Steven
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Browse search empty

Unread post by Timo »

I do confirm - it is fixed :D
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse search empty

Unread post by admin »

thanks
Locked