Drag and drop events/data Question

I'm dragging one datagrid to another line. When dumped the second grid that I want to run a query that returns more detailed data on the object to move. I created the following function to try to capture a specific part of the data of the object to drop I can then proceed to a .cfc for treatment.

private void dragDrop_handler(event:DragEvent):void {}
var myDragSource:DragSource = event.dragSource;
var myStatus:String = String (myDragSource.dataForFormat ('Status'));
Alert.Show (myStatus);
}

This is the function call in my second grid: dragDrop = "dragDrop_handler (event)" "

The alert indicates a value 'null '. How can I capture the value of the 'Status' field that has been ignored on my second grid? If it makes a difference that the dragdrop object created flex. I did not create an object custom dragdrop.

Thanks for the help with this.

Mark F

Atta,

It's great. I dance all around him, but just couldn't. Thank you.

Mark

Tags: Flex

Similar Questions

  • For Drag and Drop, event shooting experts

    I'm working on an application that integrates several drag and drop lists (TileLists in this case). Each of them is related to its own instance of arraylist, but items are allowed to freely drag between the lists. The problem I encountered is that arraylist containing the data to the tilelist is not updated before the dragDrop and dragComplete events (seems to happen immediately after my respective event handlers are executed). Is there an event that I subscribe to that fires after ALL done drag and drop updates were committed to the underlying data source?

    For anyone else running into this problem, the solution that seems to work is based on the list updateComplete event. You can ignore the dragComplete and dragDrop events.

  • Drag and drop custom data?

    Hello, my colleagues JavaFXsians :)

    I'm trying to implement a Drag & Drop of an object. But, as you can guess, I'm not really successful. I am struck with the + "java.lang.IllegalArgumentException: only objects serializable or ByteBuffer can be used as data with the format of data [model.jfxwrappers.VezaDjetetaWrapper]" + exception. Why is this wrong:
    DataFormat dataFormatVDW = new DataFormat("model.jfxwrappers.VezaDjetetaWrapper");  //A Class
    
    ......
    
    myListView.setOnDragDetected(new EventHandler<MouseEvent>() {
    
        @Override
        public void handle(MouseEvent dragEvent) {
            Dragboard db= myListView.startDragAndDrop(TransferMode.COPY);
            ClipboardContent content= new ClipboardContent();
            content.put(dataFormatVDW, db);
            db.setContent(content);
            dragEvent.consume();
        }
    });
    ?

    I read that the model.jfxwrappers.VezaDjetetaWrapper must be serializable, is. What escapes me, please?

    You set "db" (i.e. DragBoard) as the content for your action drag / move? It is not serializable, I think that is why you found your error.

    content.put(dataFormatVDW, db);
    

    I think you do not really want to do and you probably want to put another object (such as the data in the cell of the swiped list item) content in drag.

  • Drag and drop a Movieclip Questions

    I have 12 movieclips on a single layer, each are draggable some run action, some do not. Levels when they are dragged some exceed the other clips on the same layer and some are below. I want the clip moved to be above all of the clips.


    Also on the stage there are boxes of text on the 'droptarget' they must be on a layer upper or visible. So therefore the area where is the text box does not allow for the dragged item perform its task, the "droptarget" does not work! y at - it another option?

    Thank you!!

    holder_mc11.onRelease = function() {}
    holder_mc11.stopDrag ();

    If ((eval (this._droptarget) == none)) {}
    this.onTarget = false;
    } else
    {
    this.onTarget = false;
    }}

    holder_mc10.onRelease = function() {}
    holder_mc10.stopDrag ();

    If ((eval (this._droptarget) is string03)){}

    string03.gotoAndStop (2);
    }
    on the other
    {
    this.onTarget = false;
    }}

    Use swapDepths() in your delivery where you apply startDrag().

  • Drag and Drop in the calendar in Apex 5.0

    HI -.

    A nice to have feature drag - déposer APEX 5.0 are in the new calendar, but is it possible to drag-and - drop events outside the Agenda (events).

    http://fullcalendar.IO/js/fullcalendar-2.3.2/demos/external-dragging.html

    Is supported in this version of RTL of the calendar and how to change the language of labels such as Arabic, I see in the demos Fullcalendar is possible.

    Kind regards

    Omar

    Hi Omar,.

    Good question, we have not yet added the drag and drop external events. One of the reasons was there were not so many cases of use where this is necessary, but for two months after the release of the apex 5.0, I met individual request for this feature. If you don't mind, I'll be glad to hear your story and why you should use this and in what context.

    RTL is supported through the language of the calendar. All what you need to do is change the main language of your app to Arabic, and it will pick up all the parameters that goes with this particular language including the RTL settings.

    Kind regards

    Patrick

  • AF: component InputFile | Drag and drop functionality

    Hi all

    I use JDev 12.1.3.

    I have an obligation to provide drag and drop installation on InputFile component. is it possible that I can enjoy this function to the af:InputFile component?

    sample look and feel of drag and characteristic of gout can be found here that is implemented in html5.

    https://HTML5-demos.appspot.com/static/DND/all_types_of_import.html

    Thank you

    Vieira

    It seams to be a bug or feature of IE (I checked ie10 because I don't have a patchted for ie11 system). IE intercepts the drop event and open the zip file. The web is full of advice on that. This seams of methods to work, but I did not test it:

    https://opensourcehacker.com/2011/11/11/cancelling-HTML5-drag-and-drop-events-in-Web-browsers/

    Timo

  • Questions about the reorganization of the rows in the table by drag-and - drop feature

    I am referring to the demo: 106. Drag-and-drop the reorganization of the rows of the table in aCorner of Code DF to implement my case.

    I am facing some problems:

    1. the view object (bound to the table) is read only and it is created directly by very complex SQL queries, without entity objects. When it is run the code: dragRow.removeAndRetain () in the method: DnDAction processDrop (DropEvent dropEvent), it throws the error so that a guest view object is read-only. I want to know if there is another way to delete the moved collection line?

     public DnDAction processDrop(DropEvent dropEvent) {
    ...       
           CollectionModel collectionModel = (CollectionModel) table.getValue();        
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding departmentsIterator = treeBinding.getDCIteratorBinding();               
            RowSetIterator rsi = departmentsIterator.getRowSetIterator(); 
    
            int indexOfDropRow= rsi.getRangeIndexOf(dropRow);
           //get access to the oracle.jbo.Row instance represneting this table row
           Row dragRow = (ViewRowImpl)table.getRowData(draggedRowKey);
           //remove dragged row from collection so it can be added back
           dragRow.removeAndRetain();
           rsi.insertRowAtRangeIndex(indexOfDropRow, dragRow);
          ...
    }
    

    2. When you click on a button, I need to save the command results in the database using the command update # of each rank. Here it is the handler method for the event of the action (in MB) button.

    I want to use RowSetIterator table for encode it from all ranks and update the value # order of each rank.   I call a data control method to run sql update. is it ok? any suggestion?

        public void processSaveOrder(ActionEvent actionEvent) {
            CollectionModel collectionModel = (CollectionModel) mytable.getValue();        
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding iterator = treeBinding.getDCIteratorBinding();               
            RowSetIterator rsi = iterator.getRowSetIterator();
            Row row =rsi.first();
            System.out.println(0+"="+ row);
            int i = 1;
            while(rsi.hasNext()){
                row = rsi.next();
                System.out.println(i+"="+ row.getKey());
                i++;
            }
    
        }
    

    A workaround solution was found:

    In ADF 12 c, it can be solved by changing Updatable "Always" in the details tab of each attributes to read-only view object without entity object.

  • I want out emails in folders of ordinary files, but when I drag-and-drop, the "modification date" gets changed. How I can still see the date?

    To archive my e-mail files until I decided to switch to Thunderbird, I create regular folders in windows and drag and drop emails to outlook express in the appropriate folders. The "update" column displays the original date of the email... which is what I want to do with Thunderbird. In my view, that he treats it as a new file created today... that is not good for my archiving system of these professional work files that I need to find often in approximate date.

    I understand the forum that it is by default in Thunderbird. There is an add-on that can do what I'm doing?

    Thank you in advance,
    Netwon

    I think the reason what OE is the original date because each message is stored in a single file, while TB stores all messages in a folder in a file, an mbox file. Thus, when you save a message as a single eml file, its 'modification date' corresponds to the eml file date was written in the mbox file.

    You can find the ImportExportTools add-on useful because it allows you to add the date of the e-mail eml file name when enamel is exported ("Save selected messages" of the message right-click menu).

  • How can I make use of TC partitions and make sure that the file analysis is on the right partition?  I do not see the partitions that I have done in the Finder, but I can drag and drop the files in the folder 'Data' unique under Finder/Shared/TC.

    MacBook Air, OSX 10.10.3, 128 GB; 2 TB Time Capsule ME177LL/A.

    Final objective: use Time Capsule as a Time Machine for my MacBook Air and as a storage solution for large files that I don't want permanently on my MacBook Air.

    So far, I've implemented the TC and set up Time Machine on the TC.  I was able to create 2 partitions on the TC using disk utility then that TM was a backup and the disk was recognizable in disk utility.

    Under Finder/shared, I see the TimeCapsule 'airport', and when I click on it it is a file called "Data".  I was expecting to see my two partitions here.  Under 'Features' is a ' Zissou31 MacBook Air (3)"sparsebundle file and I can also create folders here and drag and drop files on the TC here.  I can see the partitions in disk utility, but how do I see/use the partitions I created in the Finder?

    I fear that this may not be set up correctly and I'm either losing on an entire partition I created or these files dragged/dropped may be at risk of overwriting of TimeMachine.  How can I make sure that the file analysis is on the appropriate partition?

    I disabled TimeMachine and go back to see if I could 'point' to one of the partitions, but the "Data" folder is the only thing that TimeMachine seen.  How do I point time Machine for one of the partitions?

    Thank you!

    In addition, in disk utility, I can see one of the partitions TC is related to the time Machine, indicated by the icon Time Machine green bottom left, but two partitions seem to fall under "Zissou31 of the MacBook Air (3) .sparsebundle.

  • Drag and drop question - Desktop and USB

    Hello!!

    I have an Asus laptop that I bought in September with Windows 8 is installed. I saw drag and drop questions on desktop lately, and I'll provide you with a full run down of what past:

    1. this particular case, I wanted to save my mobile by copying and pasting all the files from my phone to a USB (USB Kingston).

    2. I selected all files, right click to copy, open the folder that I made in the USB for my phone content and do a right-click Paste.

    3. nothing's happened, Explorer seems to have frozen, so I opened the Task Manager and press end task, all closed and restarted my laptop.

    4. I have excluded that my phone was the issue. I was able to create a folder on my desktop and copy and paste all of the content of my phone in the folder on my desktop.

    5. I tried to copy and paste / drag and drop an image from my office to the flash drive. Explorer Windows freezes on the rise again.

    6. I tried another flash drive. Explorer Windows froze again.

    Apparently I'm unable to copy files ON a USB key, which makes the backup and backup of things a headache because Windows Explorer stops working every time.

    I am the only user of this laptop, and I don't know what is happening or what to do. Any help would be appreciated. Windows 8.1 upgrade would solve this problem?

    Hi Karthik,

    1. There is no error message.

    2. I tried earlier drag - move my documents to my flash drive and it works perfectly.

    I just tried again to drag and drop from my office to my flash drive and for some reason, it works again.

    I don't think that was with my flash drives, but with Windows Explorer itself. Nevertheless, it seems to have fixed itself somehow. Thank you very much for your help!

  • Drag-and-drop questions: arranged randomly moveable elements

    I suspect that the answer is 'no', but maybe an expert could confirm: it is possible to produce a drag-and-drop quiz, in which the movable elements are arranged at random at the beginning of the quiz? The purpose is to ensure that students can not cheat so easily...

    As an alternative, it is possible to create two or three different drag-and-drop (each quiz on a transparency) and quizzes randomly present the student with one of these slides / quiz? I realize other messages than drag-and-drop is not compatible with question pools. I think here is a random, random, blade issues as such.

    The answers would be appreciated.

    I don't think that your first scenario is possible, but I'm not an expert on JS, nor that I have experienced enough with this new accessory CPExtra. However with a good Setup, cheating is not as simple as that for D & D.

    Second scenario seems possible: you can easily generate a random number (example: between 45 and 47 if your slides D & D have these numbers) and use this number for navigation. Of course, you will need to take into account that all navigation will have to be customized (not), because you will need to avoid the other 2 slides are visited. It also means that you need to turn on branch conscious of having to fix the score at the end because the score of the D & D 3 slides will be present in the Total score. Indeed, question pools are not possible for D & D.

  • Use drag and drop to sort data in the report

    Hello!

    I found a good description to sort the data in a tabular by drag and drop form.

    Hello

    Here's the example query:

    SELECT
      empno,
      ename,
      job,
      mgr,
      hiredate,
      sal,
      comm,
      deptno,
      APEX_ITEM.HIDDEN(1, rowid) AS sort_col
    FROM emp
    ORDER BY display_seq
    

    Change the SORT_COL attributes:

    The value column report Standard display type.

    Add in the link text column

    #SORT_COL#
    

    Replace the URL and URL target #.

    When you submit page you get rowid in APEX_APPLICATION. Table G_F01.

    Kind regards
    Jari

  • Is it possible to add a "foot of # question" to a drag and drop?

    Hello

    I'm creating a quiz quiz help and drag and drop them Assistant.  Quiz slides adds a footer to each slide (Question 3 of 15).  If I add a drag and drop to include in the questionnaire, it does not add a header.  Does anyone have a solution?  I use version 7, but also have version 8.

    Thank you.

    Jeff

    Although it looks like a question, D & D is a different beast. It is not also in review, nor in recovery in case you are looking for this as well.

    To create a course indicator also appears so D & D you will need to do it manually; Maybe this post can help?

    Custom indicator progress - Captivate blog

  • Adobe Presenter 10 Drag and Drop questions - grey area only when you try to create

    Hello

    I try to create drag and drop questions in presenter 10 and after clicking on Add Question-> drag-and - drop, the new window opens but where I should be able to define the questions etc., the screen is just gray. Have the same problem on the three other systems as well.

    Flash is updated to the latest version as well as presenter 10.

    Oddly the Flash version installed is 15, but a right click in the grey box shows me version 11.

    Any ideas?

    Thank you

    Chris

    Just in case someone else has the same problem, a cat with Adobe brought the solution:

    On the gray screen, right click and go to global settings

    Go to the Advanced tab

    Scroll down and click on "trusted location settings.

    In the window 'Trusted location settings', click on 'Add' at the bottom

    Click on "Add a folder" and select "Local disk c".

    Click "Ok" and confirm on the "Trusted location settings" window

    Worked for me (on three different machines) like a charm!

  • Add Drag and Drop Quiz question

    Hello

    I'm a complete newbie to Adobe captivate.

    Can someone help me with the addition of a Drag and Drop issue a standard set of Quiz questions, so he gets calculated as a total score?

    Thank you!

    & Sliding is interactive, which means that, in the properties panel, you will see the accordion Reporting. There, you can attach a note and check the option Add to the Total. The score will be automatically added to the quiz variables system.

Maybe you are looking for