How to move data from one component to another?

I have in an repeating_panel joined user.
Then I can build several teams on the screen by clicking button.
Now the task:
How can I click on a joined user (in the right repeating_panel and move it to the team_group (left)

I have no idea how to do it.
Aaron

Take a look at the News Aggregator tutorial, specifically the section on deleting items: Anvil | Delete articles

That shows the technique of setting an event handler on a repeating panel that can be triggered by any of its row templates. You can use the same technique to trigger a function the overall form. That function can remove the given item from one repeating panel and add it to another.

1 Like

Thank you - good idea.
Step 1: click on attendee - event-handler removes attendee from orange list.
Step 2: still mouse clicked and attendee moved to Team 1
Step 3: declick mouse and attendee shall be Teammember of Team 1 - how can I achieve that? How does repeating_panel of Teammember know what to do?

Try reading this thread and see how far you get:

@david.wylie seems to have figured this out for a bunch of circumstances.

If you are wondering about how to communicate the data between the repeating panels, I lean on the Anvil Extras messaging module very heavily for this type of thing.

https://anvil-extras.readthedocs.io/en/latest/guides/modules/messaging.html

Hi,

that is exactly what I am looking for. Unfortunately I only can drag but not drop (can´t see code or role-def.)
Do you please have further information on that?
Thx Aaron

Thx, that is very interesting.
My Ideas:
I build links in the repeating-panel that shall be dragged & create a messaging channel.
User drops dragged object in a new repeating-panel:
Here I get confused: how does it work to let the drop area now, what to do?