I want to INSERT multiple records with one action (button tap).
My use case is - A user has many profiles. Each profile can have many tasks assigned.
I want to add a task to a profile. But if the user chooses (via radio button) to add that particular task to all profiles related to their account, they should be able to. But this requires firing off multiple INSERT actions.
I am not sure how to perform a variable number of INSERT actions for a button push. Any help is much appreciated.