New to Logic, trying to figure out drag and drop kits

Hey guys, I just bumped up from GB to logic and I need some advice on how to get some good sounds out of it besides the stock ones. I'm trying to make my own drum kit with the drag and drop version but I'm not really sure how it works. Any advice on this or other tips would be greatly appreciated
Thanks,
Alex
btw, I'm trying to make some synth samples with logic for my band. We play hard rock with synth... Just to give you an idea haha

Hi,
There is an example here that leads you through the steps to building dynamic tables: http://assure.ly/gk8Q7a.
If you are using the table object, then you do not need to wrap this in a subform. If you select the row in the hierarchy, you can go to the Object > Binding palette and set it to Repeatable.
The other issue is to make sure that the form is saved as a Dynamic XML Form in the save-as dialog.
Hope that helps,
Niall

Similar Messages

  • Trying to figure out pricing and plan options to add multiple computers to current subscirption. We currently have a subscription that allows the programs on two computers, but now I need 5 computers to be updated with CC.

    Trying to figure out pricing and plan options to add multiple computers to current subscirption. We currently have a subscription that allows the programs on two computers, but now I need 5 computers to be updated with CC. Have looked in to Small Business teams, but do not understand how many computers that is good for and if there is a professor or previous customer discount. Any help would be great, thanks!

    Hi,
    I presume that the new configuration is missing some parts as you seem to have the IP address of the external interface configured staticly on the interface but you have not configured any default route on the firewall? (Original configuration got default route dynamically and added it to the routing table)
    You also mentioned that you were able to connect to the Internet which would indicate there was indeed a default route with the new configuration?
    I am a bit confused about the host mask on the external interface (/32 - 255.255.255.255) ? Does the ASA really let you configure a host address on the interface? It can't lead anywhere as there is no next hop with a host mask. I think the ASA even blocks using a /31 mask link network which works with Cisco Routers.
    I guess I would go through the basic troubleshooting step when the new configuration is in use
    Check logs for any blocked connections or error messages
    Check the Static PAT (Port Forward) configuration with the "packet-tracer" command
    Capture traffic on the ASAs external interface (with the ASA itself) and confirm that you are seeing the TCP SYN of any connection attempts, or perhaps capture ICMP
    - Jouni

  • With new Photos app, I can no longer drag and drop photos into other applications as I did in the past with iPhoto.

    With the new Photos app, I can no longer drag and drop photos into other applications as I did with iPhoto.  For instance, I have a photo collage app that in the past, I could just drag in the photos I wanted to include.  Now, I can DRAG the photos, but they do not DROP.  So, I have to go through the export process.  It is tedious.  What am I missing?  Where can I turn on the drag and drop feature for Photos?

    YOu're not looking in the right palce. That's inside the iPhoto Application.
    You need to look inside the iPhoto Library
    As I sid above:
    Go to your Pictures Folder and find the iPhoto Library there
    Regards
    TD

  • Trying to figure out cause of dropped connections...

    Hello, I have an Airport Extreme (a few years old) working with a MacBook Pro.
    I'm trying to figure out the cause of occasionally dropped connections. One interesting thing I noticed today was this: the wireless indicator on my MacBook pro (in the status bar) was off. Then, when I restarted the machine, it connected to my base station automatically.
    Does this mean that the base station has been fine all along and that maybe the card is flaky?
    The other piece of evidence I have is a MacBook running side by side with the MacBook pro, and once I saw the MBP connection drop while the MacBook's stayed intact.
    But the base station itself is a few years old and of course wi-fi is always subject to interference (especially in high rise apartment buildings). I recently changed the channel from 1 to 4 and seem to have had better success.
    My MBP connection has been fine using other hot spots (e.g. Starbucks).
    Is it worth trying to replace the base station and seeing what happens?
    MacBook Pro 15"/2.16Ghz/2GB RAM   Mac OS X (10.4.8)  

    Hello, I have an Airport Extreme (a few years old) working with a MacBook Pro.
    I'm trying to figure out the cause of occasionally dropped connections. One interesting thing I noticed today was this: the wireless indicator on my MacBook pro (in the status bar) was off. Then, when I restarted the machine, it connected to my base station automatically.
    Does this mean that the base station has been fine all along and that maybe the card is flaky?
    The other piece of evidence I have is a MacBook running side by side with the MacBook pro, and once I saw the MBP connection drop while the MacBook's stayed intact.
    But the base station itself is a few years old and of course wi-fi is always subject to interference (especially in high rise apartment buildings). I recently changed the channel from 1 to 4 and seem to have had better success.
    My MBP connection has been fine using other hot spots (e.g. Starbucks).
    Is it worth trying to replace the base station and seeing what happens?
    MacBook Pro 15"/2.16Ghz/2GB RAM   Mac OS X (10.4.8)  

  • Mail "New Message" window retreats to background after drag and drop attachment from Finder to Mail "New Message", click, and Finder window stays in foreground even when not in focus

    Hi, I'm surprised I can't quickly find if anyone else is having this issue. For me it has been going on since Lion on my 13" MacBook Pro 2011 and it's still persisting in Mavericks, and even still now that I've "downgraded" to a 15" MacBook Pro 2010 with Mavericks.  The behavior is odd and difficult to explain concisely. Basically, when I want to add an attachment to Mail, I'll Cmd+Tab over to Finder click and drag and Cmd+Tab back to Mail, and drop the attachment. At first it looks fine, but when I click in the New Message window where I just dropped the attachment, to move the cursor, it retreats to the background and the Mail Main Window comes to the foreground. Then, if I click on that, the Finder window that I just used comes to the foreground. Sometimes if I switched to another app before going to Finder to select the drag and drop, that other app window will appear in the foreground instead. If I click on the other app window that is now in the foreground, then the Finder window that was last used will come to the foreground. The only thing that seems to fix this switch-a-roo effect is Cmd+Tab-ing back and forth a few times, or click on the window "frame" at the top to move the window around.
    The way to prevent this is to have my Mail Message window visible in the foreground side by side with the Finder window when the drag and drop occurs (this is a tedious extra step if mulitple windows are open, or to use the add attachment command in the menu within Mail. But it sure is annoying buggy behavior.
    Thanks
    Daniel

    Yep, I get exactly the same thing when using Thunderbird mail client on my 2011 iMac running Lion. I've been putting up with it for at least a year, maybe longer.
    For me it appeared to start after a Thunderbird update, so I figured that was the cause and couldn't find a solution at the time. However I've now noticed it starting to happen in Apple Motion 4 when dragging files from Finder into a DropZone in my animations. Motion remains the active program but the Finder window sits on top until I Cmd-tab out to a third open program (ie not Finder) and back to Motion again.
    This is the first indicator I've had that it's an OS X issue.
    Be great to find a solution as D&D is by far my preferred way of adding attachments to emails and similar tasks.

  • Got the new Itunes update..how do I drag and drop a song onto my phone now?

    Reluctantly, I updated my Itunes to the latest version. Glad they could make it a thousand times more confusing. If that was their goal...mission accomplished. I simply want to drag and drop a song that I purchased on my home computer to my ipod or iphone. In the good old days before the latest "improvement", you could simply drag the song to your device. Now, I can view my device. I can view the song. I cannot add the song to my ipod or iphone. Itunes helps actually offers no help for this basic operation. I've asked a few other pc people that have iphones/ipods and they say they just buy the song on their device because they cannot figure it out either. Was this really progress? Bravo on the update, apple guys. You made it so cool, now nobody but you fools can use it...

    I got my own answer !!   I saw it on another post.  Select "View" and then toggle down to "View Sidebar".
    Now I can drag and drop like before. 

  • Im trying to make a drag and drop game where i can drag words into a table which then makes a Tick

    Im having trouble with this and its going wrong. I need to use actionscript 2 and im on flash cs3. Can anyone give me a code i could use to do this or maybe a tutorial?
    Thanks

    if you can't explain, you can't get specific help.  you can still use google to search for tutorials and you may get enough help to see you past the problem(s) you're having.

  • Who'd like to test a new Drag and Drop Interactive Widget?

    It's taken about 6 months of every spare minute we could find but we're finally ready to do a round of Alpha testing for our new Drag and Drop Interactive Widget for Cp4 and 5.  This post is to ask for a handful of volunteers to test the new widget over the next week creating drag and drop interactions in both Cp4 and Cp5.
    If you've already tried our well-known Drag and Drop Lite Question Widget, but were a bit frustrated by the limitations that the quiz question format placed on your creativity, we think you'll be blown away by what this new Interactive Widget can do.  It does everything the current question widget does, aside from the aspects that are unique to question types (Review Area, Retake Quiz, etc) plus a whole lot more.  Due to the extra functionality, this widget has twice as much code as our last one.
    Some of the features:
    You can have as many widgets as you want on a single slide and each can be addressing a different drag and drop scenario.
    You can reference the same drag and target objects from different widgets to create different.
    Since they are interactive widgets, you can use the widget success/failure criteria to trigger Advanced Actions.  This opens up a lot of possibilities for game interactions.
    You can score each widget differently so that OnSuccess they will each report different scores for dragging the same objects.  This means you can have Conditional Scoring and more than one correct answer for a given problem.
    You can set one of the widgets to have its Preferences be used for all widgets on the slide so that you don't need to set all widget preferences individually, thus saving a lot of time.
    You can set Preference Priority for each widget to configure which widgets will have "right of way" if there is a potential conflict in preferences.  For example, if one widget wants one type of snapping behaviour on an object but another widget wants the same object to snap differently, the widget with the higher Preference Priority will dominate.
    You can nominate other interactive objects (including clickboxes or other widgets) to act as Submit button and Clear button to create a simulated quiz question.
    Since this widget is an Interactive widget, it also has the same advanced Pausing override behaviours we built into our Event Handler widget (http://www.infosemantics.com.au/eventhandler)  So you can have users stay on the same slide playing with the drag and drop interaction for as long as they like without progressing to the next slide until they want to.
    Plus other stuff I can't think of right now.
    If you decide to volunteer to participate in this Alpha testing, please don't use this widget for any production Captivate projects you may have.  The Alpha and Beta versions of the widget will be time-bombed to stop working after a couple of weeks so that we don't have buggy versions running around later.
    As I said at the beginning, we only need a handful of testers, we need people using either Cp4 or Cp5, and you need to do this testing over the next week so that we can then address any issues you find and release a debugged Beta version for more testing.
    Anyone wanna play?
    If you do want to volunteer, send me a private message on this forum with your email address so I can send you a widget and instructions.  We'll only be taking the first dozen or so people that are willing to contribute time and feedback.
    Cheers,
    Rod Ward

    Hi Sandy,
    If you hover the mouse over Rod's avatar, there is an e-mail address visible. For a private message; double-click on his avatar and you'll find the button private message in that dialog box,
    Lilybiri

  • The drag and drop functionality is grayed out in Captivate 8. How do I turn this on?

    I'm trying to play with drag and drop functionality in Captivate 8, but it's grayed out. All the tutorials I've watched show it working, but in my project, I can't access it. Any ideas?

    I asked about this in another thread, to add a list of what is NOT supported in responsive projects to the documentation:
    objects detected by the HTML5 tracker
    Drag&Drop as you discovered
    line shape
    free polygon shape
    This is my list. Answer in another thread from the staff was: what is dimmed, grayed out is not available. Not a pleasant way to discover limitations, although I understand not everything could be implemented in this very first version of Captivate responsive design functionality.
    Lilybiri

  • Newby to Flash -- need help with Drag and Drop

    I have been trying to create a drag and drop in Flash where I have five different places for an instance of a mc to be dropped. I want to be able to drop only three instances to each place and these three instances are specific to one of the five "drop places".  I also want the mc instance to go back to its original position if it is not dropped on the right place.  I've got the actionscript working to drag and drop the mc instances on the "drop places"  but I cannot figure out how to do the if statements so that if it doesn't match the correct drop place it will go back to its original position.
    Here's some of my code:
    Analyze1_mc.objName = "Analyze1";
    Analyze1_mc.val = 1;
    Design1_mc.objName = "Design1";
    Design1_mc.val = 4;
    Analyze1_mc.buttonMode = true; // sets mouse pointer to hand
    Design1_mc.buttonMode = true;
    Analyze1_mc.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    Analyze1_mc.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    Design1_mc.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    Design1_mc.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    var originalPosition:Point;
    function returnToOriginalPosition(): void
              originalPosition = new Point(x,y)
              x = originalPosition.x;
              y = originalPosition.y;
    // function to drag item clicked
    function fl_ClickToDrag(event:MouseEvent):void
              event.currentTarget.startDrag();
              event.target.parent.addChild(event.target);
    function fl_ReleaseToDrop(event:MouseEvent):void
              var target:MovieClip = event.currentTarget as MovieClip;
              var item:MovieClip = MovieClip(event.target);
              item.stopDrag();
    if (event.target.hitTestObject(AnalyzeTarget_mc)  && (event.target.val == 1)) {
                                            trace ("Analyze1");
                                            event.target.x = AnalyzeTarget_mc.x + 42;
                                            event.target.y = AnalyzeTarget_mc.y + 5;
                                            updateItem(Analyze1_mc);
                                  } else {
                                            returnToOriginalPosition();
    if (event.target.hitTestObject(DesignTarget_mc) && (event.target.val == 4)) {
                                            trace ("Design1");
                                            event.target.x = DesignTarget_mc.x + 42;
                                            event.target.y = DesignTarget_mc.y + 5;
                                            updateItem(Design1_mc);
                                  } else {
                                            returnToOriginalPosition();
    function updateItem(item:MovieClip):void {
              buttonMode = false;
              removeEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    I put the trace in to check the function -- and I do get the output when the mc instance is dropped on the right place -- but there is no return to original position if the instance is dropped in the wrong spot and there is no update to the mc instance. 
    Any help would be greatly appreciated. Thanks!

    That line you speak of is merely declaring a variable, nothing is being assigned to it.
    One way of assigning the original position data to each object is to just assign it like follows:
    Analyze1_mc.originalX = Analyze1_mc.x;
    Analyze1_mc.originalY = Analyze1_mc.y;
    etc...
    Another way to do it with less code is to assign it generically just before you start dragging each of them...
    function fl_ClickToDrag(event:MouseEvent):void
              event.currentTarget.originalX = event.currentTarget.x;
              event.currentTarget.originalY = event.currentTarget.y;
              event.currentTarget.startDrag();
              event.target.parent.addChild(event.target);
    One thing I noticed in your code earlier is that you switch between using event.currentTarget and event.target.  If you want to be sure that the object your code is targetiing is the object that has the listener assigned to it (your movieclips) stick with using currentTarget.   target can end up pointing to something inside that object instead of the object itself.  In the following lines...
              var target:MovieClip = event.currentTarget as MovieClip;
              var item:MovieClip = MovieClip(event.target);
    You could very well be assigning target and item as being the same object.  I don't think that is what you want.  You might wanting to have one of them be the object you drop it on, which would be the dropTarget, not the target

  • Drag and Drop HELP!

    OK - Here's my problem. Just moving from AS2 to AS3 and
    trying to create a drag and drop template. I need to re-use a
    single drag selection multiple times, to multiple targets and then
    graded. For example, say I was building a car by dragging parts
    over to a car frame. I need to be able to drag a copy of a tire to
    the car frame 4 times in any random order. Drag 2 doors in any
    order, or drag one item like a hood... etc, then grade to make sure
    all are in the right place.
    I have succedded in dragging a specific Drag item to a
    specific Target and give feedback as it is dropped (either "wrong",
    "correct" or "Good Job, Completed"), but having a bear of a time
    trying to figure out how to use one Drag item for multiple Targets.
    Anybody have a sample template FLA of the same concept that I
    can build from?
    Many, Many, Thanks!

    What I am trying to do is to be able to use one of each of
    the images on the left multiple times, and put them in the correct
    position on the diagram in any order and then checked after student
    drops the item on a target. (sample sent to email)
    I have 1 for 1 working (working targets have green
    highlight), but can’t figure out how for instance, drag 2
    barrels in any order, 6 red squares over in any order and 2 orange
    circles over in any random order. I am stuck on 1 drag item for one
    specific target only.
    I would like the selections to remain to the left and copies
    of them created and dragged to the targets. (currently they are
    removed from the left when dragged)

  • Advanced Feedback with Drag and Drop Interaction

    Hello,
    I am trying to create a drag and drop interaction that will blend in a "thumbs up" or a "smiley" after each dragable has been correctly placed. The dragables in my interaction are medical terms and the drop sources are smart shape boxes. Each drop source has been assigned one correct answer, so that when the correct answer has been dragged a "success caption" appears immediately. The opposite occurs with an incorrecty dragged term. I figured, I need a "code" that
    askes each dropable if it is the last one to be answered, and when answered correctly, will show the "smiley"
    checks if all other dragables have been placed correctly
    Since I lack the basic coding knowledge, I am having a hard time trying to figure this one out. Thanks for the help, again!
    -Nik

    Hi Jay,
    Yes, could create such a scenario, but the Submit button is not used in that case, because the feedback will appear immediately when a drag object has been placed on the target. Is that OK?
    Here the work flow:
    Besides the object, create all the feedback text containers that you need, correct and incorrect and label them so that they are easily recognizable. I labeled them FB_1, FB_2... because my objects were Drop1, Drop2...
    Make those feedbacks initially invisible and group them in Gr_FB
    Create the drag&drop in the normal way with one correct link
    Select the target and in the in the D&D panel, click on the Accept button, change the settings like this
    The advanced actions are pretty simple, standard, with two statements: Hide Gr_FB and Show FB_n  (with the appropriate feedback container - you cannot use Shared actions in this dialog).
    In the D&D panel, choose Infinite for the number of attempts and uncheck the Failure caption.
    Lilybiri

  • Drag and drop issues

    hi
    ive got the following code. bevvy is a movieclip, theres a dynamic text box called feedText nd a box..imaginately called box.
    I'm trying to create a drag and drop game when the user drags a word into the box that will have its meaning beside it in a text box, the dynamic text box will tell them if they are right or not. if they are right the word stays, if not the word will go back to its original location. the dynamic text box will give feedback whether they are right or not.
    the code below means that the word will stay in the box, but the text message is displayed all the time. i also have a reset button to make the word return to its origal location but id rather not have the button.
    any thoughts please?
    bevvy.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown)
    var onTheRun:Boolean = true;
    function mouseDown(event:MouseEvent):void {
        bevvy.startDrag();
    bevvy.addEventListener(MouseEvent.MOUSE_UP,mouseUp)
    function mouseUp(event:MouseEvent):void  {
        bevvy.stopDrag();
    resetButton.addEventListener(MouseEvent.CLICK, reset);
    function reset(evt:MouseEvent):void {
        bevvy.x=99
        bevvy.y=131
    addEventListener(Event.ENTER_FRAME,enterFrameHandler);
    function enterFrameHandler(event:Event):void{
        if(bevvy.hitTestObject(box)&& onTheRun){
            onTheRun = false;
            bevvy.stopDrag();
            bevvy.x=box.x;
            bevvy.y=box.y;
            feedText.text="well done thats right"

    thanks so much!
    put the code in and it works.
    now for my next problem, i want to add another word into the game. so put the same code in, changed it according to instance names etc and get this error:
    1021: Duplicate function definition.
    its because i have two mouse up and two mouse down functions like this
    bevvy.addEventListener(MouseEvent.MOUSE_UP,mouseUp)
    numpty.addEventListener(MouseEvent.MOUSE_UP,mouseUp)
    i tried to change the mouseUp by adding a number to the end of one to make it different but then i just got more error messages! its probably a simple problem to solve but i just dont have enough flash experience yet to figure it out.
    thanks

  • MULTIPLE-ROW drag and drop between 2 ALV grids

    Hi,
    Can anybody help me with acheiving MULTIPLE-ROW drag and drop functionality between 2 ALV grids.

    hi Prakash,
    Actually I'm trying to develop multiple drag and drop between 2 ALV's. To understand the events properly, I started working on this sample program where it uses 1 ALV and splits it into 2 and uses single row drag and drop between them. Now I'm making it to work for multiple drag and drop, so that I can use it on my application. This is the code which I'm working on..
    *& Report  Z_ALV_GRID_CONTROLS_DRAG_DROP                               *
    REPORT  z_alv_grid_controls_drag_drop.
    DATA   : i_ztransactions  TYPE TABLE OF ztransactions
                                   WITH HEADER LINE.
    DATA   : i_ztransactions2 TYPE TABLE OF ztransactions
                                   WITH HEADER LINE.
    DATA   : ok_code LIKE sy-ucomm .
    DATA : mcontainer TYPE REF TO cl_gui_custom_container .
    DATA : mcontleft  TYPE REF TO cl_gui_container .
    DATA : mcontright TYPE REF TO cl_gui_container .
    DATA : msplitcont TYPE REF TO
                            cl_gui_easy_splitter_container .
    DATA : malv_left  TYPE REF TO cl_gui_alv_grid .
    DATA : malv_right TYPE REF TO cl_gui_alv_grid .
    DATA : mrow TYPE lvc_s_row .
    DATA : gt_outtab_source TYPE ztransactions.
    DATA : gt_outtab_target TYPE ztransactions.
    DATA : g_repid LIKE sy-repid.
    DATA:   gs_layout TYPE lvc_s_layo ,
            g_behaviour_alv TYPE REF TO cl_dragdrop .
    DATA : mlines TYPE i .
          CLASS lcl_dragdropobj DEFINITION
    This is the Class of Drag Drop Object .
    This Object is used as a temporary storage means
    of the information extracted with drag
    CLASS lcl_dragdropobj DEFINITION.
      PUBLIC SECTION.
        DATA: i_ztransactions  TYPE ztransactions ,
              index TYPE i ,
              original_table(5) TYPE c ,
              proceed_trans(1) TYPE c .
    ENDCLASS.                    "lcl_dragdropobj DEFINITION
    DATA : mdata TYPE REF TO lcl_dragdropobj .
          CLASS DND_TOOLS DEFINITION
    This class contains the methods responding to the
    events ONDRAG , ONDROP , ONDROPCOMPLETE
    of the ALV Grid Controls
    CLASS dnd_tools DEFINITION .
      PUBLIC SECTION .
       METHODS:handle_user_command
                               FOR EVENT user_command OF
                               cl_gui_alv_grid
                               IMPORTING
                               e_ucomm.
        METHODS : handle_drag_from_left
                             FOR EVENT ondrag OF
                              cl_gui_alv_grid
                              IMPORTING
                              e_row
                              e_dragdropobj .
        METHODS : handle_dropcomplete_from_left
                              FOR EVENT ondropcomplete  OF
                              cl_gui_alv_grid
                              IMPORTING
                              e_row
                              e_dragdropobj .
        METHODS : handle_drag_from_right
                              FOR EVENT ondrag OF
                              cl_gui_alv_grid
                              IMPORTING
                              e_row
                              e_dragdropobj .
        METHODS : handle_dropcomplete_from_right
                              FOR EVENT ondropcomplete  OF
                              cl_gui_alv_grid
                              IMPORTING
                              e_row
                              e_dragdropobj .
        METHODS : handle_drop_to_left
                              FOR EVENT ondrop OF
                              cl_gui_alv_grid
                              IMPORTING
                               e_dragdropobj .
        METHODS : handle_drop_to_right
                              FOR EVENT ondrop OF
                              cl_gui_alv_grid
                              IMPORTING
                              e_dragdropobj .
    ENDCLASS .                    "DND_TOOLS DEFINITION
          CLASS DND_TOOLS IMPLEMENTATION
    CLASS dnd_tools IMPLEMENTATION .
      METHOD handle_drag_from_left .
    METHOD handle_user_command.
       DATA: lt_rows TYPE lvc_t_row.
        DATA: lt_rows TYPE lvc_t_roid.
        DATA: lt_row TYPE lvc_s_roid.
        DATA: mdata TYPE REF TO lcl_dragdropobj .
        DATA: dragdropobj TYPE REF TO lcl_dragdropobj .
    get selected row
        CALL METHOD malv_left->get_selected_rows
          IMPORTING
            et_row_no = lt_rows.
        CALL METHOD cl_gui_cfw=>flush.
        IF sy-subrc NE 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              titel = g_repid
              txt2  = sy-subrc
              txt1  = 'Error in Flush'(500).
        ENDIF.
        CREATE OBJECT mdata.
        LOOP AT lt_rows INTO lt_row.
         mrow = lt_row .
          READ TABLE i_ztransactions INDEX lt_row-row_id INTO
                     i_ztransactions.
          MOVE i_ztransactions TO mdata->i_ztransactions .
          MOVE lt_row-row_id TO mdata->index.
          MOVE 'LEFT' TO mdata->original_table .
          e_dragdropobj->object = mdata .
        ENDLOOP.
      ENDMETHOD.                           "handle_user_command
      METHOD handle_dropcomplete_from_left .
      NB : the following data object MDATA is local to
      the method and contains the information from the
      import parameter of the method E_DRAGDROPOBJ
        DATA : mdata TYPE REF TO lcl_dragdropobj .
        DATA: lt_rows TYPE lvc_t_roid.
        DATA: lt_row TYPE lvc_s_roid.
        CALL METHOD malv_left->get_selected_rows
          IMPORTING
            et_row_no = lt_rows.
        CALL METHOD cl_gui_cfw=>flush.
        IF sy-subrc NE 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              titel = g_repid
              txt2  = sy-subrc
              txt1  = 'Error in Flush'(500).
        ENDIF.
        LOOP AT lt_rows INTO lt_row.
          mdata  ?= e_dragdropobj->object .
          CHECK mdata->proceed_trans = 'X' .
          mrow = mdata->index.
          DELETE i_ztransactions INDEX mrow .
          APPEND mdata->i_ztransactions TO i_ztransactions2 .
          SORT i_ztransactions2 BY kunnr belnr .
          DELETE i_ztransactions2 WHERE kunnr IS INITIAL .
          DESCRIBE TABLE i_ztransactions LINES mlines .
          IF mlines EQ 0 .
            CLEAR  i_ztransactions .
            APPEND i_ztransactions TO i_ztransactions .
          ENDIF .
        ENDLOOP.
        CALL METHOD malv_left->refresh_table_display.
        CALL METHOD malv_right->refresh_table_display.
      ENDMETHOD .                    "HANDLE_DROPCOMPLETE_FROM_LEFT
      METHOD handle_drag_from_right.
        mrow = e_row-index .
        READ TABLE i_ztransactions2 INDEX mrow INTO
                   i_ztransactions2 .
        CREATE OBJECT mdata .
        MOVE i_ztransactions2 TO mdata->i_ztransactions .
        MOVE mrow TO mdata->index .
        MOVE 'RIGHT' TO mdata->original_table .
        e_dragdropobj->object = mdata .
      ENDMETHOD .                    "HANDLE_DRAG_FROM_RIGHT
      METHOD handle_dropcomplete_from_right .
        DATA : mdata TYPE REF TO lcl_dragdropobj .
        mdata  ?= e_dragdropobj->object .
        CHECK mdata->proceed_trans = 'X' .
        mrow = mdata->index .
        DELETE i_ztransactions2 INDEX mrow .
        APPEND mdata->i_ztransactions TO i_ztransactions .
        SORT i_ztransactions BY kunnr belnr .
        DELETE i_ztransactions WHERE kunnr IS INITIAL .
        DESCRIBE TABLE i_ztransactions2 LINES mlines .
        IF mlines EQ 0 .
          CLEAR  i_ztransactions2 .
          APPEND i_ztransactions2 TO i_ztransactions2 .
        ENDIF .
        CALL METHOD malv_left->refresh_table_display.
        CALL METHOD malv_right->refresh_table_display.
      ENDMETHOD .                    "HANDLE_DROPCOMPLETE_FROM_RIGHT
      METHOD handle_drop_to_left .
        DATA : mdata TYPE REF TO lcl_dragdropobj .
        mdata  ?= e_dragdropobj->object .
        IF mdata->original_table = 'RIGHT' .
          mdata->proceed_trans = 'X' .
        ELSE .
          mdata->proceed_trans = ' ' .
        ENDIF .
        e_dragdropobj->object = mdata .
      ENDMETHOD .                    "HANDLE_DROP_TO_LEFT
      METHOD handle_drop_to_right .
        DATA : mdata TYPE REF TO lcl_dragdropobj .
        DATA: lt_rows TYPE lvc_t_roid.
        DATA: lt_row TYPE lvc_s_roid.
        CALL METHOD malv_left->get_selected_rows
          IMPORTING
            et_row_no = lt_rows.
        CALL METHOD cl_gui_cfw=>flush.
        IF sy-subrc NE 0.
    add your handling, for example
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              titel = g_repid
              txt2  = sy-subrc
              txt1  = 'Error in Flush'(500).
        ENDIF.
        LOOP AT lt_rows INTO lt_row.
          mdata  ?= e_dragdropobj->object .
          IF mdata->original_table = 'LEFT' .
            mdata->proceed_trans = 'X' .
          ELSE .
            mdata->proceed_trans = ' ' .
          ENDIF .
          e_dragdropobj->object = mdata .
        ENDLOOP.
      ENDMETHOD .                    "HANDLE_DROP_TO_RIGHT
    ENDCLASS .                    "DND_TOOLS IMPLEMENTATION
    DATA : mlistener TYPE REF TO dnd_tools .
    ======================================================
    START OF SELECTION
    ======================================================
    START-OF-SELECTION .
      PERFORM get_data .
      CALL SCREEN 100 .
    The screen 100 has the custom control MCONTAINER and
    on the flow logic has the following modules :
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      MODULE PREPARE_SCREEN .
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_0100.
    (Off course not commented out in the real flow logic)
          FORM GET_DATA                                 *
    FOR THIS EXAMPLE THE DATA SELECTION IS HARD CODED
    FORM get_data .
      CLEAR : i_ztransactions , i_ztransactions[] .
      i_ztransactions-mandt = sy-mandt .
      i_ztransactions-waers = 'EUR  ' .
      i_ztransactions-kunnr = '0000000001' .
      i_ztransactions-belnr = '0000000001' .
      i_ztransactions-bldat = '20030101' .
    i_ztransactions-dmbtr = '1000' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000002' .
      i_ztransactions-bldat = '20030202' .
    i_ztransactions-dmbtr = '1010' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000003' .
      i_ztransactions-bldat = '20030323' .
    i_ztransactions-dmbtr = '1020' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000004' .
      i_ztransactions-bldat = '20030404' .
    i_ztransactions-dmbtr = '1030' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000005' .
      i_ztransactions-bldat = '20030505' .
    i_ztransactions-dmbtr = '1040' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000006' .
      i_ztransactions-bldat = '20030606' .
    i_ztransactions-dmbtr = '1050' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000007' .
      i_ztransactions-bldat = '20030707' .
    i_ztransactions-dmbtr = '1060' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000008' .
      i_ztransactions-bldat = '20030808' .
    i_ztransactions-dmbtr = '1070' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000009' .
      i_ztransactions-bldat = '20030909' .
    i_ztransactions-dmbtr = '1080' .
      APPEND i_ztransactions .
      i_ztransactions-belnr = '0000000010' .
      i_ztransactions-bldat = '20031010' .
    i_ztransactions-dmbtr = '1090' .
      APPEND i_ztransactions .
      CLEAR : i_ztransactions2 , i_ztransactions2[] .
      APPEND i_ztransactions2 .
    ENDFORM .                    "GET_DATA
    *&      Module  STATUS_0100  OUTPUT
    The PF STATUS STATUS100 called from the module below,
    has on the Standard toolbar the buttons
    BACK , EXIT and CANCEL .
    These buttons are provided with function code = 'EXIT'
    MODULE status_0100 OUTPUT.
      SET TITLEBAR 'TITLEDRAGDROP' .
      SET PF-STATUS 'STATUS100'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
         Module  USER_COMMAND_0100  INPUT
    The following module checks the User Command and ends
    the program
    MODULE user_command_0100 INPUT.
      IF ok_code = 'EXIT' .
        CLEAR : mcontainer ,
               mcontleft  ,
               mcontright ,
               msplitcont ,
               malv_left  ,
               malv_right .
        LEAVE TO SCREEN 0  .
      ENDIF .
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  PREPARE_SCREEN  OUTPUT
    MODULE prepare_screen OUTPUT.
      IF mcontainer IS INITIAL .
        CREATE OBJECT mcontainer
                      EXPORTING
                      container_name = 'MCONTAINER' .
        CREATE OBJECT msplitcont
                      EXPORTING
                      parent = mcontainer
                      orientation = 1 .
        mcontleft = msplitcont->top_left_container .
        mcontright = msplitcont->bottom_right_container .
        CREATE OBJECT malv_left
                      EXPORTING i_parent = mcontleft .
        gs_layout-sel_mode = 'D'.
        CREATE OBJECT malv_right
                      EXPORTING i_parent = mcontright .
        gs_layout-sel_mode = 'D'.
        PERFORM set_layout_capable_of_drag_dro
                      USING 'X' 'X' .
        CALL METHOD malv_left->set_table_for_first_display
          EXPORTING
            i_structure_name = 'ZTRANSACTIONS'
            is_layout        = gs_layout
          CHANGING
            it_outtab        = i_ztransactions[].
        CALL METHOD malv_right->set_table_for_first_display
          EXPORTING
            i_structure_name = 'ZTRANSACTIONS'
            is_layout        = gs_layout
          CHANGING
            it_outtab        = i_ztransactions2[].
        CREATE OBJECT mlistener .
        CALL METHOD malv_left->set_toolbar_interactive.
        SET HANDLER mlistener->handle_drag_from_left
                    FOR malv_left .
        SET HANDLER mlistener->handle_dropcomplete_from_left
                    FOR malv_left .
        SET HANDLER mlistener->handle_drag_from_right
                    FOR malv_right.
        SET HANDLER mlistener->handle_dropcomplete_from_right
                      FOR malv_right .
        SET HANDLER mlistener->handle_drop_to_right
                     FOR malv_right .
        SET HANDLER mlistener->handle_drop_to_left
                     FOR malv_left  .
      ENDIF .
    ENDMODULE.                 " PREPARE_SCREEN  OUTPUT
          Form  SET_LAYOUT_CAPABLE_OF_DRAG_DRO
    Definition of a Drag & Drop behaviour for the ALV
    grid
    FORM set_layout_capable_of_drag_dro  USING drag drop.
      DATA : effect TYPE i ,
             handle_alv TYPE i .
      CREATE OBJECT g_behaviour_alv.
      effect = cl_dragdrop=>move + cl_dragdrop=>copy .
      CALL METHOD g_behaviour_alv->add
        EXPORTING
          flavor     = 'Line'
          dragsrc    = drag
          droptarget = drop
          effect     = effect.
      CALL METHOD g_behaviour_alv->get_handle
        IMPORTING
          handle = handle_alv.
      gs_layout-s_dragdrop-row_ddid = handle_alv.
    ENDFORM.              " SET_LAYOUT_CAPABLE_OF_DRAG_DRO

  • Why does not drag and drop work?!

    Hello,
    I am trying to implent a drag and drop from a table to an icon representing a trash.
    The drop handler fails in converting the selected rows to a list:
    com.sun.el.MethodExpressionImpl@87d9c00d javax.el.ELException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    Could you help me to understand why? Below are the details.
    This is the af:table:
    <af:table var="row" rowBandingInterval="0" id="t1"
    value="#{bindings.MyView1.collectionModel}"
    rowSelection="multiple"
    columnStretching="last"
    horizontalGridVisible="false"
    verticalGridVisible="false" fetchSize="-1"
    autoHeightRows="6" width="190"
    disableColumnReordering="true">
    <af:column sortable="true" headerText="Entry" id="c1"
    align="start">
    <af:outputText value="#{row.Description}" id="ot1"/>
    </af:column>
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    discriminant="delete"/>
    </af:table>
    This is the drop area:
    <af:image source="Images/empty_trash_32.png" id="i2">
    <af:dropTarget dropListener="#{backingBeanScope.DropHandlerBean.dropHandler}"
    actions="MOVE">
    <af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
    discriminant="delete"/>
    </af:dropTarget>
    </af:image>
    This is the failing listener listener (the failing point is bold):
    public DnDAction dropHandler(DropEvent dropEvent) {
    DnDAction dnda = DnDAction.NONE;
    if (dropEvent.getProposedAction() == DnDAction.MOVE) { // delete
    RichTable table = (RichTable)dropEvent.getDragComponent();
    //determine the rows that are dragged over
    Transferable t = dropEvent.getTransferable();
    //when looking for data, use the same discriminator as defined
    //on the drag source
    DataFlavor<RowKeySet> df =
    DataFlavor.getDataFlavor(RowKeySet.class, "delete");
    RowKeySet rks = t.getData(df);
    if (rks == null) {
    return DnDAction.NONE;
    Iterator iter = rks.iterator();
    while (iter.hasNext()) {
    //get next selected row key
    System.out.println(rks.toArray().length); // the number of selected rows is ok
    List key = (List)iter.next(); // here gives: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
    //make row current so we can access it
    table.setRowKey(key);
    //the table model represents its row by the ADF binding class,
    //which is JUCtrlHierNodeBinding
    JUCtrlHierNodeBinding rowBinding =
    (JUCtrlHierNodeBinding)table.getRowData();
    Row row = (Row)rowBinding.getRow();
    //delete row;
    row.remove();
    //activate animation
    dnda = DnDAction.MOVE;
    return dnda;
    thanks.

    I did try, I obtained this:
    java.lang.NullPointerException
    Why NullPointerException?
    I don't know if this helps, but consider that the collection model comes from a ViewObject built on three EOs with many fields, although the table only shows one column.
    This is the Iterator in my pageDef:
    <table IterBinding="MyView1Iterator" id="MyView1">
    <AttrNames>
    <Item Value="Cod1"/>
    <Item Value="Cod2"/>
    <Item Value="Cod3"/>
    <Item Value="Cod4"/>
    <Item Value="Description"/>
    <Item Value="Cod5"/>
    </AttrNames>
    </table>
    Any idea?
    I will see the Key content with the debugger.

Maybe you are looking for

  • Print Quality Issue 6500a e710n-z

    How can I change the print quality setting up or down. The preferences are locked on 300 dpi no matter what I change. Sometimes if I delete all drivers and reload the setting will come back at 600 dpi but again the settings are un-changable. I'm usin

  • Mail app crashes in ios8.  Anyone else?

    EEver since I downloaded ios8 on my iPhone 5 and iPad the mail app crashes every other time I open it.   Very frustrating.   Wondering if there has been any discussion of this and when it might be fixed.  Probably shouldn't have made this update yet.

  • USB to 232 Converter Question

    Hello I an working on a project that will use LV to send a string to a 8051 MCU.  Prior to my knowledge of the NI USB-232 device that already has a driver written I spec'ed a radio shack USB to 232 cable.  I selected that cable because I have used it

  • What is the maximum HDD size for Pavilion DV7-3105ea and can I add a 2nd HDD.

    Hi, Please could someone advise me as to the maximum HDD size that can be installed in a Pavilion DV7-3105ea. Additionally is it possible to add a second HDD. Thanks and kind regards, jB

  • Sql developer crashing my system

    Hi All, I have used Oracle SQL developer for more than a year now. After installing Apache Tomcat 7.0.34, now when I open my Oracle SQL developer its crashing my system. I downloaded latest SQL developer version(32 and 64bit), tried with jdk version