Welcome to the nuBuilder Forums!

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

[Changed] Browse: No Data/No Search Results Messages

Information about updates, news, Code Library
Post Reply
admin
Site Admin
Posts: 2813
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

[Changed] Browse: No Data/No Search Results Messages

Unread post by admin »

nuBuilder now shows "No data to display" when there is no data in table.

nodatatodisplay.png

And when a search brings up 'No Search Results', "No search results found" is displayed.

nosearchresults.png
Also, the emtpy records are not displayed anymore. E.g. if "Rows Per Page" is set to 20 and there are just 5 rows to be displayed, the 15 empty table rows will not be rendered. This also has the advantage that the browse table is loaded faster, as no superfluous elements have to be created.
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2813
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: [Changed] Browse: No Data/No Search Results Messages

Unread post by admin »

To display a custom text/message when there is no data to be display, call nuSetBrowseNoDataMessage() in the form's Custom Code.

cust_browse_no_data.png

Code: Select all

nuSetBrowseNoDataMessage('All Tasks completed');

Likewise, to display a custom message when there are no search results, call

Code: Select all

nuSetBrowseNoSearchResultsMessage('Sorry, your search yielded no results')
You do not have the required permissions to view the files attached to this post.
Post Reply