Import a column from an excel spreadshee​t, then enable/dis​able boolean controls in a cluster based on imported values

Greetings all. I have an application I've been developing and refining for some time.  Part of it entails an interactive periodic table of elements where the user can select multiple elements to include in a multi-element chemical standard.  The part I'm having difficulty with now is disabling multiple elements within the periodic table.  Specifically, what the scientist wants is to be able to reference an excel inventory that they keep of available on-hand single-element standards.  I need to be able to read in column A of that spreadsheet, build a distinct array of those elements listed (some are listed more than once) and then disable the boolean controls in my periodic table for those elements not in the array (or enable those elements which are in the array, whichever makes themost sense).  This way, the analyst cannot select elements in the periodic table for which thay have no on-hand inventory.  I see how to enable or disable all controls in a boolean cluster, and I see how to enable/disable a single control, but I'm looking for an elegant way to import the excel column, build an array of thsoe values and then enable only those values.  Any help is always appreciated.  Thanks again.

hi
try this
Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Attachments:
Excel column read.vi ‏29 KB

Similar Messages

  • How to import all column heading of excel to oracle 6i forms(no rows).

    hello,
    I am new to oracle forms.
    There are so many links for importing and exporting data from forms to excel and excel to forms.
    But i want to import all column heading of excel to form (no rows). I am using forms 6i.
    please help me for the same.
    Thank You.
    Edited by: sam8682 on Apr 9, 2013 5:48 AM
    Edited by: sam8682 on Apr 9, 2013 5:50 AM

    Reading from any file is always done in a loop through the records. So, just loop only once. That will give you the first record only.
    If you have some code already you can modify it to something like:
    for i in 1..1 loop
    end loop;

  • Read a Column from an Excel file

    Guys,
    Is there a way I can read a specific column from an excel file, use that data to query and select data from a table and then insert the output into another column of that same excel file.
    Please advise! Thanks

    > Is there a way I can read a specific column from an excel file, use that data to query and select data from a
    table and then insert the output into another column of that same excel file.
    Not easily. An Excel file is typically in a proprietary binary file format. Perhaps saved using the new MS Office XML format.. which would be possible to process via Oracle's XDB.
    But assuming it is in a binary format, you need "something else" to read and parse that file for you - like ODBC or DDE or COM/DCOM, etc.
    Oracle supports Heterogeneous Database Services. On a Windows Server, you can create a database link in Oracle that uses an ODBC driver to connect to an ODBC data source. There are ODBC drivers for Excel. However, this requires the data in the worksheet to be properly marked as a data table. Or did last time I looked at it about 2 years ago.
    You can also call external "interfaces" from PL/SQL using EXTPROC - such interfaces can be DLLs. Which means you do have access to the Win32 API and application APIs from PL/SQL. This can be used to access the content of an Excel file - DDE for example can quite easily do this (you use it to peek the contents of an Excel grid location), but requires Excel to be running and that spreadsheet to be loaded. DDE can also be used to poke contents (write something back to a cell in a spreadsheet).
    But using Oracle code to use an Excel file as a kind of database file... that IMO does not make a lot of sense. At all.

  • Removing Column from exported excel in ALV

    Hi,
    I have displayed one ALV to user which displays first column for checkbox and second column for image.
    When I export this ALV output to Excel using standard Export button, these two columns also get exported to Excel.
    Is there a way by which I can remove these columns from exported excel.
    Thanks,
    Feroz

    Hi,
    Please try this -
    When you use the settings link to hide the columns, use it and hide the columns that you don't want to export, then try to Export. Check wether these hidden columns are also shown in the Excel.
    Or
    One more thing, In the EXPORT button functionality, try to get the column references of the table and hide those ccolumns programatically and try to export it.
    While showing to user give these columns while export hide these columns by the above way.
    One more thing, when you are using the standard EXPORT button, Your code doesnot trigger. Please check it.
    I don't know wether this will be of any help. Give it a try.
    Regards,
    Lekha.

  • When i try to import my pictures from my camera i get an error saying unreadable files. What do i do to import them?

    When i try to import my pictures from my camera i get an error saying unreadable files. What do i do to import them?

    First launch Image Capture, located in the Applications folder, and see if you can upload the phiotos to a folder on the Desktop.  If you can then import the folder into iPhoto.
    Then reformat the memory card using the camera's format option, take a few test photos and try importing into iPhoto again.
    OT

  • There was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1

    there was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1

    Force Quit the application from the Apple menu.

  • I tried to import my passwords from IE, but when I did what help said it did not have the option to import my passwords

    I found this artical http://support.mozilla.com/en-US/kb/Importing%20favorites%20and%20other%20data%20from%20Internet%20Explorer?s=import+passwords&as=s
    I want to import my passwords from internet explorer, I did what the artical said above but the option to import passwords was missing it only had it only had internet options, browsing history, cookies, and favorites. So how can I import my passwords in firefox4?

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"

  • How to import measurment data from a Excel File to Citadel DataBase?

    A Microsoft Excel File is being created in a PC and I want to include that flie´s data into my citadel Database wich is in another PC.

    I give a example "Importing Spreadsheet Data to the Citadel Database" in the LabVIEW Version 6.1 and LV-DSC 6.1.
    LabVIEW 7.0 with LV-DSC you must in the ini file "DSCEngine.ini"
    set NoShutdownLog=1 and UseServerTimestamps=TRUE.
    kind regards
    amcholger
    Attachments:
    Write_File_to_Citadel_Example.zip ‏139 KB
    Write_File_to_Citadel_VI_Server.zip ‏289 KB

  • Select the name of the column from sheet Excel

    Hi everyone,
    i use vb.net with excel 
    First, i have a button "browse"
    which open a workbook.
    Second ,i  have a button "get
    the names of the sheets" which give me the name of the sheet in a combobox ,then i choose the sheet.
    Then i have an other button " get
    the column names " which give me the name of the columns of the table in a combobox .
    When i select the name of the column a new sheet add named the
    name of the column and which has the data of this column
    what i want is :
     when i select again the same column a messagebox will
    be shown "you have already select it "
    And when i go back to choose another sheet then another column
    will be open without getting any error
    this is the code of the combobox :
    Public Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
    xlWorkSheet.Activate()
    xlApp.Visible = True
    With xlWorkSheet
    Dim key As String = CStr(DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Key)
    Dim value As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Value
    Dim lastrow As Integer = xlWorkSheet.Cells.Rows.End(XlDirection.xlDown).Row
    Dim colletter As String = ColumnIndexToColumnLetter(CInt(key))
    exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
    exWS2.Name = value
    xlWorkSheet.Range("A1:A" & lastrow.ToString).Copy(exWS2.Range("A1"))
    End With
    End Sub
    and if you want to know the code of the button here is :
    Public Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    Dim Excols As New Dictionary(Of Integer, String)
    xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
    xlWorkSheet.Activate()
    If ComboBox2.Items.Count = Nothing Then
    With xlWorkSheet
    Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
    For x As Integer = 2 To LastCol
    Excols.Add(x, xlWorkSheet.Cells(1, x).value.ToString)
    Next
    ComboBox2.DataSource = New BindingSource(Excols, Nothing)
    ComboBox2.ValueMember = "Key"
    ComboBox2.DisplayMember = "Value"
    AddHandler ComboBox2.SelectedIndexChanged, AddressOf ComboBox2_SelectedIndexChanged
    End With
    Else
    MsgBox("Déja Pleine!", CType(MessageBoxIcon.Error, MsgBoxStyle))
    End If
    End Sub
    please help me 

    Hi
    >> when i select again the same column a message box will be shown "you have already select it
    Each time you select a value in the comobox , you could compare
     each cell’s value with the value you just selected in the first row. If  it is matched, then show the message box" you have already select it "
    >>And when i go back to choose another sheet then another column will be open without getting any error
    I am not sure the sentence’s meaning clearly, What do you mean about another column will be open?  what's the error , Can you clarify this more
    clear?
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to import the contacts from excel

    HI,
    I want to import the contacts from MS Excell to IPAD contacts.
    Thanks,
    Karthick

    if your number of emps is not too high, you can try dataload. When performance, volume and repetition kick in, use Oracle hrms api's.

  • Auto Expand Html table when we paster data from Microsoft Excel sheet

    hi,
    I need copied data to my Html table.
    Actual requirement is like that when i copy selected rows with selected columns from Microsoft excel sheet and press "ctlr v" on my jsp page then table on jsp must be auto expand as data in excel sheet.
    Take an example.
    I copy 4 rows with 3 columns from excel sheet.
    I have JSP page with 1 row and 3 columns.
    when i press "ctrl v" on first cell of my jsp table then table should be auto expand to accommodate 4 rows of excel sheet.
    here i have some of the code which is near to this, this code just copy past only one row, but i need multiple rows.
    If need then please refer below code and if possible then give me the solution to auto expand HTML table on JSP
    Code to copy paste cell in to HTML Table
    <form>
    <table>
    <tr>
    <td><input type="text" name="t1_0" onchange="formatCells(this.value,'t1')"></td>
    <td><input type="text" name="t1_1"></td>
    <td><input type="text" name="t1_2"></td>
    <td><input type="text" name="t1_3"></td>
    <td><input type="text" name="t1_4"></td>
    </tr>
    <tr>
    <td><input type="text" name="t2_0" onchange="formatCells(this.value,'t2')"></td>
    <td><input type="text" name="t2_1"></td>
    <td><input type="text" name="t2_2"></td>
    <td><input type="text" name="t2_3"></td>
    <td><input type="text" name="t2_4"></td>
    </tr>
    </table>
    </form>
    <script type="text/javascript">
    function formatCells(xls,group){
    var arrGroup = xls.split(/\t/gi);
    for(var i=0;i<arrGroup.length;i++){
    document.forms[0].elements[group + "_" + i].value = arrGroup;
    </script>
    Thanks
    Chintan Patel

    Hi Ross,
    >> In our testing environment using both Excel 2010 and 2013 this file is imported successfully, so we cannot replicate.
    I suspect it is caused by the difference of web server security settings.
    KB: Error message when you use Web query to a secure Web page (HTTPS://) in Excel: "Unable to open"
    Hope it will help.
    By the way, this forum is mainly for discussing questions about Office Development (VSTO, VBA and Apps for Office .etc.). For Office products feature specific questions, you could consider posting them on
    Office IT Pro forum or Microsoft Office Community.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create a table in SQL Server, Export tables from Microsoft Excel to Microsoft SQL Server, Populate the created table

    Hello team,
    I have a project that I need to do, what is the best approach for each step?
    1- I have to create a table in Microsoft SQL Server.
    2- I have to import data/ tables from Microsoft Excel or Access to Microsoft SQL Server. Should I use Microsoft Visual Studio to move data from Excel or Access?
    3-I should populate the created table with the data from the exported data.
    4-How should I add the second and third imported table to the first table? Should I use union query?
    After I learn these, I will bring up the code to make sure what I do is right.
    Thanks for all,
    Guity
    GGGGGNNNNN

    Hello Naomi,
    I have imported all the tables into SQL Server,
    I created a table:
    CREATE
    TABLE dbo.Orders
    Now I want to populate this table with the values from imported tables, will this code take care of this task?
    INSERT INTO dbo.Orders(OrderId, OrderDate)
    SELECT OrderId, OrderDate
    FROM Sales.Orders
    UNION
    SELECT OrderId, OrderDate
    FROM Sales.Orders1
    Union
    SELECT OrderId, OrderDate
    FROM Sales.Orders2
    If not, what is the code?
    Please advise me.
    GGGGGNNNNN
    GGGGGNNNNN

  • Script to rotate an image in InDesign CS4 from an Excel Spreadsheet

    Hi all,
    Is there a script for InDesign CS4 that reads degrees from an excel spreadsheet and then rotates a specific image by the same amount of degrees that was written in this excel spreadsheet? I would like to create a column in Excel full of rotation degrees and then go to InDesign, run the script for a specific image and the image will rotate automatically.
    If there isn't a script like that already around, can you let me know if it is possible to be done and also if it is possible, can you help me create one please?
    Thank you in advance for your help.
    Lucas

    a script to rotate images... only one at a time and marijan tompa had the answer for that: http://forums.adobe.com/message/2998073
    as for referencing an excel file or txt/csv, i don't know, but perhaps other posters could assist.
    colly

  • Upload Journal Voutures of customer master from the Excel sheet using BAPI

    Hi experts,
    Can U have any sample program so that it can help me for my coding.

    Hi,
    You need write the abap program in the following manner,
    1. Read the data from the excel sheet and then enforce the checks if at all any in the new program.
    2. Fill all the parameters of the BAPI *BAPI_CASHJOURNALDOC_CREATE *.
    3. After the above BAPI call, you need to call another *BAPI_TRANSACTION_COMMIT *.
    4. Once Transaction commit bapi is successfully executed then only you will get the document number.
    Please follow all the above mentioned steps then you can create the Journal Voutures migrated from an excel sheet to SAP successfully.
    Thanks,
    Mahesh.

  • I have used lightroom for years on my PC and just installed it on my new iMac.  I cannot import NEF files from iPhoto or from my Lacie hard drive into Lightroom.  I have tried Lightroom Help but still cannot import NEF files.  What am I doing wrong?

    I have always used Lightroom with a PC and now have installed Lightroom 3.6 on my new iMac.  I cannot import raw (NEF) files from iPhoto (or from my Lacie drive for that matter into Lightroom. I have tried Lightroom Help to no avail. How do I import NEF files from the iMac into Lightroom?

    If they are the same nef files that you were importing into your PC, see if the reason is an error message like the thread above this one. Permissions issue.

Maybe you are looking for

  • Use of global variables like g_cnt_transactions_transferred in the LSMW

    Hi SapAll. when i had a look at the some of the LSMW's whic use IDOC as the object of uploading data into SAP from external Files i have found in the coding under the step "Maintain Field Mapping and Conversion Rules" that they use some of the global

  • Routine help - urgent

    Hi guys, Need help for routine code, i have rquirement currency translation based on currency type  In the cube we having the Amount Key Figure in USD. i want to convert these values based on currency type or company code . ..GBP,JPY,INR,KRW..etc. ca

  • Jeff + Michael 'New Video Tutorial' ?????

    Did I read a while back that Jeff and Michael had (were) producing a new video tutorial concerning LR called something along the lines of 'From Shoot to Print'? Have I got this all wrong, and if not, anyone else heard about it and when/if we can expe

  • I can't see certain pictures on webboard, In place of picture I see text.."Screen shot 2010-12-20 at 10.11.15 PM.jpg"

    In explorer just see red x. People goaded me saying explorer sucks and was the problem. So I downloaded firefox, and I still cant see pictures.

  • Sync Address Book and Calendars

    I have an iPhone, a PC at work that uses an Exchange server, a PC at home that uses Outlook to POP mail from my personal email account, and an iMac at home that also POPs mail from my personal account. My iPhone is set up to get mail from both my wor