Programmatically Change Combo Box List

Hello,
I searched heavily on these forums and found answers that were close, but I cannot quite figure out the following:
I have a large number of individual RF assemblies, most having the same test requirements.  My plan is to create a combo box (or similiar) from which the assembly number can be selected.  This box will then provide a numeric value to a case structure, which will then provide the need test parameters and what not.
I know the combo box list can be populated with a property node and the property node fed by an array.  It is my hope to be able to put this info in a spreadsheet file that can be updated as necessary and then imported into the VI at run time.  Therein lies my problem.
Using the strings and value[ ] property, I can make the combo box work correctly, but I cannot figure out how to import the spreadsheet into the proper format to feed the property node.  I've tried various spreadsheet import schemes offered on these forums, but none quite hit it.  I've tried to figure it out on my own, but I'm just spinning my wheels.
Any help would be appreciated.
Thanks.
Attachments:
PullDown_Module.vi ‏30 KB

Hello,
I've attached a VI that I think will help you.  I actually used the Index & Bundle Cluster Array function, which I don't think I've ever used before.    Anyway, this function gets the two arrays of strings from my tab-delimited text file and manipulates them into an array of clusters containing two strings each, which is the data type required by the StringsAndValues[] property of the Combo Box:
I hope this gets you started in the right direction.  Good luck!
-D
Message Edited by Darren on 03-17-200602:18 PM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Attachments:
Combo_Box_Screenshot.jpg ‏100 KB
Combo_Box.vi ‏27 KB
data.txt ‏1 KB

