Can I drag the event target source drag?

I have adds drag and drop features of a tree control on a VI at several targets of slipping on different VI.  For example, they can drag the tree for a XY Chart on another VI, a table to an another VI, a digital indicator on an another VI, etc...  In addition, when they abandon the data, I need to know where he left it down and initiate an action from the drag source (tree control) VI.

My problem is, I see no way to determine what VI and control the move action took place the.  I'm basically looking to the control reference of the operation drag and drop target once the drop event occurs.

I know that I should add a few cases of event for all the different targets, but I try to keep the minimal code and keep most of the complexity of the VI with the source.  If I have, I will use some sort of a global or the driving force to write an identifier of the target VI to a place where the source VI can be read, but I'd rather not do that in many places so I don't have to.

Create your own event type user 'Control' and save it in the same diagram as source Tree. On the event of filter "Drag start?" of the source tree, inject this event Ref use in drag data (it will take be flattened). Then, in the 'Drop' unflatten handler this Ref user event and send event user with the value of the event data "Ref" of this event handler 'drop '. It is a form of a callback function, which is much more reliable than a global engine or action that exposes the risks of racing conditions.

Tags: NI Software

Similar Questions

  • Helps the event.target.name

    I'm very green with actionscript and coding in general so please forgive me if I ask you something that sounds super easy.

    Is it possible to take the "event.target.name" value, which in my case would be something like 'SW5005_mc' and change this value.

    I use this value now to tell another clip of gotoAndStop (event.target.name); I have identical to the event.target.name marked images.

    I would like to take the value of event.target.name for example "SW5005_mc" and delete the "_mc" and put a dash between the 'SW' and the '5005.

    for "SW-5005" and then I'd spend it in a text field.

    I don't really know where to start, or if this is possible.

    Thanks for any help or suggestion,

    Chris

    You can use String.indexOf to find the _ and just get everything entered, then use substr and substring for the rest:

    var a: String = event.target.name;
    var b:String = a.substring (0, a.indexOf ("_")); get the front part of the _
    var c:String = b.substr (0.2) + "-" + b.substr (2); Insert a - between the first two characters and the rest
    trace (c);

    SW-5005

  • How can I see the full target URL when I hover over a link? Not a short URL.

    How can I see the full target URL when I hover over a link? I don't want to see short URL. Is there a way to customize this?

    Full target URL allowing me to easily see how visitors reached my site via Google, Bing, Yahoo Research, etc. With the short URL I don't see what they entered into the search field.

    You can use this extension to restore the characteristics of loss of status bar and customize settings such as displaying the URL of a link to the overview.

  • How to check the event.target type in the "if" statement

    Hi, I have "roll-over" event listener and I wish that only works with music videos (without textfields etc.). I would write something like this:

    if(Event.Target == MovieClip) {do something}

    else {do something}

    This does not work properly.

    How to check the event.target type in the "if"?

    Thanks for any help.

    :

    If (getQualifiedClassName (Event.Target) == 'flash. display::MovieClip') {do something}

    else {do something}

    .

  • How can I change the connections of source and target OWB?

    Hello, I have hurt to change the connection to the source in OWB.

    My login name of source is identical to the front. That DB name, schema name is now moving to connect to the source. Here are the steps that I did.

    1. went to control Center Manager and cancel the mapping of source.
    2. is go explore connection and right click on the connection to the source, and then click Open Editor. change the username, ip address, password, name of the comic.
    3. goes to control Center Manager and redeploy the mapping. It does not work... It is said, table or view does not exist.

    Is there somewhere else I need to change... Somewhere, Miss me...

    Any help is appreciated...

    Hello

    Go to the module using the mentioned location.
    Change the module, set the location of metadata to the correct location
    Go to data locations, the correct location should be with selected locations. If so, remove it and place it again.

    Now, go to the configuration of the module and go to the Identification
    Check the value of the location and make sure that it uses the correct location

    I think it is sometimes useful to change the location to another location and back to the correct location.
    I hope this helps.

    Kind regards

    Emile

  • I can't save the events to the calendar

    I have some problems with my 5 c with ios 9.3.5 iphones. The first is the calendar application. When I try to record an event, after you complete all the content and select Add, the event does not appear on my calendar. The second problem is with the backup. The phone never complete the backup process.

    The last problem was with the screen. Constantly, I have to restart my phone because the screen looks like that the images do not match the screen. I can't unlock the screen and do nothing. I try to take a screenshot to it attached to this message, but the image seems normal.

    Please can someone tell me what I need to do?

    Since you've already tried resets, try a restore.

    Reset: hold the Home and Power buttons until you see the logo Apple (10-15 seconds).

    Restore your iDevice: https://support.apple.com/en-us/HT204184

    If your backup is in iTunes, make sure that it is encrypted.

    The latest issue can be a wandering selection in settings > general > accessibility > Zoom.

  • I transferred my pictures from the camera and they appear only in the last download and not events.  I tried everything, how can I get the events?

    I transferred my pictures from my camera to my mac, and they downloaded with the only place wherever they appear in "the last download" but not in "events".  I also downloaded on my macbook and had the same response.  I've never had this problem before and have tried everything.  How can I get them to appear in the "events"?  Since my last camera download, I have create a second library, but they are not more in the events.

    CTRL-click a picture on the last import, then select "Show event.  It shows the event?

  • Java applications can write to the event log

    Two questions actually.

    I heard of an event log.  What's on the computer Pocket bb?

    Can do writing debugging information request in this newspaper?  Or any other text file, by the way?

    Debugging on the Simulator is one thing, but being able to debug on a physical device is another problem.

    Thank you

    Gerry

    Discover the EventLogger API

    To display the event log press the ALT key and type "LGLG".

    For the storm, show the keyboard and then press NumLock ' / ' /.

  • How to get the event target?

    I recorded the event mask depending on:

    App.notifiers.Add ("Hd",.. mpfprojectdir\dev10\src\csharp\projectbase.file path);

    Now, how can he obtain the object that triggered the event?  [app.active document.activeLayer] give me only the layer ".  Of course, this does not work in a scenario where the user hides a layer that is not selected.

    I'd appreciate any help!

    Action handler has no direct access to objects in the object model. It has its own class and object. Sometimes, there may be a more direct access by name. If the event descriptor was the index of the layer or the ID you can use instead of the name.

    Sorry, when I threw together for you I only tested hidding layers that do not have the activeLayer. I don't think that the alert is empty is because the top layer was hidden. I think it's because the activeLayer was hidden so the actionReference is different.

    Try this (which seems to work for me with both)

    try {
        if (arguments.length >= 2) {
        var desc = arguments[0];
        var event = arguments[1];
        // make sure it's the hide event
        if (event == charIDToTypeID('Hd  ')) {
            // get the list of what was hidden
            var list = desc.getList(charIDToTypeID('null'));
            // get the actionReferences from the list
            var ref = list.getReference(0);
            var psClass = ref.getDesiredClass();
            // make sure it was a layer that was hidded
            if(psClass == charIDToTypeID('Lyr ')){
                // check to see what is in the reference
                var dataEnum = ref.getForm();
                // should either be an enum if activeLayer
                if(dataEnum == ReferenceFormType.ENUMERATED) {
                        alert(app.activeDocument.activeLayer.name);
                }else{// or the layer name
                    alert(ref.getName());
                }
            }
        }
      }
    } catch (e) {
      alert( "Error: " + e + ":" + e.line );
    }
    
  • How can I change the contextual targeting of layers (ALT key + hook)

    Hello

    I have a problem with non - US keyboard. I can't the targeting in the layers from top to bottom panel. So, I need to click with the cursor alltime. There are shortcut for it in American keyboard such as ALT keys + [or ALT +] but non-US keyboards do not work like that.

    There is no entry for this shortcut Panel. How can I assign a new shortcut for this function.

    Thank you

    What operating system do you use?

    You can use a script, and then assign a keyboard shortcut.

    Select the layer forward

    // =======================================================

    var idslct = charIDToTypeID ("TPCV");

    var desc26 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    ref25 var = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    var idOrdn = charIDToTypeID ('Ordn');

    var idFrwr = charIDToTypeID ("Frwr");

    ref25.putEnumerated (idLyr, idOrdn, idFrwr);

    desc26.putReference (idnull, ref25);

    var idMkVs = charIDToTypeID ("MKV");

    desc26.putBoolean (idMkVs, false);

    var idLyrI = charIDToTypeID ("LyrI");

    var list25 = new ActionList();

    list25.putInteger (6).

    desc26.putList (idLyrI, list25);

    executeAction (idslct, desc26, DialogModes.NO);

    Select the layer backward

    // =======================================================

    var idslct = charIDToTypeID ("TPCV");

    var desc25 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref24 = new ActionReference();

    var idLyr = charIDToTypeID ("Lyr");

    var idOrdn = charIDToTypeID ('Ordn');

    var idBckw = charIDToTypeID ("Bckw");

    ref24.putEnumerated (idLyr, idOrdn, idBckw);

    desc25.putReference (idnull, ref24);

    var idMkVs = charIDToTypeID ("MKV");

    desc25.putBoolean (idMkVs, false);

    var idLyrI = charIDToTypeID ("LyrI");

    var list24 = new ActionList();

    list24.putInteger (5);

    desc25.putList (idLyrI, list24);

    executeAction (idslct, desc25, DialogModes.NO);

    Save each as a .jsx file then put into the photoshop scripts folder and they should show under file > Scripts in photoshop.

    Use then to change it > shortcuts to assign a keyboard shortcut.

  • How can we save the event when Photoshop is stopped?

    Hi all!!

    I have to perform actions on the record of events of a document. I had no problem doing the same thing. But, in the course of the different tests save event trigger scenarios, I fell on the situation in which a document without title is open and the user closes Photoshop. At this point, Photoshop prompts the message "do you want to save the document? Regardless of the user's selection ('Yes' / 'No'), the plugin is unable to obtain registration event, perhaps due to the termination of the application. I get the message of kSPInterfaceShutdownSelector directly. Don't stop to save event reminder.

    How can I make sure that my save event callback is executed each time a user saves a document?

    Thank you!

    You must analyze the close event descriptor. Locate the key keySaving

  • Can we capture the event of show/hide layer in PS?

    Hi all..!!!

    I have a request to all the coders of Photoshop! We can capture the click event of show/hide layers in Photoshop... ? I need to know my code if the user clicked on the eye of show/hide layer... !!

    Pls answer soon... !!

    Thank you!

    http://forums.Adobe.com/thread/858391?TSTART=0

  • can not change the folder targets to the folder my documents

    For some reason I'm not able to change the target destination. Does not allow me to type in the box.

    Hello

    Try the steps from the link: how to change the default location of the My Documents folder: http://support.microsoft.com/kb/310147

  • Can I print the pages of source for the hyperlinks in a pdf document

    http://www.stratishealth.org/documents/ClinicLinkJuly14_R.PDF


    I have Acrobat X Pro. I created the above PDF file that shows hyperlinks as a clickable link to "Read more about it...". A reader asked for a PDF file that it can print, yet he'd out somehow the real URL that the link "more about it..." will. Anyone know of a way that I can provide this?


    Also, I thought I had found a way to print a PDF and Acrobat real 'catch' web pages, so that I have a hyperlink, but I can't find such a feature. I start to think I dreamt it.


    Thank you


    Katharine

    BTW-
    Capture of Web with Acrobat X Pro:
    Tools - Capture of Web - documents processing

    Or

    File - create - Web Page PDF

    Acrobat X Pro help PDF deals with activity.
    See "convert web pages to PDF in Acrobat.

    If you need a copy of the PDF you can extract it from here-

    http://help.Adobe.com/en_US/Acrobat/X/pro/using/acrobat_X_pro_help.PDF

    Be well...

  • How can I check if a function is or is not called the event listener? in Flash CS4 (AS3)

    Hello

    I ran into a small problem.

    I put an event listener inside a loop for and the loop inside a function.

    I want the loop for to end as soon as the listener of events inside the for loop calls the function.

    Here is the general code for a better image.

    Code:

    this.addEventListener(Event.ENTER_FRAME, function#1);
    function function#1(event:Event):void{
              if(something is true){
                        for(var i = 0; i < numOfmy_mcs; i++){
                                  this["my_mc_"+String(i)].addEventListener(MouseEvent.CLICK, function#2);
                        }
              }
    }
    function function#2(e:Event):void{
    //do something cool here
    } 
    

    Thanks for any help!

    You can determine what the event object dispatched using e.target and e.currentTarget.  and it is not supposed to return anything to a listener.

    everything you try to do?  Click on one of a large number of objects and make and/or determine what?

