How to use the drop event of the tree control in LabVIEW 8.20?

Hi,
            I am using the two tree controls in my application to provide a option for the user to drag and drop item from one tree to the other.  I have to validate the user selection. I tried to capture the user drop event  using the event structure. The problem I am facing is, I am not able to drop the item even though i have wired a constant true to the filter(Accepted?) in the event case. I have enable the property(Allow droping) in the right menu of the tree control also.
          While configuring an event case for (drop, drag entered and some thing like this) only I am getting the problem otherwise it is working fine.  
What do i need to do to caprture the drop event ?
Is there any way to avoid the item duplication while droping a new item in the tree control ?
or how can i do this?
Thanks,
Pandiarajan R

Hi Pandiarajan,
I hope you are doing well today! There is a lengthy discussion on the Tree Control Drag & Drop feature at this forums post including contributions from the developer of the Drag & Drop feature:
Tree Control Drag & Drop in LabVIEW 8
By avoiding item duplication, do you mean that you don't want the same item to be in the old tree control or do you not want more than one item in the new tree control?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • How to use the custom control ?

    Hi Friends,
    plz help to use of  custom control in screen painter ?
    and how to use the custom control ?
    Thanking you.
    Regards,
    Subash.

    HI,
    Screen Elements
    A screen can contain a wide variety of elements, either for displaying field contents, or for allowing the user to interact with the program (for example, filling out input fields or choosing pushbutton functions). You use the Screen Painter to arrange elements on the screen.
    You can use the following elements:
    ·        Text fields
    Display elements, which cannot be changed either by the user or by the ABAP program.
    ·        Input/output fields and templates
    Used to display data from the ABAP program or for entering data on the screen. Linked to screen fields.
    ·        Dropdown list boxes
    Special input/output fields that allow users to choose one entry from a fixed list of possible entries.
    ·        Checkbox elements
    Special input/output fields that the user can either select (value ‘X’) or deselect (value SPACE). Checkbox elements can be linked with function codes.
    ·        Radio button elements
    Special input/output fields that are combined into groups. Within a radio button group, only a single button can be selected at any one time. When the user selects one button, all of the others are automatically deselected. Radio button elements can be linked with function codes.
    ·        Pushbuttons
    Elements on the screen that trigger the PAI event of the screen flow logic when chosen by the user. There is a function code attached to each pushbutton, which is passed to the ABAP program when it is chosen.
    ·        Frame
    Pure display elements that group together elements on the screen, such as radio button groups.
    ·        Subscreens
    Area on the screen in which you can place another screen.
    ·        Table controls
    Tabular input/output fields.
    ·        Tabstrip controls
    Areas on the screen in which you can switch between various pages.
    ·        Custom Controls
    Areas on the screen in which you can display controls. Controls are software components of the presentation server.
    ·        Status icons
    Display elements, indicating the status of the application program.
    ·        OK field
    Every screen has a twenty-character OK_CODE field (also known as the function code field) that is not displayed directly on the screen. User actions that trigger the PAI event also place the corresponding function code into this field, from where it is passed to the ABAP program. You can also use the command field in the standard toolbar to enter the OK field. To be able to use the OK field, you need to assign a name to it.
    All screen elements have a set of attributes, some of which are set automatically, others of which have to be specified in the Screen Painter. They determine things such as the layout of the screen elements on the screen. You can set the attributes of screen elements in the Screen Painter - either for a single element, or using the element list, which lists all of the elements belonging to the current screen. Some of the attributes that you set statically in the Screen Painter can be overwritten dynamically in the ABAP program.
    with regards,
    sowjanyagosala

  • How to use the remote control in MediaSource Audio Play

    Hello,
    I bought myself the Creative X-Fi Elite Pro.
    I found out that I only can use the remote control in Media Center of the software.
    Now I want to use it in the Creative Audio Player whicht was also in the Box.
    Is there a way?

    Yes there is. I suggest trolling these boards for the 3rd party remote solutions that will free you to use the remote in ANY application like Winamp, Notepad, Windows Media Player, etc.
    Just my two opinionated cents...

  • How to use the BreadCrumb control

    Hi everyone,
    I'm trying to understand the use of BreadCrumb in NWs.
    I'd like to show the name of the current showed view in the step of BreadCrumb; I have 3 linked views in this sequence: 1 -2 -3; I select the view n.1, than view n.2 and finally the view n.3; the BreadCrumb  should show this result: view1 -> view2 -> view3.
    In addiction to this, the order of showed view could be changed at runtime! How can I do in this case?
    What should I use: MultipleBreadCrumbStep or "simple"Step?
    I saw that there isn't info enough in the SDN forum!
    Can you explain the right use of BreadCrumb to have the above result?
    Thanks
    Enrico

    To explain my problem in a complete manner, I write to you the other thread I have opened...
    ok!
    The situation is this:
    I used the componentization to create and manage several slave DCs and one root (master) DC.
    The root DC handles the view visibility of each slave DC, simply using a navigation ammong the interface views.
    I'd like to write down the name of current interface view (showed by the root DC) at runtime so that I could put these names in a BreadCrumb control (developed using Developer Studio).
    I also saw that a BreadCrumb utility exists in the Enterprise Portal.... but I think that control only works using one application url (of the root DC) and doesn't take trace of events inside each slave view!
    Is it correct? If yes, I couldn't use the BreadCrumb provided by the portal!
    I have to crate the communication between root DC and another DC which I will title to "BreadCrumb DC".
    The BreadCrumb DC would detect the navigation inside the root and show it in steps;
    the root DC would trace the navigation (of all interface slave views) and write down it into a context;
    this context could be exposed by interface controller of the root DC and sent to BreadCrumb DC.
    Well.... how can realize this project?
    I'm thinking about it but I can't solve the dilemma!
    May you help me?
    Thanks in advance,
    Enrico

  • I don't understand how to use the volume control on the new iphone headphones

    I just bought the new style earphones for my iphone and it has a new volume control -- how does it work?  On the old one you just pushed up or down for volume control but now it just increases volume for the time you hold it down?  Does anyone know how to use this properly?

    I have had good success with the System Font Panel. Now all of a sudden, I only get part of it. Any suggestions on how to restore the entire panel? There are no change size options in the corners like in some dialog boxes. I was going to paste what I have here, but for some reason, paste is not available.

  • How to use the treeview control

    I tried to use the treeview in the form builder.
    But I failed.
    If anyone can give me the guideline or related data,
    I'll be grateful.
    Thanks.

    Hi,
    Based on your description, my understanding is that you want to use treeview control in InfoPath 2013.
    Per my knowledge, There is no treeview control in Infopath 2013. Have you used the solution from third party? if it is , I suggest that you seek the third party for help. 
    Besides, here is a similar post, you can take a look at:
    http://www.infopathdev.com/forums/p/8978/80652.aspx
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • How to use the video control buttons on YouTube with voice over

    I have a Macbook Pro and since I am totally blind I use the voice over. I am watching YouTube videos but I can't access the buttons at the bottom of the screen. I can't play/pause the videos or use the slider. I ca't use any of those buttons. Is there sometihng I am missing here?

    I dont know if you will be able to connect other device like PS3 or Wii.
    As far as I know only the Xbox 360 could be connected to a Qosmio and could be used with the Windows MCE.
    I presume this is possible due to connection of Microsoft products; MCE and Xbox360
    To be honest; why you dont take a look into the user manual if this notebook is new to you?
    All details are mentioned in the user manual which is already preinstalled on the notebook.

  • How to use the NI controls in DialogBar?

    I made an dialogbar in mainframe and added some NI Controls and normal controls.
    But I did not receive the event message such as mouse click of NI button control.
    Please see attached file of my sample program. 
    Attachments:
    exDialogBar.zip ‏53 KB

    Hi teleppo,
    I noticed the same thing when I ran your code... I am investigating this further and will let you know when I find something out.
    Jervin Justin
    NI TestStand Product Manager

  • How to use the PTDatePicker control

    This was a solution I wanted to post to old question referenced in DEV2DEV forums, thought I would post it here for now:
    Running WCI 6.1 MP1
    PTDatePicker parameters:
    PTDatepicker = function(divName, varName, formName, textBoxName, buttonName, defaultValue, dateFormat, startDOW, strBtnImgPath, noValidation, displayTop, textBoxSize, displayLeft, onChangeHandler, minYearChoice, maxYearChoice, locale)
    ASPX code below:
    <html>
    <head>
    <span xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
    <pt:namespace pt:token="$$TOKEN$$" xmlns:xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' />
    <pt:ptui.include pt:name="jsdatepicker" pt:locale="en_US" />
    </head>
        <body>
        <div id="datepicker_div" class="cal-Div"> </div>
        <form name ="frmDetail" id="frmDetail" runat="server">
             <table>
                 <tr>
                     <td>
                         <b>Start Date:</b>
                     </td>
                     <td>
                         <script language="javascript">
                              var startDate_js = new PTDatepicker("datepicker_div","startDate_js","frmDetail_$$TOKEN$$","in_startdate","btn_startdate","","MM/dd/yyyy",0,"<pt:url pt:href='pt://images/plumtree/common/private/js/jsdatepicker/LATEST/images/'/>","","","","","","","","en_us");
                         </script>
                         <nobr>
                         <script language="javascript">
                             startDate_js.writeControl();
                         </script>   
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <b>End Date:</b>
                     </td>
                     <td>
                         <script language="javascript">
                              var endDate_js = new PTDatepicker("datepicker_div","endDate_js","frmDetail_$$TOKEN$$","in_enddate","btn_enddate","","MM/dd/yyyy",0,"<pt:url pt:href='pt://images/plumtree/common/private/js/jsdatepicker/LATEST/images/'/>","","","","","","","","en_us");
                         </script>
                         <nobr>
                         <script language="javascript">
                             endDate_js.writeControl();
                         </script>
                     </td>
                 </tr>
             </table>
        </form>
        </body>
    </html>

    This was a solution I wanted to post to old question referenced in DEV2DEV forums, thought I would post it here for now:
    Running WCI 6.1 MP1
    PTDatePicker parameters:
    PTDatepicker = function(divName, varName, formName, textBoxName, buttonName, defaultValue, dateFormat, startDOW, strBtnImgPath, noValidation, displayTop, textBoxSize, displayLeft, onChangeHandler, minYearChoice, maxYearChoice, locale)
    ASPX code below:
    <html>
    <head>
    <span xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
    <pt:namespace pt:token="$$TOKEN$$" xmlns:xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' />
    <pt:ptui.include pt:name="jsdatepicker" pt:locale="en_US" />
    </head>
        <body>
        <div id="datepicker_div" class="cal-Div"> </div>
        <form name ="frmDetail" id="frmDetail" runat="server">
             <table>
                 <tr>
                     <td>
                         <b>Start Date:</b>
                     </td>
                     <td>
                         <script language="javascript">
                              var startDate_js = new PTDatepicker("datepicker_div","startDate_js","frmDetail_$$TOKEN$$","in_startdate","btn_startdate","","MM/dd/yyyy",0,"<pt:url pt:href='pt://images/plumtree/common/private/js/jsdatepicker/LATEST/images/'/>","","","","","","","","en_us");
                         </script>
                         <nobr>
                         <script language="javascript">
                             startDate_js.writeControl();
                         </script>   
                     </td>
                 </tr>
                 <tr>
                     <td>
                         <b>End Date:</b>
                     </td>
                     <td>
                         <script language="javascript">
                              var endDate_js = new PTDatepicker("datepicker_div","endDate_js","frmDetail_$$TOKEN$$","in_enddate","btn_enddate","","MM/dd/yyyy",0,"<pt:url pt:href='pt://images/plumtree/common/private/js/jsdatepicker/LATEST/images/'/>","","","","","","","","en_us");
                         </script>
                         <nobr>
                         <script language="javascript">
                             endDate_js.writeControl();
                         </script>
                     </td>
                 </tr>
             </table>
        </form>
        </body>
    </html>

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • How to use the eventing and databag with a WAS 6.20 ?

    How to use the eventing and databag with a WAS 6.20 ?
    Is what there is a good guide for these services?
    Thank's

    In the raise event you can pass the value
    like below.
    <SCRIPT>
    function raiseEvt(value1){
    if(window.document.domain == window.location.hostname){
    if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
       EPCMPROXY.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", value1, null );
      // alert('tree domain'+document.domain);
    </SCRIPT>
    and in the
    subscribe event you can get the values like below.
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
          document.forms[0].gp_hidden.value = eventObj.dataObject;
    </script>
    Also look at the following link for a complete documentation.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Enterprise%20Portal%20Client.pdf
    Regards
    Raja

  • How to use the PROGRESS Event?

    Can someone explain to me how to use the PROGRESS event, i looked at the docs but it never helped me?
    I want to use it to display the prgress of downloading data from a API, its a URL event. But i was told i can do this via a PROGREE Event

    copy and paste the trace output from:
    import flash.events.ProgressEvent;
    //var facebookAPI:String = "https://graph.facebook.com/ginorea1/feed?access_token=277830088900615|2.AQDUBMBocIw_QcqE.3600.1313856000.0-100001000396080|5bXT8Cj0OUxNpr7y NeqTsJfwADg";//
    var facebookAPI:String = "https://graph.facebook.com/100001000396080/statuses?access_token=14563 4995501895|2.AQAKdU4pcsdMmmBO.3600.1313859600.0-100001000396080|7uzAMoRdsg5kXLjc exS5bVaPhag";
    var loader:URLLoader = new URLLoader(new URLRequest(facebookAPI));
    loader.addEventListener(Event.COMPLETE, loadComplete);
    loader.addEventListener(ProgresEvent.PROGRESS,loadProgress);
    function loadProgress(e:ProgressEvent):void
    trace(e.bytesLoaded,e.bytesTotal);
    progress_txt.text = String(Math.floor((e.bytesLoaded/e.bytesTotal)*100));
    function loadComplete(e:Event):void{
    processData(e.target.data);
    function processData(data:String):void
    var facebookFeed:Array = JSON.decode(data).data as Array;
    for (var i:uint, feedCount:uint = 10; i < feedCount; i++)
    var tf2:TextField=new TextField();
    feed1.text = facebookFeed[i].message;
    feed2.text = facebookFeed[2].message;
    feed3.text = facebookFeed[3].message;
    feed4.text = facebookFeed[4].message;
    feed5.text = facebookFeed[5].message;
    feed6.text = facebookFeed[6].message;
    feed7.text = facebookFeed[7].message;
    feed8.text = facebookFeed[8].message;
    feed9.text = facebookFeed[9].message;
    feed10.text = facebookFeed[10].message;
    stop();

  • How to use the Dynamic register of events in X-controls

    Is it possible to handle dynamic events triggering using the X-control and if possible how to handle that option

    Yes, it is tricky.  I have an idea on the Idea Exchange suggesting that this behaviour is added to XControls - go and give kudos if you agree.
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Trigger-XControls-for-Dynamic-Events/idi-p/1411062

  • How to use the Columns Hidden | space in the bottom of af:panelCollection?

    Hi,experts,
    In jdev 11.1.2.3,
    I can see a row of Columns Hidden | Columns Frozen in the bottom of component af:panelCollection - pc1 which have an af:table - t1 component inside in designer view,
    and can see there is a blank row space only with "|" inside when the page is running.
    Now I want to use this blank row space such as to display row numbers for the table, so I set the property for the panelColletion as following source code:
    ==========================
    <af:panelCollection id="pc1" inlineStyle="width:1250px; height:500px;">
    <f:facet name="menus"/>
    <f:facet name="toolbar"/>
    <f:facet name="statusbar">
    <af:group id="g4"/>
    </f:facet>
    <af:table value="#{bindings.TView1.collectionModel}" var="row"
    rows="#{bindings.TView1.rangeSize}"
    emptyText="#{bindings.TView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.TView1.rangeSize}" rowBandingInterval="1"
    filterModel="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}" filterVisible="false"
    varStatus="vs"
    selectedRowKeys="#{bindings.TView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.TView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" inlineStyle="font-size:xx-large; font-weight:bolder;">
    <af:column sortProperty="#{bindings.TView1.hints.GoodsStatus3.name}" filterable="true"
    sortable="true"
    headerText="#{bindings.TView1.hints.GoodsStatus3.label}"
    id="c42">
    <af:outputText value="#{row.GoodsStatus3}" id="ot33"/>
    </af:column>
    <f:facet name="footer">
    <af:group id="g3">
    *<af:outputText value="RowsNumber:" id="ot44"/>*
    *<af:outputText value="#{bindings.TView1Iterator.estimatedRowCount}"*
    id="ot43" partialTriggers="::pc1:t1"/>
    </af:group>
    </f:facet><f:facet name="detailStamp"/>
    </af:table>
    </af:panelCollection>
    =====================
    but when run the page there is no display for the row number, instead on the bottom of the table, there is only a blank row with "|" inside.
    How to use the Columns Hidden | Columns Frozen space in the bottom of component af:panelCollection ?
    Thanks!

    Hi, Arun
    It works.
    As in my use case, can draw an af:toolbar component into statusbar of Panel Collection facets in Structure view.
    There is still a small issue:
    cannot see the Columns Hidden|Columns Frozen component in the Structure view,
    and if drop more than one af:toolbar into statusbar, the sencond one will fall/wrap into second row, even though there is enough space on the first row (to occupy a second row in statusbar will be a waste of space), and cannot see how to adjust.
    Thank you very much!
    bao

  • How to use the separate symbol in the text field in the adobe form.

    Hi,experts,
    I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
    Action:
    1. config the ADS successfully.
    2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
    3. create a WDA for invoke the form and transfer the 'remark' context data.
    I use the following codes to display the paragraph in the PDF document:
    CONCATENATE
    '1&#12289;aaaaaaaaaaa&#65307;'
    '2&#12289;bbbbbbbbb '
    '3&#12289;ccccccccccc'
    '4&#12289;ddddddddd'
    INTO remark .
    lo_nd_z_hr_php_payslip->set_attribute(
    EXPORTING
    name = `REMARK`
    value = remark ).
    But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
    Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
    My email is : [email protected]
    Best regards,
    Tao
    Edited by: wang tao on Apr 8, 2008 1:58 AM

    Hi,
    If it is just a one word value then you could use this in the exist event;
    this.rawValue    
    = util.printx(">?<*",this.rawValue);
    This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
    If you wanted something more general ... if they could also enter a middle name then you could call a function like;
    function        toTitleCase(textValue)
      return  textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
    This uses a regex to change all lowercase letters following a word boundary to uppercase.
    Bruce

Maybe you are looking for