Load combobox items from file

Hi,
I dont know do I use correct components here, but I have tried to load some dropdown selector's items from file. I have file, which items changed all the time, so I have to load those to user's dropdown selectro every time when program starts. Eny ideas?
A.A
Solved!
Go to Solution.

Use a property node Strings
Strings [] Property
Short Name: Strings[]
Requires: Base Package
Class: ComboBox Properties
Array of the strings from which you can select in the combo box control. Use the Strings And Values [] property to specify custom values for each string.
If you use this property with a combo box control that has custom values, the number of values for the combo box control determines the number of strings you can set using this property. For example, if the combo box control has the values Free, Discount, and Full, you can set only three strings using this property.
If the combo box control has more values than the number of strings you wire to this property, LabVIEW creates strings for any values that do not have corresponding strings. For example, if the combo box control has the values Free, Discount, and Full and you wire the strings Voucher and Coupon to this property, LabVIEW sets the last string to <Full>.
This property is similar to the Edit Items item on the shortcut menu of a combo box control and to the Labels option on the Edit Items page of the Combo Box Properties dialog box.
Omar

Similar Messages

  • WCF Service and Sharepoint Form library : How i can read a access a form libray and query a item from file name and read form xml in WCF service ?

    WCF Service and Sharepoint Form library : How i can read or access a form libray and query a item from file name and read form xml in WCF service ?
    Ahsan Ranjha

    Hi,
    In SharePoint 2013, we can take use of REST API or Client Object Model to access the SharePoint objects like Form Library.
    SharePoint 2013 REST API
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    SharePoint 2013 Client Object Model
    http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
    With the retrieved file, we can then use XmlDocument object to parse it and get the values you want:
    http://weblogs.asp.net/jimjackson/opening-and-reading-an-xml-file-in-a-document-library
    http://stackoverflow.com/questions/1968809/programatically-edit-infopath-form-fields
    Best regards
    Patrick Liang
    TechNet Community Support

  • Bean to load image item from URL?

    Can someone point me to a bean that will allow the loading of an image item from a URL?
    Cheers,
    Gary

    Here is the material:
    <p>
    the screen shot is here : http://sheikyerbouti.developpez.com/forms-pjc-bean/handleimage/getimage.png</p>
    <p>Get the jar file and the form module sample (9.0.2)</p>
    Notice that you could also download the image with the File_Transfert.URL_To_Client() Webutil function then load it with the Client_Read_Image_File() built-in.
    Francois

  • I have problem loading all items from XML with for each

    Hi all,
    I'm low level as3 programmer and I need help whit this code:
    I have gallery XML file:
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>  
    </gallery>
    And:
    var loader: URLLoader = new URLLoader();
         loader.load(new URLRequest("gallery.xml");
    var xml = new XML(evt.target.data);
        for each(var item in xml..item) {
            centralniText.htmlText = item.slika;
    only shows  last item from XML file:
    3.jpg
    I want all. Please help.

    can adding count item in XML help somehow?
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>   
        <last>3</last>
    </gallery>

  • Can't load thumbnail photo from file 'BBThumbs.dat'

    Hi everybody,
    I'm developing an application on BB to take and view photo. My problem is can't load the thumbnail photos from file 'BBThumbs.dat'. I'm using code as below:
    public byte[] getThumb(String fileName) {
    String DB = fileName.substring(0, fileName.lastIndexOf('/'))
    + "/BBThumbs.dat";
    fileName = fileName.substring(fileName.lastIndexOf('/') + 1, fileName
    .length());
    if (thumbsMap == null) {
    thumbsMap = new Hashtable();
    byte b[] = null;
    FileConnection fc = null;
    InputStream in = null;
    try {
    fc = (FileConnection) Connector.open(DB, Connector.READ);
    if (!fc.exists()) {
    return null;
    byte[] temp=new byte[(int)fc.fileSize()];
    in = fc.openInputStream();
    DataInputStream is=new DataInputStream(in);
    // b = getThumbNail(first, thumbsMap, fileName, in);
    is.readFully(temp);
    b=readThumbs(temp, fileName);
    } catch (Exception e) {
    } finally {
    if (fc != null) {
    try {
    fc.close();
    } catch (Exception e) {
    if (in != null) {
    try {
    in.close();
    } catch (Exception e) {
    return b;
    please give my any idea or suggestions. Thanks 

    Try:
    !Section=Dimensions
    'Name;DimensionClass;DimensionAlias;CustomDimensionID
    SKU;Generic;;
    !Members=SKU
    'Name;DataType
    Brand1;Unspecified
    Brand2;Unspecified
    !Hierarchies=SKU
    'Parent;Child;DataStorage
    #root;Brand1;StoreData
    #root;Brand2;StoreData
    Tho I would add MemberValidForPlan#;Plan#Aggregation, where # is a number of your application which this member is valid for or even has a specific aggregation, as well
    example:
    !Hierarchies=SKU
    'Parent;Child;DataStorage;MemberValidForPlan1;MemberValidForPlan2;MemberValidForPlan3;Plan1Aggregation;Plan2Aggregation;Plan3Aggregation;UDA
    #root;Brand1;StoreData;Y;Y;Y;+;+;+;
    #root;Brand2;StoreData;Y;Y;Y;+;+;+;
    Even more as an idea use pipes, maybe.
    But you will need to say something about Aliases as well if this is a planning application.

  • Loading Instrument settings from file

    Hi there
    I am developing a new app that uses quite a few possible instrument configurations and needs to be able to support multiple instruments models. I have written a little GUI that lets users select a config from various settings on different tables. I now want to save this config to a file and maybe read in the settings when they want to edit it again. Can any body suggest and tried and tested formats for doing this. I was going to use configuration files with a section for each instrument type and then keys for model number and GPIB addr but am open to any other suggestions as I need to do this quickly (whats new eh !) and it needs to be scalable.
    Instrument settings will be loaded from file into Globals by each test sequence so that globals can be re-used etc
    Cheers in advance.
    Chris R

    Chris,
    Option 1 - HDF5
    I have found HDF5 the best method for saving configuration data. You can get low-level HDF5 utilities for LabVIEW by searching for sfpFile or HDF5 on the main NI website, or try this link.
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/cb8a7f8090900f6c86256cc700033816?O...
    HDF5 is a binary, hierarchical file format, with a lot of built-in features such as compression and 64-bit file pointers. As such, it is fast, allows for easy backwards compatibility, and you can put anything into it. It also allows circular references (it is actually a directed graph, not a tree), so, for example, you can reference data from configurations and configurations from data. I maintained the NI-SCOPE Soft Front Panel configuration file with this method through many years and configuration changes.
    Now for the bad news. HDF5 is very low level. Expect to take a week to get comfortable with it. HDF5 is not threadsafe, so you must ensure that you never call the DLL from more than one place at once. The posted code uses version 1.4.4 of HDF5, while the latest version is 1.6.3.
    Option 2 - Configuration file VIs
    If your configurations are fairly simple and have no real hierarchy, consider the configuration file VIs found on the file palette. These store your data in a Windows style INI file, so it is easily human readable. They are not as fast as the HDF5 solution, and have only a single layer of hierarchy, but they are written in pure G, so are very portable.
    Good luck. Let us know how you make out.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to insert contract line item from file using any bapi

    Hi gurus,
    Just wanted to ask how can I insert new line item which were created from a file
    when updating/changing contract details.
    The requirement was to create new line item from a file and use those details in updating the contracts.
    What BAPI can I use to address this requirement?
    Thanks!

    Hi Rajvansh Ravi,
    This is for Service Contracts. Sorry for missing this detail.
    Hi Tarangini Katta,
    I have already used BAPI_CONTRACT_CHANGE, and it was good in updating existing line items,
    but it doesn't update the contract when a new line item is created in the file.
    To make a clearer view of the flow (requirement)
    First scenario:
          From the tcode (ME32K or ME33K), we can download contract details into an excel file for a particular service contract.
    Next scenario:
          That same excel file (downloaded) can be enhanced per line item (can also insert new line) and be saved locally.
    Next scenario:
          This same excel file can also be uploaded. And the changes done to the file have to overwrite or rather have to changed the details of the same contract and then will appear/reflect in the tcode.
    With this, if we had a new line item created (inserted) on the file (not change), we can not see the changes when we view the same contract in the tcode. (ME33K)
    Do you have any idea how the insertion from the file can be reflected on the tcode using an existing bapi?
    Hope this was clear enough...
    Thanks and hope to hear something from you soon.

  • Apple TV does not load rented items from iTunes in less than three (3) hours depsite YouTube, Netflix and network being fine.  How can I get Apple to actually provide the iTunes service I am paying for?

    I'm just tired of waiting on this inept device and it's underserved iTunes counterpart being unable to deliver enough bandwidth to load a show within a reasonable amount of time.  I'm a big Apple fan and an equally big critic.  This whole rig is a big FAIL so far, Apple.  There is nothing ON DEMAND about the iTunes Store at this point.  Netflix and YouTube work better on Apple TV than their own iTunes Store!  And, this has been going on for a few years now, unremedied, and is only getting worse with more people buying these devices!  I do not reccommend this device to people like I used to.
    The good news is, that iTunes will give refunds about 85% of the time if I explain my problem the way I have here.  SO, ATTENTION: EVERYONE WITH AN APPLE TV: If you have this same issue with iTunes Store not properly serving your paid content, do not hesitate to ask for your money back.  It's the least they can do for the amount of life wasted waiting for a show to load.  Not to mention, all the disappointments with the kids at bedtime and when my wife and I want to just relax and turn something on.
    Bottom Line: ITUNES IS UNDER-SERVED!!!
    OR
    There is a massive conspiracy by cable and DSL ISPs against Apple taking away TV viewers.  Is it possible the ISPs are somehow limiting or buffering the data packets coming through the port(s) employed by iTunes Store?  Like I say, with me and many others on this forum, the problem lies solely with iTunes Store.  Youtube, Netflix, Podcasts and everything else generally serve up just fine.  The iTunes Store, however, is a consistent failure.  Something that seems unusual for Apple not to address, being so customer-centric and all.
    Please share any links or insights you have here so the faithful might get to the bottom of this incredibly annoying problem. I WANT MY ATV!

    There is a massive conspiracy by cable and DSL ISPs against Apple taking away TV viewers.
    Most networks are overloaded and operating at full capacity.  However, a solution is coming.
    Technology experts are working on a movie storage system where YOU have physical possession of the movie.
    This system stores the movie digitally on an optical disk system that will not be dependent upon a congested, complicated, and fragile network.
    Because all of the data is stored only a few feet from your television, all the bottlenecks are removed.  Performance and reliability are virtually flawless.
    Further, the system will not utilize any form of security codes, authentications, or passwords. Once the optical disc is purchased it can be moved around freely at will, and can even be lent or given to friends and neighbors with zero hassles.

  • Can't bounce, save or select items from "file menu" HELP!!!!!!!!

    Hi Hope there is someone experienced enough to help!!!!
    I am having a major problem with Logic Pro 7 ( 7.1.1) and I mean major.…
    and to be truthful I have posed this question before on here without resolving the issue although I have tried absolutely every suggestion and idea but am afraid that it is absolutely no different, but thank you to all who have tried greatly appreciated.
    Here is the problem...
    About six months ago a suddenly started to experience a weird problem.
    This is the issue,
    After recording something into Logic with a software instrument, incidentally this happens with both Apple and external plug-ins, everything records and seems to be working just fine, that is until I decide to render / bounce / save the track / tracks or indeed try to do anything from the “FILE” menu when I immediately trigger the time wheel to spins for ever forcing me to click the apple icon and select “force quit” that always reads Logic Pro ( not responding )
    I have ran Disk Utility and did not find any problems with both the internal HD and the external and both passed with no problems. Secondly I have removed Logic compliantly ( many times ) from my computer and reinstalled is once again, but yet again with no successes.
    However I do have a niggling question and a curious message when I try to reinstall Logic that rather perplexes me that read something as follows.
    You are choosing to install an earlier version of Logic the the one installed, which seems to be implying that I have not properly or filly removed the older Logic version before reinstalling the so called replacement. I am suspicious that the message my be compering my hard copy of Logic Pro 7 against the updated version that I download as an Apple download but no to sure, anyway I was under the impression that I was remove everything if a scoop Logic into the trash, or is something going on that I don’t know about?
    Anyway can you suggest where the problem is and hopefully how I can resolve the issue.…
    Thank you for you time in reading my problem and I truly hope you can assist me, THANK YOU.
    Dave
    My Computer specification is
    Power Mac G5
    OS X 10.4.8
    Dual 2.3 processor
    Hard drive 400GB
    Memory 2.5 GB
    External sound card and Midi interface - Focusrite saffire- All driver up to date and incidentally the problem is sill their whether Focusrite is plugged in or not.
    Power Mac G5 - Dual 2.3 - Memory 2.5 GB   Mac OS X (10.4.7)   Midi interface -focusrite saffire

    If Jim's suggestion doesn't fix it, then read this
    http://docs.info.apple.com/article.html?artnum=300659
    and remove all the files shown there.
    You are choosing to install an earlier version of Logic the the one installed, which seems to be implying that I have not properly or filly removed the older Logic version before reinstalling the so called replacement.
    That might be the key.
    It might help if you delete all the Logic files from the receipts folder with a version number ≥ than the version number you're trying to install from disks.
    /Library/Receipts/

  • Load "Selected" in a Property Loader test step from file

    Hi,
    The Import/Export tool stores its selected properties in the file �PLPropertyLoader.ini�. Is it possible to use this file to specify which properties a �Property Loader Test Step� should load? How? Then the information about what to export and load dynamically later is stored in the same location and the risk possibilities is reduced to one place.
    Best regards,
    Morten Pedersen
    CIM Industrial Systems A/S
    Denmark

    Morten -
    By default, the Property Loader step type stores its selected property list in the step's property "Step.PropertyList". The Edit Property Loader dialog box has the "Property List Source" expression control that specifies this as its value.
    If you created a Station Globals array property of type "DatabasePropertyMapping", you could specify that the steps use this property. You might have to set to show hidden properties to find the "DatabasePropertyMapping" type in the insert menu. Note that when you do this when you edit the selected list in a step you are editing the selected list stored in the station global array property.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Load OTF font from file

    I've read in several places, that java 6+ supports OTF fonts, yet I can not find, how one can load an OpenType font frm a file.
    There are numerous examples of how to load TTF fonts, by calling
    Font.createFont(Font.TRUETYPE_FONT, fontFile);but none seems to notice the glaringly obvious problem, that the OPENTYPE_FONT font type constant does not exist.
    So... is it possible? How is it possible?

    As it turns out, the OTF fonts load just fine with Font.TRUETYPE_FONT set as the font type.

  • How to save/load JTextPane to/from file?

    One of the simplest questions re Swing.
    How to save a JTextField onto a file?
    And, how to read back it onto a newed JTextPane?
    Yes, I have searched, searched and searched on the net, in vain.

    Assuming he's wanting to do the reasonable thing, I'm trying to do it too.
    linuxoid, I suspect he (and I) are looking for a way to save the contents. After all, a control that you can't get the information out of is pretty useless.
    Styled text is often just a BLOB to the rest of the app. It is in my case, and it probably is in his.
    I'm having the same trouble he is.
    I want to make a JTextPane, let the user edit it, then get some reasonably portable representation of it's current contents that I can serialize. A string representation of XML sounds dandy. Incomprehensible binary is acceptable. A representation in some markup language that I can insert in some other document and have it act like I'm inserting text in the editor would make me more than happy.
    Ideally, what I, and probably he, are looking for is something like
    JTextPane myPainIsGreat = new JTextPane();
    ... life goes on...the user writes poetry and turns the words tacky colors...
    String thisICanDealWith = myPainIsGreat.getStyledTextRepresentation();
    knowing better I'd settle for
    myPainIsGreat.writeStyled(someWriter)
    sadly, JTextPane's write just returns unstyled text

  • ComboBox Item How to remove repeating items that came from an entity of a .dbf database

    Hi all,
    Can somebody help me? What  I want to happen is create a ComboBox Item from a .dbf database, the PMXMON contains each product's monthly data. Here's a screenshot of the output:
    Is there a way to remove repeating items without changing the database contents?
    I have this code:
    Private Sub frmYearMonth_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim conn As New System.Data.Odbc.OdbcConnection("Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\;Exclusive=No")
    conn.Open()
    Dim strQuery As String = "SELECT * FROM CSHPMXP1"
    Dim adapter As New System.Data.Odbc.OdbcDataAdapter(strQuery, conn)
    Dim ds As New System.Data.DataSet()
    adapter.Fill(ds, "PMXMON")
    With ComboBox1
    .DataSource = ds.Tables("PMXMON")
    .DisplayMember = "PMXMON"
    .ValueMember = "PMXMON"
    .SelectedIndex = 0
    .Text = "--YYYYmm--"
    End With
    End Sub
    Thanks :)
    Geee

    You can use Distinct keyword to return unique records from your DB.
    On the side  I'm not seeing any informative value in your Comobox, if you trying to show product monthly data.
    SELECT Distinct PMXMON
    FROM CSHPMXP1
    Fouad Roumieh

  • Is it possible to load or import 1 journal from file?

    Hi to all,
    We are searching how to load or import from and excel file some journals into the journal table of SAP BPC. As we have seen it is possible to load all the table but not only to add one journal to the table.
    Anybody knows if it is possible to load 1 journal from file into SAP BPC and add it to the table of journals?
    in a standard way or using logic??
    Thanks a lot!!!!

    I don't think that there is a method available to ONLY add 1 Journal record, since the sequence of Journals is an Autogenerated key.  The best way would be to simply add the Journal, so that the appropriate values are logged and tracked accordingly.  The table may be loaded, since the "whole" table has a defined key for the sequence of Journal entered transactions.
    Hope this helps.

  • Can I dynamically load html from file, but do not stuck the UI

    I load my html from files.
    Use JEditorPane to setContentType("text/html"),
    use JEditorPane.read method to dynamically load html from file,
    the jeditorpane is add into a jdialog,
    when my application showing the dialog, the dialog was stuck,
    user can not click other UI component, I think it is not look dynamically
    So any other suggestion?
    You are appreciated.
    Thanks in advanced.

       yourDialog.setModal(false);

Maybe you are looking for

  • Proposal has been sheduled, job was not released

    Dear Fi Experts, In F110- Automatic payment process, while creating proposal the system throwing error Proposal has been shedulded 03.03.11 10:06:27 Job was not released Parameters maintained in the prosal is correct, payment method, vendor balance 

  • How to configure ASM of 11gR2 RAC on Solaris 10

    Hi all, I have the first time to install the RAC on Solaris 10. I have stuck on the ASM disk group step in the Grid Infrastructure. Our Configuration 2 Sun Server in Solaris 10 with same configure (which we are not using shared drive) 250GB Local Har

  • Problem in creating web serivce proxy

    Please let me know how to create web serivce proxy? web service has the parameter of ArrayList<Attachment> . The Attachment is custom class. when i creating proxy it creates Arraylist of XML type @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name =

  • Icon previews - mp4 files

    Leopard can show icon previews for mp4 files now. But most of my mp4 files start off with a few frames of blank screen - so my icons (when I choose to display them) are just an ugly little black square. Anyone know if you can specify a frame of the m

  • Powerbook  won't charge OR run on Good Batteries despite PRAM & PMU resets

    Hi All, I own 4 Macs including 2 G4 1,67ghz 15" Powerbooks. I can't get one of the units to CHARGE or run OFF GOOD batteries.(Batteries charge fine on the other unit). I have tried the following: 1) PMU and PRAM NVRAM resets (Open Firmware) 2) Used t