Similar Messages

  • Combo box list update or insert restriction

    Dear all,
    I have a list item which type is combo box.
    it shows the Departments list from the department table at run time.
    i populate at through a procedure at runtime.
    problem
    the user could update the list by writing something into it.
    i want to force the user to just select a value from the list, not update or insert.
    i change the properties of the list item which prevent insertion or updation,
    but it disable the selection from the list as well.
    how to prevent the user to write something in the combo box list while giving him the
    selection authority using the combo box list item?
    Thanks and Regards

    thank you dear,
    but i want to use the combo box instead.
    for popup list there is a problem of the null value,
    you must assign a value to the popup list and set its required property to true for doing so.
    and the combo box do not need this. and my desired functionality require it.
    Edited by: Muhammad on Feb 28, 2010 3:10 AM
    Edited by: Muhammad on Feb 28, 2010 3:21 AM

  • Regarding  input combo box list of values

    Hi,
    I am using JDev 11.1.1.5.0
    I used the input combo box list of values in adf application based on VO.When I type a value in the input combo box and press TAB key,it gives first item of that list rather than that entered value and when I open the list, it shows the repeating values of the first item.
    Please suggest me some solutions.

    Hi,
    hard to say based on your description. Try with 11.1.1.6 or 11.1.17 and if it reproduces, provide a test case based on the HR schema. Is that an option ? Then send it my way in a zip file renamed to "unzip". My mail address is in my OTN profile, just follow the named link left to this reply
    Frank

  • Add items to a combo box list if not in existing list

    I'm trying to set up a combo box for an expense report form.  I want users to be able to select an account from an existing combo box list or to add an account to the list if it doesn't exist already.
    Ideal situation:
    For example, the user has "Office Supplies" and "Meals - Business Related" as existing options in the combo box.  They need to enter a parking expense, which doesn't exist on the list, so they type in "Parking" in the combo box. They attempt to advance to the next field.  A message box pops up and says, "Do you want to add "Parking" to your list of expense options?  They click "Yes" and the combo box will now include Parking in the future.
    Any assistance would be greatly appreciated!

    George,
    Do you know of a way to save the list addition to the original file without saving any new form data with it? In other words, I would like the item to be on the list when the document is opened in the future, but if they just save it, it will save with the form data they've just entered.
    Thanks!

  • Populating Combo Box list value In Multiple Row

    Hi,
    i to have the same problem .
    I have used add_list_element to populate the list value of the combo box in multiple row.
    I am selecting the list value from the database where the combo box value will be different for each row. However, when i do this.
    All the previous row combo box list value will follow the combo box value in the last row. How can i resolve this?
    i tried with lov but hasnt had any sucesss.in case of LOV can we make the list to appear automatuically and select a value????i havent had much sucesss over it??
    is thr any work around for this apart from lov?

    Hi,
    which product or technology are you talking about ?
    Frank

  • Setting value in input combo box list of values programmatically.

    Hi,
    I have the following requirement.
    I have a combo box LOV defined in the column of application table. Whenever the user is trying to change this value, I need to check for a condition and invoke a warning popup with yes/no button and allow the user to change if dialog outcome is 'yes'. If the outcome is 'No', then i need to reset the combo box to its original value. To do this, in the valuechangelistener of LOV, I am invoking the warning popup and control will coming out of the valuechangelistener and dialog listener will be called.
    How do i set the combo box value in dialog listener ? and How do I retain the existing value of the LOV if user clicks on 'No' button.
    Jdev Version : Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
    Thanks in advance.
    Harish

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

  • Using wildcards in combo box list

    Is it possible to key in the first letter of a member and retrieve all matches? For example, key in the letter A in the combo box and the drop down list is all of the members starting with the letter A. If so, how?This is for a product dimension that is sorted by sku number. Therefore the aliases are not sorted. Just trying to make it easier to scroll and make a choice.Is another way better? I am trying to use the "AddItem" method.Thanks!

    Hi Cletis,You can query the VB API using the EsbOtlQueryMembers function to get member that start with a specified member.. You will do an ESB_WILDSEARCH query type and will specify the string to search for in the pszString1 field of the ESB_PREDICATE_T argument to the function.Alternatively (or additionally), download the free source code for the EssQuery component that we give away on our website (www.appliedolap.com - technology downloads section). You should be able to use this code directly in your Excel code.. Note you may need to change the essbase api declarations to fit your version of Essbase (a pain I know.. This is the reason we created a entire web-service-based API for our ActiveOLAP product and eliminated the need for the Essbase client).Good Luck.. It was good seeing last week at the Nashville User Group meeting.TimTim TowApplied OLAP, Inc

  • Change combo box selection dynamically?

    I would like to have a combo box change its selection dynamically according to what is selected in another selector.  As far as I can tell from reading the Help, this feature is available for List Boxes, List Views and List Builders only ("The Dynamic Selected Item functionality is available in list-based selectors") and based on the wording I assume that it is currently unavailable for other components.  Is this true?  If so I would like to formally request that other selectors - particularly combo boxes - be included.
    The use case for me is this: After the user has already inputted information and digested some of the output, they eventually reach a section of the project that appears only under certain conditions.  This area is about 800 pixels to the right of the original combo box in the inputs area, and so in order to quickly change that selection they would have to go look for the original selector, which could easily discourage them from browsing that particular selection.  Hopefully this makes sense.
    It would also be great to hear back that this kind of feature request can actually be made in this way.  I've submitted a few similar requests in the past and did not see an acknowledgment, and so I am still unclear as to whether or not feature requests are even possible.
    (Edit: I thought about creating duplicate overlapping instances of the combo boxes in question and, using dynamic visibility, control which appears according to the current selection.  But this is only suitable for smaller lists).

    >
    Alan McClean wrote:
    > To get around it I shuffled my selection list dynamically, so that the one I wanted appeared at the correct place. I did this using the source data component and some Excel logic. However, it is buggy and a lot of work.
    Thanks, Alan.  I am currently working on a similar solution.  Seems to be the best for my situation, but it is far from elegant.
    >
    Charles Davies wrote:
    > Just a thought, would the Filter component work for you?
    The Filter component requires that the underlying Excel data be structured in a pretty specific way.  As far as I can tell, I would probably have to rip apart my XLS and redesign it in order to make use of that component.  Perhaps in a future generation I'll give it a go, but I've already gone through too many redesigns this time around.

  • Response to mouse click by combo box list and underlying clickable label

    Hello,
    we developed a label responding to a mouse click by opening and thereby displaying an associated help text. The label extends a project specific hierarchy of labels and thus implements MouseListener, of course. Now we encountered a strange problem: It occurs when a combo box is placed above such a label in a panel. By clicking the combo box a selective list drops down and covers the label. As soon as a mouse click is performed on a list item directly covering (i.e., right in front of) the clickable label not only this item is selected but the help screen associated with the underlying label is displayed, too. So the mouse click is processed twice: as proposed by the combo box and unwantedly by the label. This behaviour could not be reproduced on other components being placed below a combobox. So the label itself seems to be the cause but we cannot imagine what could exactly be the reason for this double reaction. Perhaps anyone heard of something like that?
    We are currently working with IBM Visual Age for Java 2.0 (Java version 1.1.8 with the according Swing version). The clickable label reflectively calls methods of a model to determine whether help is available and if so later on to open this help text.
    Any help is appreciated!
    Danilo

    Thank you for your response. I tried both to check the focus and to consume the event. But I had to learn that labels are not able to catch the focus. I also was not able to consume an appropriate event of the combobox. So I finally solved the problem by extending JButton and implementing ActionListener. Thus my labels are actually buttons but I changed their appearance and behaviour so one cannot distinguish them from labels.

  • Programmatically update Combo box won't update its Local variable

    Hello all,
    I followed a tutorial from NI website and programmatically edit items in a combo box. It worked successfully but not for the Local variables. Local variables still retain items that it had before.
    Any suggestions ?
    Thanks !
    Solved!
    Go to Solution.

    You need to programmatically update the value property in order to change what the local variable will return, the value that you will wire doesn't have to match with one of the Strings[] array.
    Perhaps you need to do something like this to update your value to change from "Two" to "Five".

  • Analyzer 6.1 Combo-box list sort

    Does anyone know of an easy way to sort lists in combo-boxes (or check-boxes, etc...)? Thank you for your help.

    You may want to try the following.Make sure:1) you have sourced out anlayzer.sh script2) Use the set command to set the path and ICU_DATA3) Turn On ADM tracingessbase connection issue\unable to connect to essbase from analyzer 6.1Note____To Resolve:1. Verify the Essbase installation\API directories are on the machine.2. Verify the following "strings" have been appended to their correspondingEnvironment Variable for Analyzer and Essbase:(Examples below)For SOLARIS:Variable: STRING:ARBORPATH /opt/olap81PATH $ARBORPATH/bin:$PATHLD_LIBRARY_PATH $ARBORPATH/dlls:$ARBORPATH/bin:$LD_LIBRARY_PATHPATH /opt/hyperion/analyzer/adm/bin/solaris:$PATHLD_LIBRARY_PATH /opt/hyperion/analyzer/adm/bin/solaris:$LD_LIBRARY_PATHICU_DATA /opt/hyperion/analyzer/adm/bin/solaris/HssEssDriver/I had the similar error message and adding the above to the path resolved the issue.Regards,Peter Tupker

  • Combo box list getting widened while selecting

    I have an application , which have combo boxes inside a DIV tag.
    When the length of one the item in the list box is greater the specified length of the combo box, the display of the list gets widened and the combo box widens to the lengthiest items' length and it looks odd.
    I want the options to fit to the length of the combo box specified.

    Could you post a link to a page (actual page or test case) demonstrating the problem?
    How are you constraining the width of the <select> control -- have you tried CSS max-width?

  • Combo Box - List Value Property

    I have a combo box in a form (Forms 10G) which is populated at runtime using values from a parameter table.But when I generate the form it gives a warning message that the list item property has to be filled .
    The combo box should display only the values from the database but it should not have any default values.
    How can I supress the warning message and avoid entering the list values proeprty at design time.
    Thanks in Advance.

    The warning is part of forms functionality, but is just that, a Warning, and the form should compile if not an error exists. Not sure if there's a way to suppress it, and You can simply leave the list with no values in Your design, as You will provide them at runtime. If coding is ok Your list should display the values You extract from the DB

  • Can I disable an item in a combo box list?

    Hi,
    I have a combobox that is holdong a string array for the options. Is it possible to disable individual items within the String array?
    Dave.

    Why don't you create a record group and populate that record group into the list item on runtime?
    -Ammad

  • Display Attribute for Combo Box List of Value

    Hi all,
    I am wondering that if even for JDeveloper 12c we need to keep doing this work around https://blogs.oracle.com/adf/entry/combo_lov_how_to_display in order to display a meaningful attribute?
    Regards

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

Maybe you are looking for

  • Possible to turn off single-click in Bookmark sidebar?

    I appreciate the bookmark sidebar, but I really wish that I could select something in it without automatically loading that location in the browser. Is there a user_pref or some other way to make the bookmark sidebar items only load on a double-click

  • SMS_NOTIFICATION_SERVER process Active Transaction preventing SQL log file backup

    Hello, I have been working on adding a few thousand machines into our SCCM 2012 R2 environment.  Recently after attaching several of these systems there was a spike in activity in the transaction log due to the communication and inventory of these ne

  • First page load issue in JDeveloper10g with R12 OAF

    Hi All, I have installed the JDeveloper 10g with OA Framework R12,when i run the page first time i am getting the following error after making all connections and assigning DBC file to the project. Exception Details. oracle.apps.fnd.framework.OAExcep

  • Bootcamp stuck on Windows

    I just installed Bootcamp and Windows 7. Now I can't boot to the Mac partition. I need help with this.

  • How to view presenter notes while recording slide show?

    Hi, I am a new keynote user. I was wondering if there is a way to view notes/presenter tools while recording the slideshow. Currently when I start recording the slideshow it jumps to the full-screen slideshow view and I am unable to see the notes. Th