Maybe you are looking for

  • HP Pavilion DV7 3110TX - region Code Incorrect

    I have a laptop HP Pavilion DV7 3110 tx, Windows 7. I never really used the laptop for viewing of DVDs so far and observe through the HP Media Smart DVD player it says that my area is 6. I live in Australia and my dvd were bought here - region 4. The

  • Upgrade to Vista 2 K problems

    About 2 years ago I did the upgrade and no problem.  Had to replace Mo and o/s.  Now the wall is built.  I installed 2K, my upgrade to vista is not bootable.  upgrade of 1 wall says I need SP4 before the installation can be made.  I did, and then it

  • Windows 8.1 does not appear in the store Windows Dell XPS 8700

    My desktop computer Dell XPS 8700 arrived yesterday, but I can't upgrade Windows 8 to 8.1 of Windows. I went to several Microsoft Web sites where they say on a Windows update and I have to have before the upgrade is displayed in the Microsoft store.

  • Adjusting the sound of bass in Windows 7

    I have a radio transmitter wireless connected to the output port of my computer.  The transmitter broadcasts to my wireless speakers that are scattered throughout the House.  They are pretty old, but works well.  I like listening to Internet radio (P

  • Question about the Installation of the OS Windows8

    Mr President. I bought a Sony laptop with a windows 7 OS later I upgraded to a widows 8 with a purchase online purchase of the bone now when I did a format my laptop I can't able to install the Windows 8 operating system since the software I made a p