Display alternate text instead of "List view" (table data) when no entries are returned

I want to display a text when no table data is returned from a query. I set the table data as pageData objects upon page load.

What is an efficient/recommended way of testing/checking if a pageData object has data, so that I can conditionally display the text instead?

This is what I do now, just want to know if this is inefficient or not…

Hello @Egil_Helland

Block is empty works with lists, so if your Data Model is a list of some records - yes, it’s the right way to count records and handle visibility.

Regards, Dima.

Thanks for confirming!