Dvt:hierarchy node Drag and drop functionality

Hello,
I noticed that in the JDeveloper 11.1.2.3 Rich Client Demo that drag and drop in heirarchical views is now available. Excellent news!
I have tried to implement this functionality in my application but I'm having a few problems.
The demo uses the following code to get the row data....
      UIHierarchyViewer hv = (UIHierarchyViewer)dropEvent.getDropComponent();
      TreeModel model = (TreeModel)hv.getValue();
      Map dropSite = (Map) dropEvent.getDropSite();
      String dropTargetClientRowKey = (String)dropSite.get("clientRowKey");
      Employee dropTargetEmployee = null;
      if (dropTargetClientRowKey != null)
        Object dropTargetRowKey = hv.getClientRowKeyManager().getRowKey(FacesContext.getCurrentInstance(),
                                                                        hv, dropTargetClientRowKey);
        model.setRowKey(dropTargetRowKey);
        dropTargetEmployee = (Employee)model.getRowData();
      }this works for me if I alter it slightly thus
           dropTargetEmployee = (usersFromVORowImpl)((JUCtrlHierNodeBinding) model.getRowData()).getRow();and am dragging and dropping between the highest level nodes but if I drop into a lower (child) node it fails with NPE when invoking .getRowData, presumably because the model reflects the top view of the master detail model (model.getRowCount supports this theory)
so how do I get rowdata from child levels of the HV model? Franks example 101 of dropping into a RichTree gives a List back from the dropEvent for a tree, but HV's give back a Map
I have started to experiment with "enterContainer" on the model variable but I can't seem to extract the values of the rowKey to use, I just get "dropTargetRowKey = [oracle.jbo.Key[], oracle.jbo.Key[]]" can anyone tell me how to get the key elements out of the object returned by getClientRowKeyManager().getRowKey? It's coming back as a Singleton but I can't get the List elements out of it although I can see them when I inspect the object in the debugger
Any help appreciated, many thanks!
JDeveloper version 11.1.2.3

or more simply, does anyone have an example of dragging and dropping from a root node to a child node in a heirarchy viewer using oracle database tables as the master detail via views and view links? (e.g. departments/employees)
Thanks

