Need help in doing a multiple select in list view and Moving multiple selected List item to another table

I will try this as a practice. Thank you for the solution.

I use these below steps to achieve above right ?

  • On your Collection, modify your Item Click action so it takes the value from the Make Array column and writes it to the multiple files column in the User Profile
  • Then once the user has finished making their selections, use an action to take the value from the multiple files column in the user profile row, and write it to the multiple files column in the Campaigns table.

You can then relate that column back to your Creators table, and you will have a list of all Creators associated with each Campaign.

I tried it , its only taking the first item as only that is clickable how can I make it take multiple rows in a single go like how you mentioned??

I am afraid I’ll need it because, I might have to edit the values.

But for this purpose I could make use of Collection item action for edit.

This would still mean I can see detail page right ?

and also keep your solution intact.

Would that be ok?

Regards,
Dilip

Yes, you can have as many Collection Item actions as you want.

You need to show me how you set it up.

This is my action which I have set up

This is my click set up

Regards,
Dilip

The below needs to be two separate actions. The way you have it now you are clearing the value and setting it again every time. So the array will only ever contain one value. You only need to clear it once - when the screen is first opened.

I don’t understand what you are trying to show me with the second video.

How can you give two actions in this case?

Its item click action right, only one can be given Correct me if I am wrong.

Regards,
Dilip

@Dilip_Adiga - make a copy of the below template and study it.

1 Like

I dont know how I can thank you Murphy! I will go through this and try to understand this in detail.

Regards,
Dilip

I went through your solution Darren, Its damn cool.

Had couple of questions if I may ask you.

  1. When we add new creators to the campaigns, it resets and adds new ones every time.

is there a way I can keep the ones added previously and when I add more creators again I need to check and add only ones that arent there.

Would that be a possible implantation or its complicated?

Regards,
Dilip

Yes. What you can do is instead of clearing the column in the user profile, set it with the current array value from the Campaigns table, and then go from there. It would make sense to set that up on the Campaigns tab. You’ll see a collection there - you would modify the default action on that collection.

I tried this. This solves the issues if I am only operating on campaign 1 and making changes and adding things there.

but If I move same ones I selected for campaign 1 to campaign 2 it removes all older values and adds this.

its understandable since the current selection in User profile table is the campaign 1 selection

When operating on multiple campaigns it’ll reset right?

Regards,
Dilip

That’s why I said this :point_down:

You need to change the default action on that Collection so that it first writes the value from the selected row into the User Profile row, then does Show Details screen. Then you set the Details screen up to work the same way as the Creators tab. Except you don’t need the choice component, as you’re already attached to the correct row.

I am just amazed by this solution Darren. I will go through this again and process it and get back to you with questions.

Thank you again.

Regards,
Dilip

Thank you again Murphy, I tried this solution.

However I observed one thing. Since we are saving the Selected creators value in users table.

the reSelected relation column in creators list becomes user specific Meaning.

If I have multiple users and I switch between them, Selection de-selection wont work.

Is that something we can counter?

Regards,
Dilip

Yes, I see. That’s a bug in my template. I sat the Creators list on top of the Users table and forgot to filter it. There are a number of ways you could address this:

  • Apply Row Owners to the Users table
  • Apply a filter to the Creators tab - “email is signed in user”
  • Move the Creators tab to sit on top of the Creators table instead of the Users table
  • Use a separate single row helper table

Any of the above would work.

You should try this.

I guess I tried this, When I am logged in As User 1 and have selected 2 creators and moved to campaigns tab

I change the account and login → I can see the the 2 creators I had selected previously to be selected without being able to de-select it.

Its a corner case I am assuming because user will not switch accounts like how I do on editor.

Regards,
Dilip

That’s exactly what I tested and it works perfectly, so I guess you didn’t configure it quite right.

I just republished the template with that fix applied. You can make another copy and compare. Updated link below:

1 Like

Hi Darres,

hope you had a good weekend.

I just tried it over the weekend. It strangely works in your code, When I did the exact same change in my code it just is the same.

When I change accounts it just gets stuck with previous values and does not reset as it happens in your template.

I am assuming the only change you did was filter thing right?

Regards,
Dilip

Yes, that’s the only change I made.