I am selecting few creators from creators table and writing them into Multiple files column in my users table.
One pressing of Button called Copy I am writing this multiple files into an Array in my campaigns table.
My Issue
When I clear the selection in UI and then click on COPY to a campaign, the already present creators are getting removed
**Another scenario **
If I have seleted Creator A, Creator B and copied them to campaign 1
If I press on Clear button and clear selection and then Select Creator C and Creator D and press copy to campaign 1
A and B are removed and C and D are added
In creator Table I have Array column which has Row ID and selected creators incuded
My Copy action configured is over writing the present values with New values, Any idea how I can prevent the overwriting? without having to create more columns?
Is there a way I can keep the previous selections and add the new ones selected?
I think you need a template column in between which joins the existing creators with the new ones⌠then when you set column value use the template column.
Ahh you are using the multiple files column. You need to use a make array column in between. The make array column should have your existing creators plus the new creators. When you set column value you should be using the make array column to replace.
Is this on a detail screen? in a form? any screenshots would be helpful.
Then When I click on Copy button to copy creators I create a Multiple files column to move the selected creators into this multiple files column in Campaigns table
Your case has been discussed before, exactly like Robertâs video.
If you watch the video, then you know that for the action of adding or subtracting, it only requires 2 tables and one of the tables must be a user table.
However, if you have a third table, that is another unrelated issue.
Your third table is only for following/taking data from the existing array and can be returned to a regular list if you want.
The addition action will continue to increase as long as you do not remove it, right?
If you mean to display only for a certain period, then you can add a timestamps column, so that through the filter you can display only the last campaign limit you want.
I am sorry if you got confused because of my wordings.
My problem
When I select creators from Creators table (using Make array column) and Add them to user table (multiple file column)
It works fine.
Let us say I selected A and B
Now in my front end I have a Copy button and dropdown which lets me select campaigns present, When I press the copy button after selecting campaign name from dropdown it sends the Values in user table (Multiple file column) to campaigns Table (multiple files column)
Yes Now I can show the copied creators using the relation.
If you see you also have a reset button at the top in the screenshot I have shared, which resets all selection meaning it empties the multiple file column values in User table.
Now Imagine I have selected some other creators from list and moved them to other campaigns.
I have now come back to this List which I am showing currently in screenshot, I will click on reset button because I need the flow of reset to remove all creators from list in the present screen
I click reset which removes all selections from selected state
Now When I select Let us say C and D, and click copy, it removed A and B and puts only C and D into the campaigns table for this particular selected campaign.
How can I ensure that Previous selected values and the new selected value for this campaigns is sent when I click on Copy?
Did this give better clarity and clear doubts?
Let me know
Regards,
Dilip
It looks like youâre using bulk actions. Are you working within a form and how do you do it? I canât give advice without trying it on my computer.
However, in principle, your âcopy to campaignâ and âresetâ buttons should be âaddingâ and âremovingâ arrays as discussed above.