Drag and drop into the structure of recursive tree using af: tree

I use version 11.1.1.2.0 jdeveloper.

I have a table of the following structure:

groupVO.
id   name    parent_id
1   group1   -1
2   group2   -1
3   subgp1    1
4   subgp2    1
5   leaf1        3
6   leaf2        4
7   leaf3        3
To implement this as a tree, I created a static vo, RootVO, with a row (root-1).
This is defined as the parent of groupVO using a link from the view.
Then, I created a viewlink groupVO to himself.
Then, I created an af:tree with these your. The tree looks like this:
Root
     ->group1
                  ->subgp1
                               ->leaf1
                               ->leaf3
                  ->subgp2
                               ->leaf2
     ->group2
Now how can I implement drag and drop in this case?
What I have to do in drag - move, it's just update the component parent_id enjoy the ID of the node dropsite.

Also, I need to display the details of the node selected in a form. I found that by dragging the child vo does not have the trick here. It shows only the first child node of the table.

Published by: josetuttu on July 17, 2011 23:23

Hello

I have a similar case (non recursive tree) described here.

http://www.gabrielsideras.com/2010/10/23/ADF-drag-and-drop-functionality-in-an-aftree-component/

To implement the move I use model method instead of a method to support bean.

Gabriel.

Tags: Java

