Is Drag & Drop Flex Container on Kony possible?

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi,

This time I want to drag and drop flex container on Kony.

I used onTouchMove on Kony but why it display like on this drive's link?

https://drive.google.com/open?id=1cn__TYHUlaww1A_X_SXzD3Gc3VO51yHU

https://drive.google.com/open?id=1yrde6YzYiPCJkDG_zrvb_sv3DkVKNOkW

Label on top is X coordinate and label below is Y coordinate.

My code (onTouchMove) like this :

AS_FlexContainer_c2b1752fde1141b49f7e25d015d18d27(eventobject, x, y) { frmMain.flxCont1.centerX = x; frmMain.flxCont1.centerY = y; frmMain.flxCont1.forceLayout(); }

Please correct my code if I was wrong.

Sorry before if my English is bad.

Thank you.

Hi @Owen Hvwdvcwe​ ,

Check out a sample application for drag and drop in this link.

https://github.com/Kony-CSE/Kony_DragDropSample

Although this application is for a lower version of Kony, you can refer the js file, dragdrop.js for the code.

https://github.com/Kony-CSE/Kony_DragDropSample/blob/master/Kony_DragDropSample/modules/js/dragdrop.js

Hope this helps.

Hi, @Luke Mvwtin​

Thank you for replay.

That's link drag and drop for label.

Is there any sample drag and drop using flex?

Thank you 😁

Hi, @Luke Mvwtin​

Sorry it was my mistake.

I was wrong to put action onTouchMove..