Tree drag-drop function

hello all,
there is one single tree component in my application.
XML is dataprovider of that tree.
e.g
<node name="Cars" id="1" isparent="true">
<node name="Audi" id="2" isparent="true">
<node name="A4" id="3" isparent="false"/>
<node name="A6" id="4" isparent="false"/>
</node>
<node name="Mercedes" id="5" isparent="true">
<node name="M-Class" id="6" isparent="false"/>
<node name="R-Class" id="7" isparent="false"/>
</node>
</node
when i drag one node and drop to another node, how can i know the xml value of
both source & destination node?
e.g
we are Dragging 'R-Class' node to 'Audi' node, on dragComplete OR dragDrop
event, how to get R-Class node id 7 & Audi node id 2 in different variables.
So we can check some validation of node and perform drag-drop operation.
Any idea?
Steve Roger.

actually what i want to implement is like :
When drapDrop event complete, i want XML value of both nodes (source & target) in variables.
Then I will show dialog box having some options & instructions (e.g You wanna Move node OR Copy node to target).
Depend on user selection, do the operation.
hope u get application scenario.
is this possible for tree control using drag drop? if so, then how?
Please help.
Thank you,
Steve Roger.

Similar Messages

  • Tree Drag & Drop - Drop Over

    Hi Experts!
    I have a small question.I have a tree control, there are many nodes in it. I have allopwed all Drag and Drop properties, and handle the following events:
    - Drag Starting? to check if the selected node is "valid"
    Using this event I can filter the items what I want to drag.
    The tree D&Drop functionality works fine,
    but I want to filter  where do I want to drop the selected node. For the filtering I use Drag Over event - Coords - Point to row Column - Tag , and check the tag is valid so the drop will be in right place.
    But, when I insert the Drag Over event, and Accepted - set true, the dropping not executes, nothing changes.
    BTW, when I delete this Drag Over event again, the dropping executes well, but I can not filter the place where I want to Insert.
    Please Help
    +++ In God we believe, in Trance we Trust +++
    [Hungary]

    See Attachment
    +++ In God we believe, in Trance we Trust +++
    [Hungary]
    Attachments:
    Test.png ‏23 KB

  • Drag & Drop Functionality Doesn't Work in External SWF?

    Hi all,
    I'm currently a TA for a Flash course at my school.  We're using AS 2.0 and working with external SWFs.
    I think this might be pretty simple to remedy.  Well, at least I'm hoping!
    A student is having trouble with drag & drop functionality when it  is used in an external SWF.  Basically, in our drag & drop section,  we have a sheet of paper ("paper" MC) and an object we drag into it  ("object" MC).  When the object is released in the paper area, we go to  frame 2 of "paper" MC, which consequently has an animation.
    This works fine and dandy in said drag & drop section, but once the  drag & drop section is loaded into our main SWF via a MC  placeholder, the drag & drop functionality stops working.
    Here is the URL to the drag & drop section by itself:
    http://www.phayzed.com/flashkit/drag_for_animation.swf
    and here is the URL to the main swf, which loads the drag & drop SWF into a movieclip and causes it to work incorrectly:
    http://www.phayzed.com/flashkit/main.swf
    Now here is the code on the draggable object ("object" MC):
    on (press) {
            startDrag (this, true);
    on (release) {
            stopDrag ();
            if (this._droptarget == "/paper") {
                    _parent.paper.gotoAndStop(2);
                    _parent.object._visible=false;
    If any more info is needed, I'm willing to upload both FLA files.   Although, something tells me that this is a simple issue to resolve.
    Thanks a lot for any help!!!
    Cheers
    T

    with as2 you must convert that antiquated as1 code:
    on (press) {
            startDrag (this, true);
    on (release) {
            stopDrag ();
            if (eval(this._droptarget) == _parent.paper) {
                    _parent.paper.gotoAndStop(2);
                    _parent.object._visible=false;

  • Best approach to work with drag & drop functionality

    I m new to java technology & want to implement drag & drop functionality with java web application.so, Please suggest me the best way or best framework or any api to implement drag & drop functionality with java web application.

    In that case, you're most likely looking for a JavaScript solution. In spite of the similar name, JavaScript has nothing to do with Java.
    You may want to Google for "javascript drag and drop".

  • How to Rearrange components using Drag Drop functionality

    Hi,
    Is it possible to re-arrange the components inside the form using drag drop functionality in RCF?
    There are 3/4 section headers in my screen, user can re-arrange them.
    But as per the RCF document it says, "Drag Drop functionality allows users to drag the value of one component and drop it on to another". It dosent say any thing about component drag-drop.

    Hi,
    there is a componentDragSource element that you use for this. However, persisting the change of location is not handled automatically. I didn't try this, but I assume that using the component drag option gives you access to the UI component itself so you can nest it in another container
    Frank
    Ps.: the drag event always givey you access to the component. This componentDragSource however shows the component when dragging, which is a slightly better indicator if you plan to re-arrange items

  • Drag & Drop functionality

    Hi Friend
    I'm using flash professional cs5.5. I have doubt in drag and drop functionality.
    1) Drop a object in mouse up
    2) Drag the object in mouse down
    Two Movie-clip (Button) on the stage. I have clicked the first Movie-clip, image will added to the button. and drag that image move to second button. It's working fine.
    I have doubt in add image and drag the image, How do split up the sequence???
    Thanks

    Your explanation is not clear (to me).  Can you show the relevant code you have and explain what you want it to do?

  • Urgent : Drag Drop Functionality

    Hi All,
    I have a datagrid with the drag drop enabled. My requirement is that when I drag the items I shouldn't see the dragged item ( the entire dragged row as such ) but by default Flex has the functionality which shows the entire dragged rows content on mouse move. Please help me out like how can i make thie entire row's visibility to false when i move the mouse with the selected item in the Datagrid

    When you perform drag and drop, you doesnt want to see the item which is getting dragged. Then don't specify the proxy (it can be image, data) which reflects while dragging.
    On mouse move handler of the dragging object you will specify DragSource
    For ex:
    private   function doDragOperation(evt:MouseEvent):void
    var img:Image = evt.currentTarget as Image; 
    var temp:Image = new Image();temp.source = no_icon
    temp.width = 1;
    temp.height = 1;
    var dsource:DragSource = new DragSource();dsource.addData(temp,
    'img'); 
    DragManager.doDrag(img, dsource, evt,temp);
    Message was edited by: VijiNaga

  • No drag & drop function? (iphone photos to mac desktop)

    Trying to just backup my photos that i take on my iPhone..... why can't I drag & drop them to my desktop (like i do from my camera memory cards)? Do I have to use iTunes - because it's very time consuming... more than that, it's hard to keep track of what you've backup up...

    That is not possible. You cannot drag photos from the computer back to the camera roll. You have no access to the camera roll in that direction, only from the camera roll to the computer. To put pictures back on the phone from the comptuer requires iTunes and the sync process. You can select the photos you want in iTunes once the iPhone is connected, then select the photo tab, select the photos and perform a sync.
    You cannot do it without iTunes.

  • Tree Drag & Drop problem identifying drop location

    Item0
    ----- Item1
    ---------- Item11
    ---------- Item12
    ..............................<--------
    ----- Item2
    ---------- Item21
    ---------- Item22
    ----- Item3
    ---------- Item31
    ---------- Item32
    When I drag Item32 to drop at the location pointed by the
    arrow, it can be dropped as :
    1). A third child of Item1 or
    2). A Second child of Item0
    After drop, I need to update the database for Item32's new
    parent change.
    How can we identify new parent whether it is dropped as Case
    1). or Case 2).
    Because the calculateDropIndex return the same index(of
    Item2) and cannot identify...
    Any suggestion?
    Thanks

    Hi guys,
    I ran into the same issue and think I have managed to solve it. Below are the steps I took:
    1. In my dragDrop event I grabbed the drop index by using tree.calculateDropIndex(event) and created a bindable variable [dropIndex] to store the index number.
    2. I created a separate function [tree_getNewParent] to get the new parent from.
    3. In my dragDrop event (I have also tried this with dragComplete) I added a callLater to the function I created in the previous step. I remembered that I had dramas trying to expand items and the solution I found used callLater as the items weren't yet bound. I assume it is the same case here.
    4. Finally in the separate function I set tree.selectedIndex to equal the index I stored in the dragDrop event. Then to access the new parent I simply did a tree.selectedItem.parent()!
    Mine looks something like this:
    [Bindable]
    private var dropIndex:Number;
    private function tree_dragDrop(event:DragEvent):void{
         var dIndex:Number = tree.calcualteDropIndex(event);
         dropIndex = dIndex;
         callLater(tree_getNewParent);
    private function tree_getNewParent():Object{
         tree.selectedIndex = dropIndex; 
         var newParent:Object = new Object();
         newParent = tree.selectedItem.parent();
         return newParent;
    Please let me know how you go.
    Cheers,
    Stu.

  • Text and Image Drag Drop Functionality within TLF

    Is there any way by which  I can use select the text or inlinegraphic and drag and drop it within same component?

    if you want to drag and drop ILG within TLF,of course ,you can!
    somebody has made it
    http://diding.javaeye.com/admin/blogs/345239

  • TileList Drag/Drop functionality is broken if the same item is dropped twice or more

    Hi Folks.
    This is quite frustrating.
    I'm using two tilelists and you can drag items from one to
    the other.
    If you drag an item more than once then when you rollover
    that item it highlights the second(or most recent) version of the
    item you dragged.
    Basically the second tile list is containing exact copies of
    the first, so that when you rollover an item it is behaving as if
    only the most recent addition to the component is there.
    Here is the code.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="560" height="341">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var listArray:Array=[
    {label: "item0", data: 0},{label: "item1", data: 1},
    {label: "item2", data: 2},{label: "item3", data: 3},
    {label: "item4", data: 4},{label: "item5", data: 5},
    {label: "item6", data: 6},{label: "item7", data: 7}];
    [Bindable]
    public var cartFilterCol:ArrayCollection ;
    ]]>
    </mx:Script>
    <mx:Canvas width="568" height="340">
    <mx:TileList
    id="filterTilelist"
    direction="vertical"
    dataProvider="{listArray}"
    itemRenderer="mx.controls.Button"
    allowMultipleSelection="false"
    dragEnabled="true"
    width="219"
    borderStyle="inset" height="228" x="48" y="36">
    </mx:TileList>
    <mx:TileList backgroundColor="#ffffff"
    dataProvider="{cartFilterCol}"
    dropEnabled="true"
    allowMultipleSelection="false"
    dragMoveEnabled="true"
    dragEnabled="true"
    borderStyle="inset"
    columnCount="1"
    height="228" width="194" x="275" y="36">
    </mx:TileList>
    </mx:Canvas>
    </mx:Application>
    I think this is the issue here
    https://bugs.adobe.com/jira/browse/SDK-11894
    It seems to suggest that this issue is resolved but it
    doesn't go into details. Can anybody help me, even an ugly hack
    would do? Have tried several things like manually setting the
    mx_internal_uid on object beign dragged before it is dropped but no
    luck so far. I'm using Flex builder 2.0.1.
    Thanks
    Rob

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

  • Drag-drop functionality between regions

    Hi all,
    Can we drag and drop a content from one region to another region.
    I have the following situation:
    I have a taskflow where CollectionsDragSource is implemented and I intend to drop target(<af:dropTarget) onto a component in a new JSF Fragment Page of a different taskflow. How do i do this?
    Thanks in advance

    See if this helps you.
    http://adfblogs.blogspot.com/2011/03/region-interation-example-2-using-adf.html
    -Arun

  • Drag and drop functionality in CM25

    Hello Experts,
         I am trying to configure CM25 so that when you drag and drop to change the start and end times on an operation within a process order, but to block the work centre being changed.  Ideally I like the user to be prompted to ensure they intended to change the work centre, but could live with a hard stop.  I have drag drop function set to AV09 (Function "Operation at time&work centre") at the moment.  I see there is a user exit defined on AV10 but haven't been able to establish what code this exit triggers and would like to get to the AV09 code as it pretty much does what I want.  I don't want to limit the screen to a single work centre as I want to see all related operations as need to see the work centre utilization for whole order across multiple processes, to ensure end times of one operation corresponds to start of the next.
    I am also looking to prevent capacities being moved at all once the process order has been started as effectively this process is locked in at this point and you cannot physically reschedule the remaining time.  (I know I am only supposed to pose one question at a time, but I believe this will be controlled within same configuration)
    Any suggestions / advice welcome,
    Regards,
    Jez

    Hello Jez,
    AV10 calls, from what I have been able to find out, the same exit that menu option Functions -> User (so enhancement CY190001). However, I could not as yet find a way to know where the user has dropped the object (to do the check, and to be able to continue with AV09 afterwards). The enhancement documentation only mentions how to get more information about the object, but not about where it was dropped.
    I am trying to use this to solve http://scn.sap.com/thread/3534956.
    Have you managed to find anything else on your side?
    Regards,
    Rui

  • 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

  • How to implement drag and drop functionality in a HTML5 webpage using touch events?

    Hi all,
         I need to create a webpage having two parts.One part is having set of SVG images into it and other part is having canvas.I need to drag those image onto the canvas allowing same image for multiple times and those images on the canvas are movable inside the canvas only. This webpage is only used in iphone or ipad like touching devices so I need to handle touch events.
         There is already jQuery plugin for drag drop functionality but it is not supported for touch events.
    It is only for desktop veriosns.So if you know about any jquery plugin let me know.
         So please help me to carry out this task.

    I have tried using the same but still not working.
    I have handled touch events like touchstart,touchend,touchmove.
    But the problem is when I drag the image from upperbox onto canvas, the clone of that image is creating but the image which I dragged on canvas gets vanished.
    I am creating clone because I want to add multiple images onto canvas.
    Atik

Maybe you are looking for

  • How I got my 2011 MacBook Pro (17") to work with the UML290 without any 'hackery'

    Frustrated and fed up with waiting for Verizon to finally fully support an operating system that is almost two and a half years old now, I decided to experiment and play around with things myself.  Here is what I learned: For some reason, the "dial y

  • Post Event Handler

    Hi, I have created a post event handler and registered it. Then i checked in the PLUGINS table, my event handler exist there. But this event handler never called after create user. I have added like: <action-handler class="xxxxx" entity-type="User" o

  • HT1338 AirPlay mirroring 2012 MacBook pro

    Trouble shooting AirPlay mirroring , MacBook pro AirPlay mirroring icon keeps disappearing and disconnection occurs on apple tv , need help ?

  • ERROR WHILE COMPLING CLIENT

    I am not ablr to complie client bean, i have created 2 directories beans,client under beans dir i have put home,remote,bean classes. named it as beans package. in client directory i am refering this classes by importing the beans package, but it give

  • Since updating to ver 25 FF crashes every time I try to print from it

    when I click on FF...print....print or ff...print...print preview all I get is the hourglass and then FF freezes(not responding) every time. Never had this problem before update. Even when in Gmail if I click on Gmails print icon, same thing happens.