multiple drop-down list

Hello

I just want to write a simple Labview program that would take a user input (the input must be limited for example to create a menu drop-down). So based on this entry, it must ask the user to enter the other entries. for example.

Input 1. can be a color, a month or a fruit.

Input 2. If input 1 is color, then menu drop-down take red, green, Orange and yellow of the user. If input 1 month, he should ask one of the last 12 months, and so on.

In the third step I will use both of the entries.

Take the example of snapshot.

I would like if you could tell me a simple way to use this, or should I create a text / excel file or some sort of table to implement this.

You just write the property Strings [] to the ring change the possible values.  You can use the first menu ring and a business structure to decide what to fill the second ring of menu with.

Tags: NI Software

Similar Questions

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • Multiple drop-down lists using SetFieldValues mixture fields.

    I have 2 drop-down lists (Dropdown1 & Dropdown2). They are identicle except for their domain names and of their first element option.  When the user chooses an option, I want a predetermined value to be sent to a field of text (FeeAmountRow1 & FeeAmountRow2).  Similar to a purchase order using a drop down.

    By trial and error what I know is that somewhere my scripts are cross.  When I try the shape as the script below, the two drop-down lists send values in the same text instead of their respective field.  Removal of code in each menu drop-down makes the job of other fines.

    I made each of them 'value selected to validate immediately '.  I added the following Scripts of striking personalized to their format.

    Dropdown1 - text if field resets the default drop-down list option is selected, this feature works very well.

    if (event.willCommit) {
        if (event.value == "Select Day 1 Service Type") this.resetForm(["FeeAmountRow1"]);
        else SetFieldValues(event.value);
    }
    

    Dropdown2

    if (event.willCommit) {
        if (event.value == "Select Day 2 Service Type") this.resetForm(["FeeAmountRow2"]);
        else SetFieldValues(event.value);
    }
    

    I use the following script:

    // Dropdown option items data 
    var saData = {
        "Speaking Engagement": {
            fee: "1360.00"
        },
            "Field Ride Consultation": {
            fee: "1700.00"
        },
            "Speaker's Training": {
            fee: "1500.00"
        }
    };
    
    function SetFieldValues(saName) {
        // Populate fields with values
        this.getField("FeeAmountRow1").value = saData[saName].fee;
        this.getField("FeeAmountRow2").value = saData[saName].fee;
    }
    

    In the SetFieldValues function, it is exactly what the code does. He defined two different fields to the same value. Create a separate for each field feature individual rtext, or pass the name of the field as a parameter. For example:

    function SetFieldValues(f_name, saName) {
        // Populate fields with values
        this.getField(f_name).value = saData[saName].fee;
    }

    New script from typo to dropdown2
    if (event.willCommit) {
        if (event.value == "Select Day 2 Service Type") this.resetForm(["FeeAmountRow2"]);
        else SetFieldValues("FeeAmountRow2", event.value);
    }

  • Problem of multiple drop-down list

    What I have is a form that has a dropdown menu with a list of letters, the alphabet, and what I want to do when the user selects a letter, I want a query to execute to complete the second dropdown with a list of all the name, first name that begins with the letter that the user has selected just with the re-loading of the page or javascript. The table name has more than 10,000 lines, so you can see why I do not want in the drop-down list first and why a javascript array will not work for this application. Any ideas?

    AutoSuggest. CF8 has this feature, too.
    If you are not on cf8, studying with the help of Rob Gonda's AjaxCFC.

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com/

  • Designer of the app - Multiple drop-down list option

    In application designer, while editing a page to a letter - I have a combo box where this box represents a table with patterns. The user to select a reason. There is a fairly simple way to allow the user to select several reasons? For example, hold down the CTRL key and have the ability to highlight more than one reason. I would then include the many reasons in the letter.

    It is possible with an area of html. In fact there are examples provided by PeopleSoft.

    Example: Advance opening search (Talent Management HCM)

    The idea is to create.

  • Several drop-down lists with Switch statement

    I use multiple drop-down list to help a user find that associate their correct sales based on the model and the part they use. However my "switch" statement will always be the case "default". Where am I evil scripts?

    https://workspaces.Acrobat.com/?d=X2MirIocbNfyojw6QezAbA

    the variable "part' requires a value." Add the script:

    part = this.rawValue

    SOnineThreenine.fxnineThreenine (part);

    to the output of dropDownlist2 event. Otherwise, the variable "share" gives you an error message [object XFAObject] console

  • Try to fill a text field of a zone drop-down list by using an 'if' statement

    I am filling a text field (modelT) with the text corisponding in the 'data' part of the selectedItem in the drop-down list box. The 'data' appears correctly when I use:

    modelT.text = event.target.selectedItem.data;

    But I'm calling it with an "if" (in red) and subsequently, I can dynamically fill the text field of the multiple drop-down list box. am I missing something simple, here is my code:

    Import fl.controls.ComboBox;
    Import fl.data.DataProvider;
    Import fl.managers.StyleManager;

    var cPurpose:Array = new Array)
    {label: "Execute task", data: "1"},
    {label: "Transportation equipment", data: "2"}
    );
    var purCb:ComboBox = new more;
    purCb.dropdownWidth = 260;
    purCb.width = 260;
    purCb.move (10, 300);
    purCb.prompt = "object of truck?
    purCb.dataProvider = new DataProvider (cPurpose);
    purCb.sortItemsOn ("label");
    purCb.addEventListener (Event.CHANGE, purchangeHandler);

    addChild (purCb);

    function purchangeHandler(event:Event):void {}
    trace ("Selected" + event.target.selectedItem.data);
    purT.text = event.target.selectedItem.label;
    purCb.selectedIndex = - 1;

    If (event.target.selectedItem.data == 1)
    {
    modelT.text = "T660"
    }
    If (event.target.selectedItem.data == 2)
    {
    modelT.text = "W900;
    }

    Thanks in advance for your help

    You must delete or move the following line so that it is not set to zero for the combobox control before trying to read what is selected:

    purCb.selectedIndex = - 1;

  • How to return multiple screens? There used to be a drop-down list of the recent screens in a tab. Thank you.

    The navigation bar contains icons arrow to move forward or backward a screen in a tab, but previous versions of Firefox has also provided a drop-down list of recent Web pages allowing the user to return more than one screen with a single click. This feature is always available?

    The feature was not removed, see article #5 tools rear without drop-down - menu bar button use right-click (or left click hold for a second) for the drop-down list

    in what follows:

    You can make Firefox Firefox 5.0 look Firefox 3.6.19, paragraphs numbered 1 to 10 in the next topic difficulty Firefox 4.0 UI toolbar, problems (Make Firefox 5.0, or 4.0.1 resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.
  • Why the back button isn't a drop-down list to go back multiple levels in Firefox 4? Y at - it an option to reactivate the which?

    Before that I've upgraded to Firefox 4, the back button (as it is in all other browsers under the Sun,) had a drop-down list so you could spend a layer of back up and fall back on several levels. This is particularly important when there is a site you redirecting and you cannot go back only to back single click. However, FF4 is not-at least not by default - and I do not see anywhere in the options to add. Is he hiding somewhere I didn't, or that has been deleted?

    You need to click on and hold the back button or do a right click to access the menu drop down.

  • Using a choice of multiple words in a drop-down list field to launch a java script

    I'm a complete newbie to manuscript of java and relatively new to your building in Acrobat.

    I use a drop-down list field to fill in automatically other fields based on my 1st drop-down list selection.

    The 1st field drop-down allows me to select a variety of suppliers.  Once I have selected the vendor, he auto-remplit the coordinates for this provider.

    I've plagiarized the writing of scripts from this link: https://acrobatusers.com/tutorials/change_another_field.  I even changed my domain names for the moment.  I'll change my return form field names and the script to match once I got it working like I want.

    If I use only one name in my drop down list provider (1 field), the script works perfectly and auto-remplit contact as expected information.  However, many of my suppliers are two words or more... and I need those names in print, so I can't do just a contraction of a Word.  Here is the script I use:

    Here is an example of a supplier of single word name that works as expected:
    Put all vorkriegsbevölkerung data in a single data structure
    var DeptData = {ADLEMI: {contact: "P.O. BOX 2371",}}
    E-mail: "DOWNEY, CA 90242."
    {{deptnum: "PHONE: (562) 923-0333 FAX: (562) 923-8111 '}};
    function SetFieldValues (cDeptName)
    {
    this.getField("DeptContact").value = DeptData [cDeptName] .contact.
    this.getField("DeptEmail").value = DeptData [cDeptName] .email;
    this.getField("DeptNumber").value = DeptData [cDeptName] .deptnum;
    }

    Unique provider name, I used in the example above is "ADLEMI."  If I add 'BEST' to ADLEMI (see below), I get a syntax error.  I really need to be able to use several words in my list drop-down provider to trigger auto-fill.

    Put all vorkriegsbevölkerung data in a single data structure

    var DeptData = {ADLEMI BEST: {contact: "P.O. BOX 2371",}}

    E-mail: "DOWNEY, CA 90242."

    {{deptnum: "PHONE: (562) 923-0333 FAX: (562) 923-8111 '}};

    function SetFieldValues (cDeptName)

    {

    this.getField("DeptContact").value = DeptData [cDeptName] .contact.

    this.getField("DeptEmail").value = DeptData [cDeptName] .email;

    this.getField("DeptNumber").value = DeptData [cDeptName] .deptnum;

    }

    The only difference is that I added a space and the word 'BEST' after ADLEMI.  Is there a way to get around this.  I need to have several words in my drop-down list, or at least the full name of the vendor indicating in the field when I print it.

    Thank you

    Place quotation marks around the name of the element.

    Monday, April 13, 2015, at 17:29, bpwhistler, [email protected]>

  • Multiple dependent drop-down lists in Acrobat

    Hello

    I'm a poster for the first time, but I found valuable information here in the past, so I hope someone can help me with a PDF form that I created.

    I'm looking to have a choice from a drop-down list (departments) complete 4 other drop-down lists (software available for the selected Department).

    For example: in box1, the user selects 'Graphics' Box2, Box, Box 4 and 3 Box5 is filled with the same exact options (Photoshop, Illustrator, InDesign, etc.)

    Currently, I can fill Box1 and according to what is selected framed 2 fills correctly.  However, I can't get the other boxes to be filled. I've been using the referenced scripts here and I will paste it below.

    Any help would be greatly appreciated.

    Thank you.

    Ex:

    Let's say you have two combo - box1 and box2 boxes.

    And let's give box1 chooses 3: Blank, a and b.

    If the user chooses option, box2 will contain choices C and D.

    If the user chooses option, box2 will contain the choice E and F.

    Don't forget to check the "selected value Commit immediately" for the boxes.

    In box1 use the scrip hitarticle t and edit:

    If (event.willCommit)

    {

    If (event.value == "")

    If nothing is selected in box1, box2 is erased

    this.getField("box2").clearItems ();

    on the other

    SetFieldValues (event.value);

    }

    Then you should change the script document of the article a bit.

    First make you the values for box1.

    myBox1Values = ["", "a", "b" "];


    Then, you fill the values in box1.

    this.getField("box1").setItems (myBox1Values);



    You define then which should be displayed in box2 value is selected

    var DeptData = {a: ["C", "D"],

    b: [« E », « F »]

    };


    Finally, you set the values of box2

    function SetFieldValues (cDeptName)

    {

    this.getField("box2").setItems (DeptData [cDeptName]);

    }

    > TypeError: getField ("software Department 2") is null

    What this means is that there is no field by that name. It must match exactly.

    The syntax error is more difficult because I do not see the exact script you use. If you can not post a sample, I'd be happy to take a look if you are free to send it to me: acroscript at gmail point com

  • Showing and hiding of multiple tables with a drop-down list

    I'm doing a drop-down list so that users can select the number of tables that are shown/generated when they specify the tables how they need to complete (there is 1 table for each day of a multi = day, maximum of 5).

    I thought I would use a similar javascript than I used in another place on the form that has been applied to radio buttons to show or hide a specific table. When I applied that to the drop down and added more than lines that the scipt was ineffective, with some play that I managed to do the work, but now it seems thre is a question with which value is selected in the list. When a user selects a certain value, it shows the previous value (so when I chose 4 days, which has a hairy '3', the message box for the test proposed, I added told me I selected the value '2').

    I wonder if there is an easier way to do the function, what I'm doing, or if the drop down menu is the best solution? The maximum number of tables that can be filled is 5, then the drop down menu appears as a way ideal for resticting than for the person filling out the form.

    This is an example of writing, that I joined the drop-down list, as an action of "change." It is repeated 4 times for each value.

    Form1. Page2.DropDownList1::change - (JavaScript, client)

    If (this.value == '2') {}

    Form1. Page2.TableDay1.presence = "visible";

    Form1. Page2.TableDay2.presence = "visible";

    Form1. Page2.TableDay3.presence = 'hidden ';

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    else {}

    Form1. Page2.TableDay1.presence = 'hidden ';

    Form1. Page2.TableDay2.presence = 'hidden ';

    Form1. Page2.TableDay3.presence = 'hidden ';

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    If (this.value == '3') {}

    Form1. Page2.TableDay1.presence = "visible";

    Form1. Page2.TableDay2.presence = "visible";

    Form1. Page2.TableDay3.presence = "visible";

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    else {}

    Form1. Page2.TableDay1.presence = 'hidden ';

    Form1. Page2.TableDay2.presence = 'hidden ';

    Form1. Page2.TableDay3.presence = 'hidden ';

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    I looked at it and tried a few different things and my colleague who is much better than me with sciprting is also at a loss for now - he is unfamiliar with LiveCycle, unless I have so any help is appreciated. Thanks a lot once again as my last number (the script for radio buttons) has been resolved here. Thanks again.

    The question that you see with the value being off is due to the fact that you use the change event. The change event is triggered * before * the new value is assigned to the field. This event is commonly used for intercpet changes. If you wish to continue using the change event, you can get the new value with:

    xfa.event.newText;

    This, however, will get the text that is displayed instead of the value behind. No doubt, you can consult the nodes in the drop-down list to see what value, but I think you should just avoid all of this by adding your code to the layout event: each subform hideable... loan for example, for the first, in the case of TableDay2 layout_ready (as the day1 should never be hidden, as I understand it) put :

    This.Presence = (DropDownList1.rawValue > = 1)? "visible": "hidden";

    TableDay3 would be:

    This.Presence = (DropDownList1.rawValue > = 2)? "visible": "hidden";

    etc.

    Let me know if it helps.

    -Scott

  • populating drop-down list from multiple instances of the subform

    I have a drop-down list xfa.form.assessment.Questions.Questionset.Questiondetail.FIBdetail.qObjlist

    That I want to fill it with the text of all instances of the xfa.form.assessment.Objectives.objectivesdetail.objective text field.

    The user determines how many instances of xfa.form.assessment.Objectives.objectivesdetail will take place.

    How can I write the addItem for the drop-down list to capture data from all instances of xfa.form.assessment.Objectives.objectivesdetail?

    Hello

    I tried to have the area of the exit of the texfield goal fill in the items in drop-down list, but he doesn't like it if 'white' filling has been hidden. So I code the following javascript in the input of the "White Fill" dropdown list event instead. This retrospective look at the objectives and loops through them:

    this.clearItems();
    this.rawValue = null; 
    
    var nCount = Objectives.objectivesdetail.instanceManager.count;
    console.println("nCount: " + nCount); 
    
    for (var i=0; i<=nCount; i++)
    {
         var vFld = xfa.resolveNode("Objectives.objectivesdetail[" + i + "]");
         var vObj = vFld.objective.rawValue;
         Questions.Questionset.Questiondetail.FIBdetail.qObjlist.addItem(vObj);
    }
    
    There are some potential problems with the form, that appear in the javascript console. You should check these.
    I hope this helps.
    Niall
  • Box selection drop-down list in the multicolumn list box.

    Hi friends,

    Is it possible to insert the drop-down list box in the multicolumn list box.

    You can see this kind of GUI in "multiple variables Editor.

    I have attached screenshot of this screen.

    "picture explains more then thousand words.

    Thank you.

    And here's one: http://forums.ni.com/t5/LabVIEW/Add-a-Drop-down-menu-Combo-Box-into-a-specified-cell-of-a-multi/m-p/...

    You can also take a look at this code in LAVA: http://lavag.org/files/file/31-type-sensitive-popup/

  • drop-down list box choose several

    Hello

    I try to make a drop-down list box, where it should be possible to choose multiple values at the same time. The list contains a lot of historical evidence, and I want to make a graph showing only the elect. Is it is it possible to define a bool for every item, which is false by default and can be changed to true, then the plot is illustrated in the chart?

    Thank you

    manuelwaser

    Here are the saved vi LV 8.5

Maybe you are looking for