Page 1 of 1

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

Posted: Wed Sep 14, 2022 3:19 am
by admin
nuBuilder now shows "No data to display" when there is no data in table.

nodatatodisplay.png
nodatatodisplay.png (9.49 KiB) Viewed 319 times

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

nosearchresults.png
nosearchresults.png (11.2 KiB) Viewed 319 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.

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

Posted: Wed Sep 14, 2022 3:28 am
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 317 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')