Select Excel list drop-down element in LabVIEW

Hi all

I need to open an excel workbook and send data to a particular LabVIEW worksheet

In itself, it is simple, BUT the spreadsheet has also a few combo boxes I need to autmate a choice on.

is anyway to do this? The spreadsheet vb code is password so I can't create macros additional within which to do, I need to do all of the Labview

Can't seem to find a way to reference drop-down lists, the most appreciated any help woul dbe

Thank you

Mike

According to the Excel 2010 developer reference if you set the value of the linked cell the combo box will be that he has the correct value for this cell value so if you know what value you want to set, and which cells are linked you just.

If this does not work for you all the controls are objects of form so you can use the Shapes on the worksheet collection to find and manipulate.

Tags: NI Software

Similar Questions

  • Select from a drop-down list and the specified element values are displayed in the textfield

    I need for one to be able to select from a list drop-down and specified the item values appear in textfield.

    For example, if I select Amy

    If I select Bob

    If I select Jane

    Amy

    Bob

    Jane (I want to appear as shown in the list)

    I associated a value to each item in the drop-down list so that the choice is easy to compare and determine what initial (default) value to the value in the text field. In my drop down list change event, I have the following:

    var sNewSel = this.boundItem (xfa.event.newText);

    Switch (sNewSel)

    {

    case '1': / / Amy

    TextField1.rawValue = "Amy \n";

    break;

    Switch (sNewSel)

    {

    case '2': / / Bob

    TextField1.rawValue = "Bob \n";

    break;

    Of course that's not work one name shows at a time. Help, please!

    Thank you

    Don't know what the code is supposed to do, but basically, you want to add the name of the drop-down list the addition on the current value of the TextField? Why not use the dropdownlist display value directly? For example on the change event:

    if ( TextField1.rawValue == null )
        TextField1.rawValue = xfa.event.newText;
    else
        TextField1.rawValue += ( "\n" + xfa.event.newText );
    
  • How to set a repeating subform based on a value selected in a drop down list?

    Please forgive me if this is somewhere, but I spent a few hours searching and have not led to what.

    I have a drop-down list that allows the user to select the number of teams in you listing (1-5). Then I have a subform with all the necessary information for each team. I wish that the subform to repeat automatically based on the number selected in the drop-down list, because I need this information for each of the two teams by registering.

    Thank you!

    In the case of exit of the drop-down list, in formcalc, put something like:

    teams of var = $.rawValue

    var counter = 1

    While (counter< teams)="">

    Subform2.instanceManager.addInstance)

    Counter = counter + 1

    endwhile

    This assumes you have already 1 version of the subform. If you are a beginner with no condition (meter while doing<=>

  • Populate a drop-down list based on selected in a drop-down list in a separate table

    Good day all.

    This may seem a simple question for most, but... He had me frustrated trying to figure out.

    I'm trying to fill in a drop-down list that is based on what is selected in another drop-down list.

    Let me explain what I've done so far.

    Life cycle of Designer 8.05.2

    When I got the two drop-down lists in the same table, I've not had a problem. The code I used is

    The table name is "table1".

    if (directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("select" "")

    }

    I was asked to move things and now 'division' is located in 'Table2 '.

    I know that I need the "Table1" reference, but I'm running into a syntax error. I tried the following code;

    if (Table1 Row1 directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("make a choice")

    }

    if (Table1.Row1.directorate.rawValue == '1')

    {

    division.clearItems ();

    division.addItem ("make a choice")

    }

    Any help would be appreciated

    Chomp

    You are missing a semicolon at the end of the line, addItem, and the second code example, you have no periods in the SOM (Table1 Row1 direction) reference.

    The best way to get the path to another field is to ctrl-click on the ground while you are in the script editor.

  • Subforms making visible depending on what is selected in the drop-down list

    Good day to all;

    Looks like I'm '0' batting today. For some reason I'm not able to get a number of things working today... Maybe I should just write off that day as a loss... ; >)

    Another way; I'm trying, unsuccessfully, to get forms to become visible depending on what is selected from a drop-down list. I tried to use "switch" (see below), but I end up getting the famous error "syntax".

    I also tried an 'if' statement (see below), but that doesn't seem to work either.

    What I would like to ask you is when a user selects 1 of 2 choices 1 2 forms sub becomes visible.

    So, if the user has selected in the drop-down list of the bad and they choose now to select the right pair, I want the form incorrect sub to again become invisible.

    I'd appreciate any help

    switch (this.rawValue)

    {

    case "2" :

    staffing_inter. Presence = 'visible'

    on the other

    staffing_inter. Presence = 'hidden';

    breaking ;

    }

    IF statement

    if (this.rawValue = 2)

    {

    staffing_inter. Presence = 'visible'

    }

    else {

    staffing_inter. Presence = 'hidden';

    }

    Number of things...

    What statements do not use "else". You must specify each value. But you can nest another code in a statement that.

    Using a drop down you need to get the new value when the selection is made.

    Thus (guess what you did 'Specify the item values' liaison for the DDL tab):

    var newValue = this.boundItem(xfa.event.newText);
    switch(newValue){
         case "1":
              //code
         break;
         case "2":
              //code
         break;
         //etc.
    }
    

    Or with your statement:

    var newValue = this.boundItem(xfa.event.newText);
    
    if(newValue = 2){
        staffing_inter.presence = "visible"
    }
    else{
         staffing_inter.presence = "hidden";
    }
    
  • Filling of a numeric field by selecting from a drop-down list

    Hello all;

    I went through the 38 pages on the form now to try to understand it myself. I must have missed something or this day becomes medium long.

    I am filling a numeric field that is based on what is selected in a drop-down list box.

    For the test, I use only 2 fields

    DropDownList1 and digital Field1

    I If (DropDownList1.rawValue == 1) { }

    NumericField1.rawValue = 25;

    }

    On the other;

    (DropDownList1.rawValue == 2) { }

    NumericField1.rawValue = 35;

    }

    That worked. I am now getting the error "missing; before the statement

    "6:xfa: form1 [0]: #subform [0]: DropDownList [0]: output"

    Specify the value of points is checked in the tab links for DropDownList1.

    I said this with a single selection, who worked

    if (DropDownList1.rawValue == 1) { }

    NumericField1.rawValue = 25;

    }

    Thank you all

    Chomp

    If it's a copy/paste of your script, you have a semicolon after the "else" and "else" should be lowercase.

    And for nested IFS, you need an "else if", so:

    If (DropDownList1.rawValue == 1) {}

    NumericField1.rawValue = 25;

    }

    Else if (DropDownList1.rawValue == 2) {}

    NumericField1.rawValue = 35;

    }

    ElseIf...

    If you have a lot of statements, you might want to look at using a statement that may be easier to read.

    {Switch (DropDownList1.RawValue)}

    case '1 ':

    NumericField1.rawValue = 25;

    break;

    case '2 ':

    NumericField1.rawValue = 35;

    break;

    etc.

    }

  • Select from the drop-down list and populate a list in another menu drop down

    I have a drop down list with 10 items in the list. If possible, would like for a selection in the drop-down list to populate a drop-down list with another list of selections. Each of the 10 points in the first list each will have a list of different options in the second drop-down list. I don't know how to build this solution.

    Thank you

    MDawn

    Hello

    It was because of the clear rawValue script that I put in the output from the drop-down list event businessFunction.

    I fixed it:

    // clear the current selection in the department dropdown
    dept0.rawValue = null;
    dept0.execEvent("exit");
    

    https://Acrobat.com/#d=MrWYQbTZIR7xJQDlm5ZSLg

    Good luck

    Niall

  • Get the value currently selected in the drop-down list

    Hello Zac,

    I have a question to get the current value in a drop in export UI. Currently I have a custom fall that I fill with UTF16 strings down. I set up as follows:

    Field order
    (1) exNewParamInfo ParamName;
    (2) exParamValues ParamValues;
    (3) ParamName.structVersion = 1;
    (4) safeStrCpy(ParamName.identifier, 256, ADBEVideoFieldType);     FieldType is considered an example of existing code
    (5) ParamName.paramType = exParamType_int;
    (6) ParamName.flags = exParamFlag_none;
    (7) ParamValues.structVersion = 1;
    (8) ParamValues.disabled = kPrFalse;
    (9) ParamValues.hidden = kPrFalse;
    (10) fieldOrderParam.paramValues = ParamValues;

    exportParamSuite-> AddParam (exporterPluginID,
    mgroupIndex,
    ADBEBasicVideoGroup,
    and ParamName);

    I can then load my dynamically generated strings in the fall down (in ProstProcessParams) and they are displayed correctly.

    Then, I call upon export

    exportParamSuite-> GetParamValue (exID, 0, ADBEBasicVideoGroup, & ParamValueToBeReturned);

    to get the current value.

    However, I'm not UTF16 string. My guess is that's because the value of this field is UTF16 and not int (that I put in place on the line 5). I tried to use exParamType_string, but it gives me an editable text field.

    Then, how we configure a drop custom down correctly to obtain the current values of the string of her?

    Thank you

    Petro


    Hey Petro,

    During exSelPostProcessParams, in your calls to the AddConstrainedValuePair(), you have defined a type of integer values to strings mapping.  You can use the same mapping to determine which channel has been selected in the drop-down menu of the integer value passed from GetParamValue().  Integer values can actually be more accurate, because due to the location, the strings may vary.

    Looking at the code, you can make limited value of pairs with parameters of type exParamType_string.

    Kind regards

    Zac

  • question list drop-down list values

    I have successfully created a repeatable subform that calculates total fields. But to make the repeatable subform more user-friendly and to mark the shape itself, I want to insert a drop-down list in the repeatable subform. But in order to do so and have the calculations will work well the selections in the drop-down list would have to have numerical values (which are not visible or course). For example if it's a shopping list which took point milk, I would a value assigned to milk. So I guess my question is, can I add items to a menu drop-down using only javascript and assign values to these items at the same time, or I have the list print the number of value to a hidden text field in order to to use in a calculation script. Or would I need to make a connection of data from excel? Thank you

    You can have the display text and the value associated with the time using scripts.

    DropDownList1.addItem ("milk," "2.90");

    In the light of the foregoing, the addItem method accepts 2 parameters. First a display text and the second as value.

    If the user selects milk in the drop-down menu, then the "DropDownList1.rawValue" property will give value as "2,90"...

    I hope this helps.

    Thank you

    Srini

  • List drop-down events

    Can someone point me to information on events from the drop-down list? I want to deal with when the selection in the drop-down list has changed.

    myDropDown.addEventListener (Event.SELECT, myFunction, true, 0, true);

    The foregoing is not to do the trick.  I see MouseEvents.CLICK events if I change the event above.

    Thanks in advance.

    Hey kaptuafj,

    According to the API reference page:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/UI/listclasses/dropdown.html

    the event that should be listened to is Event.SELECT. I'll write a program and run it to confirm.

    Edit: Just run the program and it works very well. Event is triggered and captured. Just make sure that your listener function looks something like that with the event in parentheses:

    public function myFunction(e:Event):void
    

    Edit #2: Hey just used your line:

    myDropDown.addEventListener(Event.SELECT, myFunction, true, 0, true);
    

    and it does not. If you set the argument usecapture false it will start working. unless you have a specific reason to be true, usually this option is set to false by default. unless you need all these arguments usually just using this line also does the trick:

    myDropDown.addEventListener(Event.SELECT, myFunction);
    

    Here are the details for the argument usecapture if you need a deeper look:

    http://www.ActionScript.org/resources/articles/860/3/understanding-the-AS3-event-flow/page3.html

    Let me know if it works!

  • ADD ITEMS TO THE LIST DROP-DOWN LIST TO A TEXT FIELD (USER ENTERS THE ITEM) AND ALSO RELATED TO VALUE

    Untitled.jpg

    I have WANTED to ADD of ELEMENTS from the list drop-DOWN OF THE AREA of TEXT (the ELEMENT NAME) WHERE the USER BETWEEN of THE DESCRIPTION of POINT

    AND RELATED value SHOULD ALSO BE ADDED to THE SAME ELEMENT.

    LIKEWISE REMOVE ITEMS IN THE DROP-DOWN LIST

    PLEASE GIVE SHAPE TO SAMPLE OR JAVASCRIPT FOR THE ABOVE SCENARIO...

    INDEED USEFUL FOR MY PROJECT PLEASE SEND PDF FORM

    Hi Praveen,

    You can add items to the list in a specific order, which would be to load the elements in an array, sorting and then load in the dropdown list drop-down list.  This would be in the click event of the button Add.

    Create a table to hold all the list items, table drop-down list contains objects with a property 'displayItem' and 'value '.

    dropDownItems var = [];

    Add the new

    dropDownItems.push ({displayItem: ItemName.rawValue, value: BoundValue.rawValue});

    Add existing ones

    for (var i = 0; i)< dropdownlist1.length;="">

    {

    dropDownItems.push ({displayItem: DropDownList1.getDisplayItem (i), value: DropDownList1.getSaveItem (i)})

    }

    Sort by ascending order of displayed text

    () dropDownItems.sort

    function (a, b)

    {

    If (a.displayItem< b.displayitem)="" return="">

    If (a.displayItem > b.displayItem) return 1;

    return 0;

    });

    clear all items

    DropDownList1.clearItems ();

    load the sorted items

    for (var i = 0; i)< dropdownitems.length;="">

    {

    var dropDownItem = [i] dropDownItems;

    DropDownList1.addItem (dropDownItem.displayItem, dropDownItem.value);

    }

    clear the fields of the source

    ItemName.rawValue = null;

    BoundValue.rawValue = null;

    I added a button 'Add' sorted in my sample https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g

    Concerning

    Bruce

  • Do not select the in drop-down fields, JS pls duplicate entries. ?

    Hello

    I have 3 fall to the low fields in my_sub_form, say, my_country_1, my_country_2 and my_country_3. All the field list drop-down boxes are filled with 10 names of countries, say, United States, Canada, Spain, Germany, France...

    Say user selected U.S. my_country_1 drop down field, new user TRYING to select same entry of the United States in the field of the my_country_2 = > here at this point, as soon as the user has selected United States in my_country_2 droppped to the bottom of the Inbox list = > immediately, I need to start the warning message to the user and make the my_country_2 as "" VACUUM.

    Basically, my form does not allow the user to select the duplicate in these 3 fields drop-down entries, all 3 should be SEPARATE.

    If I write JS in the event of my_sub_form, his works well, but not easy to use, this kind of delay.

    So we want to have an INSTANT user alert as SOON AS the user selects an entry duplicated in any field drop-down list

    I tried to put some JS in case of CHANGE of my_country_1 and my_country_2, but does not

    Pls provide me with a few JS and the name of the event, the name of the object

    Thank you

    you could put in the output of the list of my_country_1 event:

    If (this.rawValue == my_country_2.rawValue | this.rawValue == my_country_3.rawValue)

    {

    xfa.host.messageBox ("you can't choose the same country");

    this.rawValue = «»

    }

    then put the same thing in the other menus but change the names.

  • Text of field force based on list drop-down choice

    I adapted this from an example provided by pguerett call 'health mental-check' (in another thread that I can't find right now) who performed a similar function based on a checkbox control.

    I have a dropdown list with a change event to set the menu text focus IF the drop-down list item is replaced by 'others '.

    In the text field, that I have an output event which 'should' give a popup message and then set the focus on the field from the drop-down list, IF the drop-down list item is "other", AND the field is null output.

    However, this does not go as planned.

    Any help would be greatly appreciated.

    Thank you.

    Part of it is to get your '=' and '==' mixed up. A = to assign the value, two == to compare a value.

    I think the gasket you need.

    I changed your script:

    var newValue = this.boundItem(xfa.event.newText);
    if (newValue == "Other")
    {
        xfa.host.setFocus(form1.IncidentReport.OtherNature);
    }
    

    I think the way it works is that you'll need to capture specific value selected in the drop-down list, because it is has been selected the value does not exist in the field again... or something like that - someone else here can probably explain it properly!

  • Capture the value in list drop-down dashboard

    Hey,.
    Is it possible to capture the value we select from the drop-down list.

    -Amit

    Hi Amit,

    Can you close (set as reply) this thread as he approached the reading drop-down data

    Thank you!

    -Joe

  • Problem of not seeing list drop-down connection to the wireless network when checking connections network - pc windows 7.

    Problem of not seeing list drop-down connection to the wireless network when checking connections network - pc windows 7.

    I just installed a Belkin modem-router - which went well. Can I connect WiFi gadgets etc. I can also connect to the internet via a network cable to my pc. I also installed a belkin usb wireless adapter and in Device Manager, says it is enabled and works.

    My problem is, I have no way of choice get a WiFi PC to display in the list (from the notification area) and cannot get the pc to give me options to create a wi - fi connection. The more I get to try to do that is "unexpected error"!

    If someone could help on this - I would be very grateful

    Good news - update of my ongoing saga with this Belkin modem/router.

    Got the pc to see wi - fi now. It turned out to be the Zone Alarm! As the router has a firewall, I uninstalled Zone Alarm completely. Also, I went into the properties of belkin usb and checked it was the most recent drivers, it does not so I installed them.

    So far so good

    Thanks for the help

    TREV Smith

Maybe you are looking for

  • Email links not working not

    When I click on a link in an email, need me is no longer the chosen source. I have to manually click on copy the address of the site and then go to windows and paste on the toolbar. This occurred only lately, but I don't know why. What should I do to

  • Warranty (redirect)

    It's new for me and my all first post. I bought a M18X back in 2011. In March 2014, I had dell contact me to buy an extended warranty. I have the entire market more than the date it expires. (June 18, 2016) I got my computer 4 times returned this yea

  • IOS corrupted and lost

    Well, here is my problem on Friday... I tried to update the IOS on Ap1231 and 2 of them gave me bad results. The first, running the IOS in memory but don't copy the config for the flash. So the http, https does not work and I don't know how to get th

  • Leaking ink

    My HP 309 has leaking black ink.  It comes out of the bottom of the unit near the corner before right.  It seems to be of the smaller black cartridge but I am not sure of the source.  How should I do?

  • How do I set up SEO on my site?

    I can not understand how to configure SEO on my site, so I wondering if anyone of you guys saw.