cancel
Showing results for 
Search instead for 
Did you mean: 

Drag & Drop from a list to the Planning Calendar

verreydthans
Participant
0 Kudos

Hi,

Is it possible to use drag & drop from a sap.m.List, to the sap.m.PlanningCalendar?

In the SAPUI5 samples, is an example of how we can use drag and drop whitin the PlanningCalendar, but I want to use list objects, as a starting point for this.

I was trying this with the new dragDropConfig functionality, but without any success

<dragDropConfig>

<dnd:DragDropInfo sourceAggregation="items" targetElement="PC1" targetAggregation="appointments" dropPosition="On" drop="onDrop"/>

</dragDropConfig>

It seems that the targetAggregation isn't correct and the drop functionality isn't accesible.

Anyone a suggestion?


Thx!


Regards,
Hans

mauro_cattaneo
Explorer
0 Kudos

Hi,

did you find a solution to this problem?

Thanks

Mauro

Accepted Solutions (0)

Answers (3)

Answers (3)

FiratAsan
Active Participant
0 Kudos

Hello hans.verreydt and whatisthis

I had a same problem. Taget element should be table name. In your example :

I think your Planning Calendar id is PC1, target elemet should be PC1-Table, change it.

targetElement="PC1-Table"

But i cant solve that, drop them to specific cells, its dropping to only rows.

my problem is hier;
https://answers.sap.com/questions/14006473/is-it-possible-drag-from-a-table-and-drop-to-plann.html

meurer_maurice
Explorer
0 Kudos

Hello Wolfgang, Hello Hans

Did you figure it out? I am trying to do the same thing without success.

I assume that the drag & drop to the Single Planning Calender is not working because it has its own d&d feature for moving appointments.

Kind regards

Maurice

WFlats
Participant
0 Kudos

Hi Hans,

I'm facing exactly the same problem. Trying to drag & drop from a List to PlanningCalendar.

However, I used <dnd:DropInfo for the target and <dnd:DragInfo for the source.

Dragging works fine but the target isn't recognised and dropping doesn't work.

Did you resolve the problem?

Best regards

Wolfgang