Hi All,
I have an App been used to display data to my team without the need for user input. However, this contains a table with a list of items that cuts off screen. My plan is to use pagination and have it rotate between the pages automatically. E..g, Page 1 > Page 2 > Page 1, etc.
I've done some looking into it and found a JS Query that seems to work on the editor mode but doesn't work using the public link. This is what the query looks like (found on another topic on this forum):
let maxPage = Math.ceil(table1.data.length / table1.pagination.pageSize);
let nextPage = table1.pagination.currentPage+1;
nextPage = (nextPage<maxPage) ? nextPage : 0;
table1.setPage(nextPage);
With this query, I've set it to run periodically every 10000ms. This works as mentioned on Editor but if I use the public link, this doesn't seem to run. Is there a way to make it work / is it something I've done wrong?
All I've done is created it as a JS Query, entered that code and set it to run periodically.
Thanks in advance!