Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

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

Information about updates, news, Code Library
Post Reply
admin
Site Admin
Posts: 2778
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5

[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
nodatatodisplay.png (9.49 KiB) Viewed 275 times

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

nosearchresults.png
nosearchresults.png (11.2 KiB) Viewed 275 times
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.
admin
Site Admin
Posts: 2778
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5

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
cust_browse_no_data.png (20.44 KiB) Viewed 273 times

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')
Post Reply