Similar Messages

  • WD ABAP: Drag and drop functionality

    Hi,
    Is there a UI element/event to simulate the drag and drop functionality in Webdynpro ABAP? I would like to simulate the functionality of context mapping.
    I have the requirement to show the hierarchy of say Country and state(preferably in tree structure) and allow the user to change the country a state belongs to by dragging the state from one country and dropping it into the desired destination country.
    Thanks and regards,
    Srini.

    Hi Srinivasa,
    Drag & Drop is not available within Web Dynpro as of now.
    Kind regards,
    Thomas

  • Records Management - Drag and drop functionality

    Hi,
    I'm trying to find out how it is possible to limit 'drag and drop' functionality for nodes. For example, let's say we have model nodes A and B with all element types assigned and visible for all roles. I want to be able to automatically store documents in both A and B nodes but not to be able to drag and drop documents from node A to node B.
    Does anyone have idea if/how this is possible?
    Many thanks in advance!
    Tijana

    Hai,
    To restrict the drag and drop functionality, please check the function module SRM_REC_UPDATE_NODE_DESC. I havenu2019t implemented this but I guess this would help you.
    Regards
    Keerthika

  • Drag and Drop Functionality in ADF

    Hi, i have a cuestion,
    I need to develop an application, but i have to determine if it is possible.
    I explain..
    I have to make an applicacion with elements with drag and drop functionality, i mean.. 3 to n containers on the page, a toolbar, with the possible elements to drag and drop on the containers,
    later on i have to join that elements with lines, and to save the view, so, when the users open their workspace, they can see their last view saved state.
    In a few words, that's my issue.
    I ve been search about it, and i found something about drop target option about panel box componnents, but nothing about drawing lines and saved view states.
    Do you know about some examples, o an example application, any help resource will be wellcome
    Thanks in Advance!!!!
    AB

    There isn't a "painting" function built-in.
    You can do drag and drop in ADF Faces between components though.
    If you want to show relationship between components with lines - you might want to look into the Hierarchy Viewer.
    http://jdevadf.oracle.com/adf-richclient-demo/components/ariaXml.jspx

  • Adding drag and drop functionality to a hbox with a repeater?

    hello,
    I've been searching on how to add drag and drop functionality
    to an hbox. You're probably thinking "just use a tilelist", and
    that's what i'm currently using, but the tilelist cannot align
    items to the center, which is crucial in my application (if you
    need me to explain further i will, but i don't think it's relevant
    here).
    So i need drag and drop on an Hbox. The repeater is necessary
    because the hbox may need to be populated with items initially,
    which can later be dragged and dropped either in itself (to
    re-arrange items) or into another hbox of this kind. For the past
    few hours I've been trying to find anything that can even hint at
    this type of functionality (i've been searching and experimenting
    for hours). If anyone can point me in the right direction, i'd
    appreciate it. Thank you very much. -b

    "bmilesp" <[email protected]> wrote in
    message
    news:gnd5c7$jas$[email protected]..
    > hello,
    >
    > I've been searching on how to add drag and drop
    functionality to an hbox.
    > You're probably thinking "just use a tilelist", and
    that's what i'm
    > currently
    > using, but the tilelist cannot align items to the
    center, which is crucial
    > in
    > my application (if you need me to explain further i
    will, but i don't
    > think
    > it's relevant here).
    Sure it can.
    > So i need drag and drop on an Hbox. The repeater is
    necessary because the
    > hbox
    > may need to be populated with items initially, which can
    later be dragged
    > and
    > dropped either in itself (to re-arrange items) or into
    another hbox of
    > this
    > kind. For the past few hours I've been trying to find
    anything that can
    > even
    > hint at this type of functionality (i've been searching
    and experimenting
    > for
    > hours). If anyone can point me in the right direction,
    i'd appreciate it.
    > Thank
    > you very much. -b
    http://www.quilix.com/node/3

  • HT4061 Drag and drop function in Windows 8 doesn't work with iTunes.

    How to import music files from Windows 8 to iTunes 11.0.3 x64? Drag and drop function doesn't work. Thank you!

    > Straight drag and drop to PS produced a warning message so, when I then tried to drag on to the PS task bar button, I got the Ø cursor but on moving into the PS window and releasing the mouse button there, the file opened.
    That's the strangest behavior that I would imagine. Are you using the default vista aero theme or you have turned down or using custom theme and visual effects?
    > it needs to be pointed out that this is a really bad habit that will smack you in the face one day...
    I don't understand what you mean. If you are concerned about viruses, in my understanding copying and opening a file from the internet which is what "Save image as" does, is less safe than coping and pasting pixels. Copying and pasting pixels is the same as coping and pasting text from your web browser, it can't execute hidden code. If that was possible everybody will get viruses at the moment text or pixels are displayed on your browser.
    By the way when you view a page from the internet, image files are already downloaded in the temp folder of your computer but only the browser uses them unless you open them from there and use in another program. So if you have a virus protection the images are already scanned.

  • Unable to use "drag and drop function" from outlook

    We are changing from Lotus to outlook and this has made a problem with getting pdf-files into OAWD directly .
    Procedure was like this in Lotus
    1. We get documents (FI, F-43, aso ) by email
    2. We use OAWD function "drag and drop" , document is attached to a document type and workflow is triggered
    3. We pick up documents from Business workplace , handle the document and send it to the approver (who earlier got it directly in their mailbox "lotus")
    so far so good , everything worked well
    Unfortunately we changed to outlook, non attached files can be "drag and dropped" into OAWD (I understand the part about outlook is showing links instead of "real" pdf and know this is part of the problem)
    My question, it can not be possible that we have to manually save the documents/attached files from outlook into "desktop" to later use the drag and drop function?
    I have read about the programms to solve problem , ex "inPuncto", but our experts says there will be problem with connector to workflow from OAWD.
    I have my greatest doubts about that because this must be really two diffrent moduls, one for converting from outlook and the other must be unchange (undependent of the earlier procedure). SAP can not know from what program the documents will be dragged? 
    Suggestion about some OAWD-adaptor ?
    Any suggestions about great solutions ?

    it seems there is no way.
    See note 1797073
    Is there someone with a better solution?

  • SharePoint 2013 How to disable Drag and Drop Functionality

    Hi,
    In SharePoint 2013 in document library we have default behavior of drag and drop documents in document library. How to disable drag and drop documents in document library?

    Hi,
         As a work around, you can edit the Drag and Drop js as to remove the drag and drop functionality, edit the document library page (default
    page) place the content editor web part on top of the library include the modified Drag and Drop js file in the content editor web part, Please save the Drag and Drop js file to other location (probably Site Assets library etc).
    Hope it helps!!!  
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • Is it possible to create a tree with drag-and-drop functionality using ajax

    I saw these samples;
    Scott Spendolini's AJAX Select List Demo
    http://htmldb.oracle.com/pls/otn/f?p=33867:1:10730556242433798443
    Building an Ajax Memory Tree by Scott Spendolini
    http://www.oracle.com/technology/pub/articles/spendolini-tree.html
    Carl Backstrom ApEx-AJAX & DHTML examples;
    http://htmldb.oracle.com/pls/otn/f?p=11933:5:8901671725714285254
    Do you think is it possible to create a tree with drag-and-drop functionality using ajax and apex like this sample; http://www.scbr.com/docs/products/dhtmlxTree/
    Thank you,
    Kind regards.
    Tonguç

    Hello,
    Sure you can build it, I just don't think anyone has, you could also use their solution as well in an APEX page it's just a matter of integration.
    Carl

  • Captivate Drag and Drop Functionality

    Please could someone confirm when Captivate will ship with drag and drop functionality as standard rather than as an extension only available to subscription or ASA users?
    Thanks.

    Adobe doesn't usually give any advance confirmation dates for when they will ship a new product version or patch.

  • Does SAP ECL viewer has drag and drop functionality...

    Hi,
    Does ECL viewer has drag and drop functionality for example we can drag and drop file from windows sever to SAP. So that it can be used later on using BDN.
    Thanks.
    Regards,
    Rajesh.

    Implement this program,  it is a cut/paste solution.  Again, you must have the ECL component installed on your SAPgui.
    report zrich_0001 .
    parameters: p_check type c.
    start-of-selection.
    at selection-screen output.
      data: dockingleft   type ref to cl_gui_docking_container,
            dockingright  type ref to cl_gui_docking_container,
            ecl_viewer   type ref to cl_gui_ecl_2dviewer,
            html_viewer  type ref to cl_gui_html_viewer.
      data: repid type syrepid.
      data: url(2048) value 'c:'.
      repid = sy-repid.
      check dockingleft is initial.
      create object dockingleft
                  exporting repid     = repid
                            dynnr     = sy-dynnr
                            side      = dockingleft->dock_at_left
                            ratio     = 50
                            extension = 1000.
      create object html_viewer
           exporting
                parent    = dockingleft.
      call method html_viewer->show_url
           exporting
                url       = url.
      check dockingright is initial.
      create object dockingright
                  exporting repid     = repid
                            dynnr     = sy-dynnr
                            side      = dockingright->dock_at_right
                            ratio     = 50
                            extension = 1000.
      create object ecl_viewer
          exporting
             parent             = dockingright
          exceptions
             cntl_error         = 1
             cntl_system_error  = 2
             create_error       = 3
             lifetime_error     = 4
             others             = 5.
         call method ecl_viewer->create_toolbar
            exporting
                close_button      = ' '
                tools             = 'X'
                viewer            = 'X'
                navigation        = 'X'
                options           = 'X'
                viewer_openfile   = 'X'
                viewer_savefile   = 'X'
                tool_measurement  = 'X'
                remove_document   = ' '
            exceptions
                cntl_system_error = 1
                cntl_error        = 2
                cntb_btype_error  = 3
                dp_error          = 4 .
    Now drap a PDF file from the left container, and drop in the right side.  Slick, right?
    The ECL doesn't handle every file type,  but PDF works good.
    Regards,
    Rich Heilman

  • Drag and Drop Function Stopped Working

    So I may just be dense, but my drag and drop function isn't working anymore. I've been searching the internet for anything that might help, and I've tried all the solutions that I've seen. No luck though. This is a really annoying problem and if anyone has suggestions I'd love to have some help. Thanks!!

    So those ideas on the other thread didn't help. I think if I reinstalled leopard it may fix it, but the problem there is I don't have the disk at school with me. Having no foresight ruins things.
    Would that be the only option or does anyone have other thoughts?

  • Drag and drop functionality not working. IE shows ActiveX error

    Hi all,
    we recently installed new server, but on the new server the drag and drop functionality in web dynpro application is not working.
    when we launch the standard test application wdr_test_drag_and_drop, the Internet explorer is showing a popup: An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction? Yes/No
    if we allow by clicking Yes or No, the drag/drop functionality is not working.
    first I checked if the issue is with my IE version, but it is not working in any of the IE in any computer.
    when I checked the same application from different ecc server on my IE, the different server application is working.
    in my new server, do we need to do anything more to make the drag/drop working.
    thanks,
    Madhu_1980.

    Hi Madhu,
    GO through this link,  it might help
    Step 1: Go to the Tools menu, and select Internet Options
    There are times when the activex plugins are disabled in our browser settings, just enable them and give it a try.
    Regards,
    AkkI

  • Drag and Drop Functionality within the SAP Portal

    Does anyone know if SAP Netweaver Portal 6.0 sp18 supports drag and drop technology.  A good comparison would be Google where a user can drag iViews around and place them where they would like.
    We are trying to build something similar to Google Gadgets with iViews and we would like our users to be able to add, remove, drag, and drop them in the Portal.
    Has anyone done something similar to where I would be able to leverage them for further questions.
    Any help is greatly appreciated.  Thank you.
    Jason

    Hi
    Were you able to find away of using the drag and drop functionality?
    I am wanting to use a similar functionality to Yahoo where people can just drag the iViews they want into the page and saving their personalised settings.  I am unable to find information as to what Portal release supports this functionality and how it works.  Would you be able to help?
    Many thanks
    Jag

  • Drag and Drop functionality for SVG charts.

    Has anyone been able to get a drag and drop functionality with charts?
    I've read where Vikas was able to accomplish this with reports, but, unfortunately, it was an old post and his example is no longer available.
    I understand that this is more on the browser/presentation layer rather than the back-end, but, judging from the replies from the mainstays in this forum along similar lines, I'm hoping someone may have accomplished this already.
    I'm trying to get this to work for a "dashboard" type application I'm trying to prove out using HTMLDB.
    Your responses are appreciated.
    Thanks

    Hello,
    I've done drag and drop using the Adobe SVG Viewer before in a whiteboard application built on top of ... you guessed it... Apex. Unfortunately I do not have an example I can share with you but I know it can be done because I did it, trust me ;) . I am planning on building out that application as an application anybody can download and use but unfortually it will be bit.
    Your best bet at the moment is looking on google http://www.google.com/search?q=svg+drag+and+drop there are quite a few examples.
    Oh also look at this file in the images directory /images/javascript/svg_js_includes/svg_common/oracle.svgNodes.js it has quite a few helper functions and that file is included in every chart by default so there are functions you can use, (no drag and drop unfortunalty)
    If you have can lock down the users in your environment to use only Firefox or Safari you can look at canvas as well it's pretty handy and can do alot of the same stuff
    http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas
    and of course some simple examples in Apex
    http://apex.oracle.com/pls/otn/f?p=11933:78 (it runs on keypress in the textarea I use it to mess with Canvas constructs)
    Carl
    Message was edited by:
    Carl Backstrom

Maybe you are looking for

  • XFCE4 not working properly display X as cursor not arrow pointer

    Hi all I have recently installed arch and XFCE4 as my desktop environtment everything went well for a few days. But all sudenl 2 days ago thing appeared not working properly. Things displayed on my desktop are out of proporion mainly the X as cursor

  • Why am I missing pieces when printing in Illustrator?

    I have a very complex file with many paths and layers.  When I print, all of the complex shapes print just fine but I'm missing two white boxes.  I have tried to recreate them and move them but nothing seems to work. I have printed directly from Illu

  • What adobe setting do I use?

    I am having problems with recipients opening my scanned adobe files. When a recipient opens my file, the print is huge and it prints exactly as viewed. If they attempt to print a one page document, it prints a portion of the document and ends of bein

  • Add-on Transport  request

    Hello! In what instances would we use 'add-on transport request' which appears in the drop down menu of Configuration tab in solar02 transaction? Thanks. Mike

  • VOB files question

    Hi all, I shot a project on 35mm for a cinematography class. The lab put the telecine onto a dvd. I want to pull the files into Adobe CS3 so i can edit it however it does not seem to want to do it. I am very new to the program. in fact this will be m