Recently @Darren_Murphy was very kind enough to provide me with solution for one of my issues where I had to select few creators name from the list and move them to a selected campaign. it works like a charm.
I however had a requirement where now there will be filters to display collection items. Filters can be 1 or 2 or 3. Once the filters are applied ill get say a list of 20 items
I need to have a button called Select All which will select all the items in the List after filter is applied
Basically I would want to give user an option to select all elements in one click and send them to required destination.
Could you please provide more details so it’s easier to assist? Screenshots and brief description of your data structure data would be really helpful
I think you’d need to approach it a bit differently in order to achieve multi select. Right now when you select a creator, the creator’s ID is written into a column in its row. You can have an array of selected IDs in the user’s profile and rewire the logic in the creators table so that any creator is considered selected if its ID is contained in the user’s array. This way you would be able to create a button that simply writes the results of a lookup of all creator IDs into the user’s array
@Darren_Murphy I made this work combining two solutions.
1 solution from Marco where I filter data and store it
using your solution of POC you had showed me. It works well.
This is what I did.
I have a doubt thought. I create a campaign where I have stored creators. A B and C
Now I come back to my Main List and clear all values and then Select D , E and F, if I move them to the same List, its removing A B and C and only adding D E and F
Also if I create a new campaign and without re setting the values select 1 creator and move them to any campaign it also sends the other preselected values to the campaign.