0

I have created drag and drop functionality in sap ui5 app as mentioned link.

1) when working with single view & controller, drag and drop functionality is working fine. 2) when working with multiple view and controller, if my drag & drop view is not my initial view. drag and drop functionality is not working.

1) I have tried to load the libraries at controller level and component level. it is working fine when there is only one view and controller. 2) but the same is not working when there are multiple views and controllers, majorly when I am navigating to the drag drop screen from other screen. If drag and drop view is the initial view, then also it is working fine.

1)at controller level & component level I have written like below in both the cases

jQuery.sap.require("DragNDropDragNDrop.model.widget");
jQuery.sap.require("DragNDropDragNDrop.model.mouse");
jQuery.sap.require("DragNDropDragNDrop.model.sortable");
jQuery.sap.require("DragNDropDragNDrop.model.droppable");
jQuery.sap.require("DragNDropDragNDrop.model.draggable");
sap.ui.define([
    "sap/ui/core/mvc/Controller",
    "sap/ui/model/json/JSONModel",
    'sap/m/MessageBox'
Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
vikram
  • 9
  • 1
  • 1
    that blog is *really* old – Jorg Sep 13 '19 at 03:13
  • would you please suggest any other :) – vikram Sep 13 '19 at 06:14
  • @vikram Generally, I'd suggest to avoid blogs altogether but try understanding official docu and samples instead, as UI5 is constantly evolving but blog posts not. – Boghyon Hoffmann Sep 13 '19 at 10:29
  • I understand the problem, but not yours because your input is a little ... ;) What I can say is, that drag and drop works on multiple view / xml fragment dialogs etc. why it is not working for you is not apparent at the moment... – DubZ Sep 16 '19 at 06:19
  • It is working, it was dom element reference issue. Thanks to everyone. – vikram Sep 26 '19 at 02:59

0 Answers0