Similar Questions

  • cannot drag and drop into the chat

    I had used for a long time a very old version of Skype (3.8) without problem. Recently I have updated to the latest version, and now, I can't drag and drop files in a chat window. I still can select Conversation-Send-file, select a file and send it, but I can't drag and drop. I use XP 32 bit. Any suggestions?

    Reinstall the program did not help.

    > Remove Skype shortcut on the desktop. Then go to the Skype folder inside the program files and access the phone folder and delete Skype.exe.

    > Now to reinstall Skype using this full installer.

    > http://www.skype.com/go/getskype-full

    Thanks, but that no longer works.

  • Drag and drop into the Source monitor but not Double click!

    Has anyone seen this problem?  I have a plugin from the importer.  If you drag and drop an element in the source monitor, then it works fine.  But if you double click it nothing happens.  No idea why this would happen?  Regular pliers (like MOV files) work fine then there must be something wrong with my plugin.

    Thank you!

    Thanks Steve!  For someone else with the same question, the real culprit was setupOnDblClk.

  • Cannot drag and drop into the bar of pages in Acrobat Pro XI for Mac?

    MAC OSX 10.7.5

    Acrobat Pro XI

    In adobe Acrobat XI for Mac, how do I drag the pages of thumbnails of Pages box in the finder and make a new PDF?

    In windows I can simply select the pages, drag and drop them in Solution Explorer and creates a new PDF pages that I dragged.  I've tried everything on my Mac and I can't extract this way.

    It is extremely slow and frustrating to have to manually right click Extract, select pages, open in a new window from adobe, and then save the file in the menu.

    On windows, I just select the page, drag to the folder and click Rename.

    The same question and found the solution, the wire https://forums.adobe.com/thread/1348512 try67in response

    To zoom back, so that the entire page is visible, then drag & drop works fine, well, at least, it worked fine with me.

    I admit, it is odd though.

    =

  • Cannot drag and drop into the container of nested group

    I want to drag a component in a group container that is nested within another container of group, but I found that I can't do that. If I remove the parent group, drag operation is ok. And if I replace the two containers of BorderContainer group, drag the behavior is normal, too. I am confused with this problem. I use the group container because I want to use the wheel to implement the scroll bar feature. My version of the flex sdk is 4.1. Are there solutions? Thank you

    Try the code below.


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" width = "800" height = "600".
    xmlns:view = "org. "" BlueWolf.topo.View. * "xmlns:ilog ="http://www.ilog.com/2007/ilog/flex">."
       
           
       

       
       
            Import mx.core.DragSource;
    Import mx.events.DragEvent;
    Import mx.managers.DragManager;
               
    private void onMouseMove(e:MouseEvent):void {}
    var di: Button = e.currentTarget you Button
    var ds:DragSource = new DragSource();
    ds.addData (di, "dragTarget");
    ds.addData ({x: di.mouseX, y: di.mouseY}, "mouse");
    DragManager.doDrag (di, ds, e);
    }
               
    private void onDragEnter(e:DragEvent):void {}
    DragManager.acceptDragDrop (e.currentTarget as a group);
    }
               
    private void onDragDrop(e:DragEvent):void {}
    var dataObj:Object = e.dragSource.dataForFormat ("mouse");
    var dragNode:Button = e.dragInitiator as Button
    dragNode.x = this.mouseX - dataObj.x;
    dragNode.y = this.mouseY - dataObj.y;
    }
               
    ]]>
       

       
       
       

       
       
           
               
                   
               

           

       

    I changed the code to listen for the event dragEnter and dragDrop for the parent group container.

    Kind regards

    Anitha

  • When do drag and drop into Itunes, my original folder disappears

    Hello

    I recently moved to one old pc to another. My music library and the melodies are all ok and set.  When I used the old pc, I could drag a folder with music in there and drop it into ITunes.  ITunes and then implement these titles in the iTunes library.  Now when I'm on the new pc, the folder with the music she disappears from my pc as if he moved the contents of the iTunes folder and nothing left in the original spot I had music.  I'm all for backups and usually keep the same music in ITunes and a return to the top of file, but for some reason, if I drag and drop into iTunes, the original folder is no more.  How can I prevent iTunes to get rid of the original music file?

    Thank you

    Where exactly the media you add located? What is the setting for the media folder in iTunes > Preferences > advanced. Without knowing the details, I think that would be the media is located in the designated folder media and moves according to its metadata when you add it to iTunes. In general, he would go to < Media folder > \Music\ < artist >-< Album >------# < name >. < Ext >.

    For advice on the best arrangement for a library iTunes and your iTunes backup for Windows with SyncToy library for suggestions on the mirror of the library for a second drive to save it, see make a library of portable split .

    TT2

  • How can I fix the "drag and drop" feature in Windows 7? It used to work, but now does not work, for no apparent reason!

    How can I fix the "drag and drop" feature in Windows 7?  It used to work, but now does not work, for no apparent reason!

    What happens when you try?  Make sure you drag the icon image and not the text of the name.

    If it still doesn't work there are some registry changes that can try to alleviate the problem.  But because the changes to the registry are tedious and dangerous, I recommend to leave the system to repair it for you.  Here's how:
    1. Type of restore in the search box of the start menu to find and open to restore system files and settings from a restore point.
    2. Click Next, choose a date before the problem started, then click Next once more.
    • This process only takes around 2 minutes and only restores your system files/settings: it will not affect any of your files, documents, photos, emails, or anything else.
    If the system restore does not resolve the problem try this to replace missing or corrupted system files.  Here's how:
    1. Type cmd into the start menu search box, and then press Ctrl-Shift-Enter to launch as administrator.
    2. At the command prompt to start the File System Check, type sfc/scannow .
  • 3.6.3, cannot drag and drop tabs (the iconic chart moves but disappears when released), also can not 'tab.

    3.6.3, I can not drag and drop tabs (the iconic chart moves but disappears when released), also I can not "select" tab to change the status of parent/child etc.

    This has happened

    Each time Firefox opened

    == installation

    Hello

    I had the same problem (impossible to drag-and - drop) and it was restored when I disabled the addon "tab mix more.

  • in any case to allow drag and drop on the BACK window?

    How to enable drag and drop on the BACK window?
    THX

    Hi fs - ab,

    You can use 3rd party tools that replace or enhance the Explorer.

    FileMenu Tools - free - adds many functions
    http://www.LopeSoft.com/en/fmtools/info.html

    I hope this helps.

  • Missing folder then drag and drop on the OBIEE catalog view

    Hi guys.

    I had a folder on shared folders and I moved it to a different folder on shared too, using a simple drag and drop on the catalog on OBIEE view and everything by moving my browser crashed.

    When I logged on again, my folder disappeared. He disappeared, I couldn't find it on the place of origin or target folder.

    Any idea to solve this problem? I lost more than 50 analysis and 10 dashboards.

    Kind regards.

    Luiz Araujo

    Hello Luiz,

    The easiest way is to restore a backup of your catalog, you have one, right?

    In case you have not one there is 2 things you can do:

    (1) set up a backup of your server of BI to the next crash drag & drop

    (2) try to look if you find the folder on the file system: If the problemcs file does not exist or has a problem objects are invisible in OBIEE, so first check if the physical content is still there and if find you there is a way to get it back...

  • Drag and drop into Edge animate (was: drag and drop)

    Hello friends

    I have a drag and drop on the edge.

    I need that when you release the ad in the wrong place, returning to the starting point

    You can read the article of Mary on the same - Drag and Drop in edge animate l EdgeHero.

    DIA-

  • Drag and drop from the tree to datagrid does not

    Hello
    I'm looking for a very simple setup drag and drop from the tree to datagrid and I see a weird behavior... when I drag a node of the tree to the datagrid... It is added to the DataGrid, but gets also reproduced in the tree of the source (except the first moved node)
    Here is the link where you can see what is happening
    Link to the sample application
    View source is enabled then please take a look and let me know what I am doing wrong

    Thank you

    "adeelmahmood" wrote in message
    News:g81gjh$FEC$1@forums. Macromedia.com...
    > Hi there
    > I'm trying a very simple setup drag and drop from the tree to datagrid
    > and I
    > see weird behavior... when I drag a node of the tree for the
    > datagrid
    > .. It is added to the DataGrid, but gets also reproduced in the source
    > tree
    > (except the first moved node)
    > Here is the link where you can see what is happening
    > http://mankatomoose.org/temp/treedragtest/TreeDragTest.html
    > View source is enabled then please take a look and let me know what I am
    > making
    > evil

    The source for an XMLListCollection is an XMLList. The XMLListCollection is
    a _view_ of the XMLList and has no existence apart from him. The XMLList
    its source is always an integral part of the original XML. Then, when you
    Add a node to the XMLList which is the source for your DataGrid, you also add
    it to 'something' in the original XML document. I think that you either need to make a
    copy of the knot or just look at filtering the XMLListCollection. Peter
    ENT it manages in this example by making a copy (ish)
    http://weblogs.Macromedia.com/pent/archives/2006/11/tree_drag_and_d_1.html.

    HTH;

    Amy

  • Drag and drop on the same disk, same partition hours. Why and how to fix it?

    Hello

    My computer crashed and I put the files saved on the disk. Slide it / move files adobe is 500 GB and taken a few hours to complete. Drag and Drop that into a subfolder in this directory, the system tells me that it will take even more time to copy. Why? What it means.

    Two things you need to know:

    (1) the system hangs usually about all six months requiring a clean install.

    (2) this time I portioned disk, put the operating system on the partition of 500 GB and put the data files on the other half of the partition to see what happens the next time it crashes - and it will eventually crash. (I want to know if everything is damaged remains on the side with the operating system or if it affects the entire drive.)

    All other files seem to drag / move very well, it is precisely those specific files of photographs. Any suggestions? This allusion to a problem not diagnosed with the disc? Is it because I partitioned the HD?

    Thank you

    Mac (27 inches, at the end of 2013)

    3.5 GHz Intel Core i7

    32 GB 1600 MHz DDR3

    10.11.3 (15 D 21)

    My computer crashed...

    (1) the system hangs usually about all six months requiring a clean install.

    What exactly happens when it crashes? Describe what you saw when it happened. For example, the Mac does not fail to start? Are icons or messages displayed?

  • Drag and drop on the AS2 grid

    I want to create a grid where I drag and fall to her points n Save, do I pull the rack forward myself and do a lot of media (as if I had to do an inventory?) or is there a code I can use.

    I'm quite fine with as2, but I never took the time to really get into the tables. I come up with my own solutions, but I want to do it the good sense.

    for the generation of ex.sims mode.

    anyone interested to help me with my game also?  Doesn't hurt to ask.

    who does not resemble a drag and drop.

    But if you want to attach something to a clicked cell, do it.  Flash will know which cell was clicked the same way, he knows which button in a list of several buttons were clicked:

    for (var i: Number = 0; i<>

    for (var j: Number = 0; j<>

    var mc:MovieClip=this.attachMovie("cell_mc","cell_"+j+"_"i,this.nextHighestDepth());

    mc.colNum = j;

    mc.rowNum = i;

    MC._x = j * mc._width;

    MC._y = i * mc._height;

    {mc.onRelease = function ()}

    No matter what

    }

    }

    }

  • Drag-and - drop off the stage

    Hello

    I developed a simple drag and drop learning object, which works exactly as I intend also except for a small problem.

    I have a selection of labels and each has its own variables X and Y; now, when I drag a label if I hit the target, then it fell into place and if I miss my target, he called the variable number for X and Y of the MovieClip and it snaps back on its original coordinates - great.

    The problem I have found is when I drag the label now my left hand mouse button to the edge of my scene, as my mouse cursor holding the passes of the label of within the scene for out I lose my hand icon and the label is in limbo until I bring it in the scene but then I have to drop the label inside the scene and the variable X and There no longer holds the original coordinates of MovieClip, but is crushed it seems the new coordinates near the edge of the stage, so the snap going back at the edge of the stage and not there where it belongs.

    I went in the way of the creation of a rectangle, obliged to keep the label within the scene but I've hit the limit he unfortunatley serves pretty much the same way when I drag off stage.

    I understand that AS3 is tuned a MOUSE event and that he can't listen to when the cursor is outside the scene; I came across the function MOUSE LEAVE would that work? Basically I want my code to detect when the MovieClip was dragged out of the scene and automatically deliver it to the coordinates that is held within the variables X and Y and trailing stop leaving the user to try again.

    Any help would be great guys, thanks a lot.

    First of all, I would not attribute this listener until the movement was initiated, it would disappear after you stop dragging.

    Second, your conditions in your if() statement can never be met.  You want to use. instead of &.

Maybe you are looking for