Add 1O duplicate rows to the collection in one button click event

Hi,

I have a form where are 3 fields: Card number (text), Valid from (date) and Valid to (date). I would like to add for example 10 rows to my collection with those inserts on one button click event. Any idea how to do that?

Thank you

You can use the bulkInsert() function.

I tried, but I don´t know where in code should be how many duplicate rows I want to add.

You can do this in the button’s onClick event.

If you want 10 duplicate rows, just provide 10 rows to the bulkInsert function. If you only want 5, then just provide 5 rows to the bulkInsert function.