Combo box multiple values

Hello world

I would like to use a drop-down list box to send two different values for two entries for every combo box selection. For example if I select "Channel 1" form the drop-down list box, then the integer "1" and the string "1 x", which I can then send to the two separate terminals.

I really have no idea how to do that, my one thought was to combine into a single value for the value of drop-down list box and then to cut the string and use it that way - but this seems awkward.

See you soon!

Instead of a combobox control, I'd probably use a ring.

Tags: NI Software

Similar Questions

  • Cascade lookup - Can you have a list combo box multiple selection among children

    Can we have a list of regular selection be parent and cascading to a list combo box multiple selection?

    Lol drop-down list multiple selection cannot be parent, Fahrenheit.

  • How to pass multiple values to a data model parameter

    I have a data model, where I put a setting like this.

    Select col1, col2, col3 from table1 where col1 =: param1

    This works very well for a single value that I pass the param1 parameter.

    How can I get this to work when I want to send multiple values for param1. I already checked the box "Multiple values" and tried to change the sql for this code.

    Select col1, col2, col3 from table1 where col1 in: param1

    Looks like I'm missing something here.



    Thanks in advance!
    Kris

    you need to write it as:

    Select col1, col2, col3 from table1 where col1 in (: param1)

    It works for me.

    Klaus

  • How can I do a multiple selection in Enum control or control of the ring or control Combo box

    How can I do a multiple selection in Enum control or control of the ring or control Combo box

    You can not.

    You can use a listbox control.

    An alternative solution is to write the code and each selection, the user gives an enum, for example, can be send to a table and invite the user to continue to select...

  • Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the value of "Off" to all of the other boxes as well. Any help is greatly appreciated.

    Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the 'Off' the value assigned to all the other boxes as well. Any help is greatly appreciated.

    'Off' is the default value of any box when it is not checked. It can not

    be changed.

  • Additional mouse click required to set other combo box values based on the current selection combo box

    I have an Acrobat PDF form where there are 8 combo boxes (not editable) which are related in a logical way, but have unique names and a list of unique values, with the exception of a default value that represents 'null' or 'none '.

    for example:

    The first 1 combo box value is "none" followed by the value A1, B1, C1, etc., and Combo box 2 the first value is 'none' followed of the values A2, B2, C2, etc...

    The combined list useful values for every combo boxes relate to the types of unique product for the user to select mode 'radio button '.

    When the user selects one of the 8 Combo boxes and performs one selection other than 'none', then the form must verify the 7 other combo boxes and when any current value is not equal to 'none', he has to change 'None '.

    The following script is currently enrolled in the properties of "Actions - Mouse Run - Up a Javascript" from one of the drop-down list boxes, others have similar scripts as well.

    (var cbox is the current combo box and var obox is for other drop-down list boxes when called).

    Cbox var = this.getField ("TagStyleStake");

    If (cbox.value! = "none")

    {

    obox var = this.getField ("TagStyleBasket");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStylePushon");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleHandle");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleHang");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleBlank");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleMolded");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleSignage");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    }

    The current problem is that, when a Combo is selected and one option other than the 'none' value is clicked, the other combo boxes do not include the 'None' value.

    To reset the other combo boxes requires another click on the option which has just been moved to the position selected in the drop-down list, but it seems reasonable that the drop-down list boxes should reset with the initial click the option in the drop-down list.

    I tried other properties (Format, validate, Calculate) but without success.

    What I'm missing here?

    The normal way to proceed is to define "value option selected to validate immediately" and to place the code in the event of the combo box button. And instead of the first two lines you have, you need to use something like:

    If (! event.willCommit & event.changeEx! == 'none') {}

    Your other code goes here

    }

    The changeEx property returns the value of exports, if any, for the selected item.

  • Combo box values

    Hello

    I have a script that is not what I expect it to do.

    I have 2 list boxes drop-down and based on the value of the first combo ('Subject.1' (value: 1, 2, or 3)) the second combo shows or hides 1 or several fields (up to 9 in total).

    Here is my code (custom validation script), I thought it was ok:

    var a = this.getField ("Step.0.0")
    var b = this.getField ("Step.1.0")
    var c = this.getField ("Step.2.0")

    var d = this.getField ("Step.0.1")
    var e = this.getField ("Step.1.1")
    var f = this.getField ("Step.2.1")

    var g = this.getField ("Step.0.2")
    var h = this.getField ("Step.1.2")
    var i = this.getField ("Step.2.2")

    var j = this.getField("Subject.1").value

    Switch (event.value) {}
    case "": ""
    a.Display = display.hidden
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    case '1 ':
    If (j.value = "1")
    {
    a.Display = display.visible
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '2')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '3')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.visible
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    }}}
    case '2 ':
    If (j.value = "1")
    {
    a.Display = display.visible
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '2')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '3')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.visible
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.visible
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    }}}
    case '3 ':
    If (j.value = "1")
    {
    a.Display = display.visible
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.visible
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '2')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '3')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.visible
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.visible
    g.Display = display.visible
    h.Affichage = display.visible
    i.Display = display.visible
    break;
    }}}

    by default:
    a.Display = display.hidden
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    }

    Lines as follows:

    If (j.value = "1")

    Must be:

    If (j is '1')

    and lines like:

    If (j.value = '2')

    Must be:

    } Else if (j == '2')

    Same thing for the j is "3" lines.

  • How to validate and save the values to a combo box and two text boxes in flex4 mxml application with as3

    helllo all,.

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    any suggession or extract code is welcome.

    Thanks in advance,

    B.Venkatesan

    Looks like you are trying to do too much at once. Try to hang the events correctly

    The close event of the comboBox can do something like this

    protected function toggleTextEditing(event:DropDownEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    This.Text1.editable = true;

    This.Text2.editable = true;

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    This.Text1.editable = false;

    This.Text2.editable = false;

    }

    }

    The button's click event can do something like

    protected function save(event:MouseEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    If (this.text1.text == "" & this.text2.text == "")

    {

    Alert.Show ("text is empty");

    return;

    }

    on the other

    {

    }

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    }

    }

    If you can put in your entire code, maybe I can have a look to see if I can find something wrong with that.

    -Pramod

    http://www.flexmycode.com

  • How can I update by program table combo box control type def?

    I use LV 8.6.1 and I am trying to create a table control panel object in which the user can select an item to list box for each element of the array.  I also have to periodically update the list of values.  Currently, I have configured the drop-down list box (selection of Automation sequence - see attached) as a type non-stricte def so I can write news channels to the list values when I need to.  But I can't seem to find a way to get the table (list of batches - see rasthaus) fill the new value drop-down list box.

    Automation box refelcts the new string sequence selection that I add programmatically, but the combo boxes in the batch list table control do not have the new channel.

    Anyone have any ideas?

    I have attached the screenshot of the drop-down list and table controls.

    Thank you

    Dan

    I considered that mention strings and values have a property that cannot be stored in a typedef, but when I tried it out, it seemed that it was.  So I just did not comment on that.  Maybe the strings and values may be among the typedef, maybe not.  The values of the controls certainly cannot.  Strings and values can be in kind of a gray area.  But you can certainly expect changes to a control to automatically update another control, because they are typedefs.  You cannot change the typedefs during execution.

    Let's put another example that has nothing to do with the values.  You have a regular typedef of a digital.  It is saved with the text in red in scientific notation.  You place two instances of this on your drawing.  You can programmatically change each other colors or other digital formats.  A change does not affect the other.  If it's a strict typedef, you would be locked in the way in which it was saved and could not change it programmatically.

    Take a look at this.  If you cannot programmatically, to update your channel list and values for a single combobox (a scalar string) you will be able to put up-to-date for when the combobox control is the data type for a table.  Simply get a reference to the element of the array.  It does not use typedefs anyway.

  • Channels not defined in Combo Box Bug?

    I found a problem with the drop-down list box control:

    1. create a drop-down list box and deselect 'allow Undefined Strings.

    2. run the VI

    3. Select a list box item

    4. press on the BACKSPACE key to remove a few letters of the item

    5. click on on the front panel

    The combo box is filled with a string not set!

    Disabling the BACKSPACE key is not a valid work-around because the user may need this while typing the value.  Expected behavior of the control would be to restore the previous value.  Any comments?

    Yes.

    Take a look at the bug report in this thread.

    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=379475

  • doubt of combo box

    Hello

    I was struggling with the drop-down list box that appears always ASCII characters in the drop-down list. If I select any one character then it converted to hexadecimal value because I changed the control property of the spell combo box. I want to show all the drop-down list with hexadecimal numbers. How can I do that. Even I checked with the string value and the value [property] but still not able to do. Please anyone suggest me how to display the entire list of the combox in hexadecimal numbers. Indeed the visa reading block reads ascii characters.

    Thank you in advance.

    Never forget this post. I got the answer somewhere forum on neither. SO, now I'm ASCII hex conversion and then write in dropdownlist. Thank you.

  • Selected pass contains a string indicator combo box when you press the Enter key

    Hello

    How to pass selected contains a string indicator combo box when you press the enter keyboard key?

    Right now I use a button to send the command selected in the combox to string indicator.

    The photos shows a combo box with the button that I use to send to the indicator as example.

    After the user selects the text to pass, "send the cmd" button must be pressed to pass the string.

    I need to pass the selected string when the user press enter on the keyboard rather than press the button 'send cmd '.

    Kindly to you needing help.

    Hello

    You can use a structure of the event to capture keystrokes and filter, transmit only the drop-down list box "value of the indicator of channel when you press the return or enter key."

    Let me know it the joint allows an example (in LV 8.6).

  • Plugin to point that returns multiple values

    When you create an APEX element that can return multiple values, such as a checkbox, APEX uses the settings of varchar2 p_v01 - p_v200 instead of the p_t01 table settings - p_t200.

    I would like to create a plugin item type that can return multiple values in the same way, so that the session recorded for the item state contains a delimited string of values.  I realize, I could achieve with Javascript and a hidden item, but I really want to a non-Javascript solution.  Is this possible?  If this isn't the case, it would be a nice improvement!

    Hi Tony,.

    Take a look at the level of the parameter p_is_multi_value of the APEX_PLUGIN. GET_INPUT_NAME_FOR_PAGE_ITEM api (http://docs.oracle.com/cd/E37097_01/doc.42/e35127/apex_plugin.htm#AEAPI1254). If you set it to TRUE, you will get one of the p_v01 - p_v200 table settings. It's the same what our box element type calls.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • Search for multiple values in a single field

    Hello

    I have this request to get results when the user doing a search query:

    select * from (
    select 
    "ID",
    "ID" ID_DISPLAY,
    "SHIFT_DATE",
    "SHIFT",
    "OFFENSE_ID",
    "DESCRIPTION",
    "ANALYST",
    "STATUS",
    "SUBSTATUS"
    from "#OWNER#"."IDSIEM_OFFENSES") 
    where
    OFFENSE_ID IN(:P223_OFFENSES) AND
    
     (
     instr(upper("DESCRIPTION"),upper(nvl(:P223_DESCRIPTION,"DESCRIPTION"))) > 0 
    )
    AND
    (
     instr(upper("SHIFT"),upper(nvl(:P223_SHIFT,"SHIFT"))) > 0 
    )
    AND
    (
     instr(upper("SUBSTATUS"),upper(nvl(:P223_SUBSTATUS,"SUBSTATUS"))) > 0 
    )
    AND
    (
     instr(upper("ANALYST"),upper(nvl(:P223_ANALYST,"ANALYST"))) > 0 
    )
    AND
    (
     instr(upper("SHIFT_DATE"),upper(nvl(:P223_SHIFTDATE,"SHIFT_DATE"))) > 0 
    )
    AND
    (
     instr(upper("STATUS"),upper(nvl(:P223_STATUS,"STATUS"))) > 0 
    )
    
    ORDER BY OFFENSE_ID DESC
    

    The thing I want to do is to set multiple values in the P223_OFFENSES field when I search. For example, an offence is a number, so I want to put in the search box 1111, 3333, 4444, 5555 and the report shows me these 4 offences in the report. The search operation only works when I put only 1 offences, but when I put more than 1, separated by commas, it gives me this error: error report: ORA-01722: invalid number. That is why, because is a number and the character point is not allowed, how can I achieve this? Thank you in advance.

    Best regards, Bernardo

    I solved a problem like this a few times with a utility function of pipeline for extracting the values from the list:

    CREATE or REPLACE TYPE split_tbl AS TABLE OF VARCHAR2 (32767).

    /

    FUNCTION to CREATE or REPLACE split_list

    (

    p_list VARCHAR2

    p_delimiter VARCHAR2: = ', '.

    ) Split_tbl RETURN

    PIPELINED IS

    l_idx PLS_INTEGER;

    l_list VARCHAR2 (32767): = p_list;

    BEGIN

    LOOP

    l_idx: = instr (l_list, p_delimiter);

    IF l_idx > 0

    THEN

    LINE of CONDUCT (substr (l_list, 1, l_idx - 1));

    l_list: = substr (l_list, l_idx + length (p_delimiter));

    ELSIF TRIM (l_list) IS NOT NULL

    THEN

    PIPE ROW (l_list);

    EXIT;

    ON THE OTHER

    EXIT;

    END IF;

    END LOOP;

    RETURN;

    END split_list;

    /

    In this way, you can define SQL like:

    SELECT to_number (column_value) FROM TABLE (split_list (' 1, 3, 99', ','))

    Or for this specific case: replace the condition

    OFFENSE_ID IN(:P223_OFFENSES)

    with

    OFFENSE_ID IN (SELECT to_number (column_value) FROM TABLE (split_list (: P223_OFFENSES, ',')))

    The advantage over using instr or regex is that you can usually always benefit index on OFFENSE_ID

    Better also to restrict entry to only numbers and ', ' or you will always get invalid numbers errors if a user enters "1234, 567, ABC"in the field of P233_OFFENSES.

    Kind regards

    Thierry

  • The research of Web applications with fields of the Data Source that contains multiple values

    I have a Web application with a field that allows multiple values to be recorded similar to the list box. I need limit the allowed values for a large, over the list of the values currently stored in another Web application as a data source. I can not apply to the type of Data Source field that allows only single value selection. I also need to be able to use the search form Web App to search for items containing 1 OR more of the values in this field (a type of list control field search functionality). Here's what I tried to field types:

    • Text (String) or text (multi-line) field type - By saving a list of values separated by commas (outputs in the same way this list box) to an entry of text or textarea, the search only logic search exact string (including commas) and does not analyze individual values.
    • Type of list (checkbox) field - it allows me to search for multiple values using the logic of the GOLD, but the web application stores only the values that have been entered as an option in the field settings real web app. I tried to use a checkbox with minimal or empty options list, hoping that some values I sent more separate by a comma value chain would be still stored, but because the values come from my Web App data source and not stored with the field options list, they were not saved.

    Someone at - he found a way to do it?

    My other question is how can I use a multivalued field to similar as described above but return results containing the elements with ALL the values of this field (AND logic).

    Can someone enlighten me to the inner workings of the search BC logic web app?

    You don't need to use the predefined boxes or types of entries. Everything you can represent as a string (such as the values separated by commas in your example) can be saved in any field of webapp. The types of fields defined in the Web application are only used to translate internal representation (all channels) to the various user-friendly interpretations (checkboxes, radios, dates, links, etc.)

Maybe you are looking for