totalRecordsCount not working for tables

I am trying to use the totalRecordsCount property of tables to display the total number of results on a search page, but it is always returning 0. Am I doing something wrong or is this a bug?

{{TABLE_books.totalRecordsCount}}

Hey, trebuchet! I’ve confirmed this and raised GitHub issue #12525. You can track the issue as well as leave any comments there :smiley:

1 Like

Hey, @trebuchet! Please try using {{TABLE_books.tableData.length}}.

1 Like

Thanks @Laguna and @Amelia ! The workaround works and am also tracking the GitHub issue.

Hey again @trebuchet! I seem to be incorrect and closed the issue. totalRecordsCount is a user-defined property in the properties pane of a table when you turn on server side pagination. Apologies for the confusion. :slight_smile:

Ah, good to know! Thanks nonetheless.

1 Like