Append page variable

To implement pagination, I load 20 rows from Firestore and load into a page variable (mimicking the response structure). Now instead of refreshing the page variable on every load, I need to append the first 20 records with another 20 records (total 40 records in page variable) when user clicks Load More. This is to avoid database fetch when user to view the previous page. Is it possible? If it is, then how?

Hi @Kaushik_Bhattacharya, you can use “Set page variable” node with CONCAT formula:

CONCAT(pageVars.list, data.newRecords)

3 Likes

just learned a new trick thanks.