ArrayCollection all items in string

I'm trying to find all vehicles that have a string of accessories.
I have a comma sep string of optioncodes that represent selectedItems from an options List
optionsString:String = leather,stripes, ...
I have an ArrayCollection called vehicleOptions that contains a list of vehicle options one row per option
VIN1,optioncode
VIN1,optioncode
VIN2,optioncode
VIN2,optioncode
VIN3,optioncode
I need to retrieve all vehicles (VINs) that have, not one, but ALL of the optioncodes contained in the selected optioncodes string. 
Any recommendations on how to do this?
Once I have a list of VINs, this will allow me to filter down another List of vehicles on the lot by only the vehicles that have ALL the selected options.
Thanks!
Don

Thanks Alex.
indexOf should be fine for checking if one option exists.  I was just struggling with how to track/store only vehicles that  have ALL the items in the option string, not just one.
I'm thinking a VIN array to store only the VINs that have all the options.  And basically removing the VIN if one of them is not found.  If all of the options are found, keep it.  Not sure if that will work.  I'm planned to try this today.
Don

Similar Messages

  • Ring Item text string too long to display all - use ellipses ?

    The width of my Ring control is not wide enough to display all characters in the Item text string.  LabVIEW simply truncates the text with no indication that additional text is present.  Is there a way to display an ellipses in such cases ?  For example :
    "Ring text string that is too long"
    that is now shown as :
    "Ring text string that i"
    could be shown as :
    "Ring text st...too long"

    A couple of suggestions:
    1.) Use property nodes to determine which strings are too long, then concatenate the strings with ellipses.
    2.) Increase the height so the text wraps.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Retrieve all items in a list by caml query then write it to a word file page by page

    Dears,
    Greetings
    I have some code which will retrieve all items of a list with caml query.
    Now i want to generate a word file with all these retrieved data. I am using foreach here to get all the items in a SPListItemCollection. Now my question is how i can write all the retrieved items inside the word file?
    see the below code which is writing only the last row item of the SPListItemCollection inside word file. I want to write all the retrieved rows inside this word file.
    SPQuery qry = new SPQuery();
    qry.Query = "<Where><Eq><FieldRef Name='Department' /><Value Type='Text'>HR DEPARTMENT</Value></Eq></Where>";
    SPListItemCollection listItems = KPILIst.GetItems(qry);
    foreach (SPListItem item in listItems)
    lblBadgeNo.Text = item["Badge No"].ToString();
    lblName.Text = item["Name"].ToString();
    lblPosition.Text = item["Position"].ToString();
    lblDept.Text = item["Department"].ToString();
    lblHireDate.Text = item["Hire Date"].ToString();
    lblGrade.Text = item["Grade"].ToString();
    lblCurStatus.Text = item["Status"].ToString();
    string FinalOut = "";
    FinalOut = "<table cellpadding=0 cellspacing=0><tr><td style='height:30px;'></td></tr><tr><td style='height:22px;'></td></tr>";
    FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblBadgeNo.Text + "</td></tr>";
    FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblName.Text + "</td></tr>";
    FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblDept.Text + "</td></tr>";
    FinalOut = FinalOut + "<tr><td style='text-align:justify;font-size:22px;'>" + lblHireDate.Text + "</td></tr>";
    FinalOut = FinalOut + "</table>";
    System.Text.StringBuilder strBody = new System.Text.StringBuilder("");
    strBody.Append("<html " + "xmlns:o='urn:schemas-microsoft-com:office:office' " + "xmlns:w='urn:schemas-microsoft-com:office:word'" + "xmlns='http://www.w3.org/TR/REC-html40'>" + "<head><title>EPCCO : HR Comapny Letter</title>");
    strBody.Append("<!--[if gte mso 9]>" + "<xml>" + "<w:WordDocument>" + "<w:View>Print</w:View>" + "<w:Zoom>90</w:Zoom>" + "<w:DoNotOptimizeForBrowser/>" + "</w:WordDocument>" + "</xml>" + "<![endif]-->");
    strBody.Append("<style>" + "<!-- /* Style Definitions */" + "@page Section1" + " {size:8.5in 11.0in; " + " margin:1.0in 1.25in 1.0in 1.25in ; " + " mso-header-margin:.5in; " + " mso-footer-margin:.5in; mso-paper-source:0;}" + " div.Section1" + " {page:Section1;}" + "-->" + "</style></head>");
    strBody.Append("<body dir=rtl lang=EN-US style='tab-interval:.15in'>" + "<div class=Section1>" + FinalOut.ToString() + "</div></body></html>");
    Response.AppendHeader("Content-Type", "application/msword");
    Response.AppendHeader("Content-disposition", "attachment; filename=Eval_" + lblBadgeNo.Text + ".doc");
    Response.Write(strBody);
    Regards
    Shaji
    I am new to SharePoint

    Hello,
    you can try with OpenXML SDK to create word file. I found one link for your reference:
    http://sharepointplace.blogspot.in/2009/12/programmatically-creating-word.html
    Another way is , use Microsoft Word Object Library.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/5b82c0b5-ecaf-40f2-a68a-c7c17c85414f/create-word-documents-by-c?forum=csharpgeneral
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Pie Chart select event fires all items instead of selected

    Hi,
    I would like to fire an event from the select on a particular element in a pie chart.
    The Flash Debugger shows that the select is sending all items to the data service. I only want to send the selected item to the data service
    I am using SP8.
    Any suggestions.
    Thanks.
    Dick
    --- Debug Logger ---
    21:  [AAD4] schedulePlan(SELECT)
    20:  [AAD4] schedulePlan(FORM5_SELECT)
    19:  [AAD4] raiseEvent(FORM5, SELECT)
    18:  [AAD4] Number of rows in Response is: undefined
    17:  [AAD4] Threshold number of rows is:
    16:  [AAD4] receiveADC4()
    15:  [AAD4] schedulePlan(SELECT)
    14:  [AAD4] executeNext(shift plansQueue - length:0)
    13:  [AAD4] executeNext([STEP10])
    12:  [AAD4] Sent request: <Request type="executeFunction" function="getBorrowerByName_R" system="BorrowerFinal2" systemType="WebServicesFactory" manageConnection="N" encode="Y" commit="N" convert="N" dsmid="Administrator:com.myComp.myProduct.4.Digital_dashboard.par:1166609751870"><Input name="INPUT" shape="OBJ" appName="INPUT" ><Meta><field name="arg0" appName="arg0" type="string"/></Meta><Row arg0="Hirsch"/><Row arg0="Boston"/><Row arg0="New York"/><Row arg0="Macy's"/><Row arg0="Sears"/><Row arg0="Hedges"/></Input><Output name="Response" appName="OUTPUT___sp___Response" shape="OBJ" capacity="0"></Output><Output name="RETURN" shape="ROW" capacity="1"/></Request>
    11:  [AAD4] checkStep([STEP10])
    10:  [AAD4] [PLAN17] Invoke ADC4
    9:  [AAD4] executeNext([STEP3])
    8:  [AAD4] checkStep([STEP3])
    7:  [AAD4] [PLAN17] Map CHART2 -> ADC4.INPUT
    6:  [AAD4] executeNext([STEP11])
    5:  [AAD4] [PLAN17] Reset ADC4
    4:  [AAD4] executeNext([STEPundefined])
    3:  [AAD4] schedulePlan(CHART2_SELECT)
    2:  [AAD4] Engine fire infoset change event, notify to: GRID6
    1:  [AAD4] raiseEvent(CHART2, SELECT)

    Hi Marcel,
    I am surprised that you got this to work.  How did you configure your pie chart?
    >You have to assign an event to the data mapping between the chart and the data provider (write select for the event name).
    I did this (look at the Flash debuggerinfo  in the initial post) but this didn't help.  Can you post the Flash debugger info from your pie chart?
    Thanks.
    Dick

  • List not displaying all items

    I have several lists that are dynamically populated with data
    depending on what they selected in the previous list. So the user
    clicks on the first list and the database is queried and the
    results eventually become the dataprovider for the second list and
    so on for the rest of the lists. I have this working, but there are
    some items that are not displayed properly. I have blank spaces in
    my lists. If i debug and select one of the empty spaces and look at
    the selectedItem I can see what is supposed to be in the list, and
    if i restore the size of my window then maximize it all items are
    displayed properly. I am thinking that i need to redraw my list at
    some point, but I am not sure how to do that. Does anyone have any
    ideas? Thank you in advance, Michael

    I'm having very similar problems with List as well. I assign
    an ArrayCollection as the dataprovider and some of the labels show
    up and some don't. As I scroll up and down the list different rows
    will disappear and re-appear. When I debug the data is all there.
    I've run into the same problem using other people's code as
    well.
    Seems like some sort of redraw problem, but this doesn't make
    sense to me and I don't know what to do to fix it.

  • How to get all items under a parent item in a tree control

    Hello,
    I have 2 questions regarding a tree control:
    1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
    2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
    Any ideas?
    Attachments:
    Tree example.vi ‏6 KB

    Mentos wrote:
    1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
     Did you try a search? There's no direct way of doing this. You have to navigate the tree and build up an array. You can find an example here: http://forums.ni.com/t5/LabVIEW/get-all-children-o​f-a-parent-in-tree/td-p/729548
    2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
    No. (It's called ActiveCell, not ActiveCells) Presumably you are trying to perform an operation on multiple items. Unfortunately, you need to use a loop. You should defer panel updates if you're doing this a lot.

  • Cannot secure delete items from trash: 180 items (pictures, files, folders) remain even if I check "remove all items"

    I cannot secure delete items from trash: 180 items (pictures, files, folders) remain even if I check "remove all items".  Macbook Pro, 10.6.8

    Maybe the items are locked.
    Mac OS X 10.6 Help: Shortcuts for working with items in the Finder
    Shortcuts for working with items in the Finder Command (⌘)-Shift-DeleteEmpty the Trash without any warning or when it contains locked filesCommand (⌘)-Shift-Option-Delete
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/cdb_cpmvfky.html

  • PURCHASE ORDER STATUS :When Deleting ALL ITEMS.

    Hi experts,
    I need  to make purchase order status stay  " Release Compleated " when deleting all items.
    Anyone Know How to do it?
    Or anyone Know how to use BAPI_PO_CHANGE in BAdI : ME_PROCESS_PO_CUST 
    In my project , I use Release Strategy of purchase orders, and there is a case of deleting all items.
    In this situation, purchase order status returns to "Active " and release strategy tab disappears.
    This is our problem.
    I need to make purchase order status stay  " Release Compleated " and prevent  release strategy tab disappearing.
    I tried to update the fields EREKZ(final invoice) and ELIKZ(delivery completed) in
    BAdI : ME_PROCESS_PO_CUST  Method : PROCESS_ITEM using BAPI_PO_CHANGE according to SAP Note 456691.
    But BAPI_PO_CHANGE couldn't update EREKZ because of our customize , and I couldn't find how to use
    BAPI_PO_CHANGE in the BAdI.
    Anyone know solutions to solve this problem?
    Thanks a lot.
    Regards,
    TKD

    Hi,
    please review the following information in SAP Note No. 456691 as
    copied below:
    18. Question:
    When are the header conditions updated if a purchase order item is
    deleted?
    Answer:
    If a purchase order item is deleted, the item is marked as 'statistical'
    (field EKPO-STAPO = X) and the change is reflected in the header
    conditions.
    However, if for the item the final invoice indicator(EKPO-EREKZ) or the
    inward delivery completed indicator (EKPO-ELIKZ) is set, the item is not
    marked as 'statistical' (EKPO-STAPO is not set) and thus the header
    conditions are not updated.
    I hope this helps you
    BR
    Nadia Orlandi

  • Open,cleared,all items

    hi in SD related reports i was asked to create a new development based on fbl5n and the selection screen shud remain the same, in that way there are many options for status like,open item, cleared item,all items and type like ,normal,g/l ,noted,parked,vendor
    how do i code and validate for all these options whn i tried to debugg am not able to get thru their logic and all can anyone help me out in solving ths
    wat are fields tht i need to check for validating these options

    Hi,
    FBl5N is the Customer Line Items Display.
    OPEN ITEMS means the Billed/Invoice Amounts that are pending from Customers, i.e which we have to receive from Customers. BSID table will hold this data.
    For every Billing Documnet created(VBRK/VBRP-VBELN) there will be an accounting document created in BSID/BSAD tables.
    BSAD is the CLOSED ITEMS data means the AMOUNTS received from that customer.
    OPEN ITEMS data means fetching data from BSID table Only
    CLOSED ITEMS data means data fetching from BSAD only. All Items means from both the tables.
    If you need further clarification you are welcome.
    Regards,
    Anji

  • G/L A/C OUTSTANDING SHOWING CLEARED IN ALL ITEMS ON SAME DATE

    Dear Expert
    G/L A/C outstanding documents are showing cleared transactions in all items category
    using the same date in FBL1N.
    To illustrate in detail when we click on the radio button with
    open item with date 17.11.2009 i  m getting certain uncleared
    documents, now when I am using the radio button with all items with
    same date i m getting all those docs which were uncleared showing
    cleared.While in the database documents are showing in BSAK table only.
    What are the causes for the same .
    Thanks - Viral

    The items that you are questioning most likely were cleared after 17.11.2009.  When you run FBL1N for open items with key date 17.11.2009, SAP will show you all items that were open as of that date - even if the items have since been cleared.  When you run FBL1N for all items, their clearing status is displayed as of the current date.  For example, if an item was cleared on 18.11.2009, then it was open as of 17.11.2009, but is cleared as of today.
    Regards,
    Shannon

  • Dunning - Print all items

    Hi,
    I have set in SPRO for dunning:
    dunning level      print all items
    1                          
    2                           X
    3                           X
    4                           X
    When I run transaction F150, I have 1 item in level1 and 3 items in level2, no exist another open items.
    I use form created in smartforms (copy from F150_DUNN_SF)
    When I print form for level2, I have in form only 3 items. But they would have to be 4 items, I think when I check "Print all items".
    I tried it also F150_DUNN_SF - and some result.
    Kindly let me know why don't print 4 items?
    Regards, Jaroslav

    Hi ramanuje
    I don't understand your answer.
    I have form Z_F150_DUNN_SF (copy form F150_DUNN_SF). Have I check write in its?
    Where? In initialization? In initialization I have CALL FUNCTION 'GET_SF_DUNN_DATA' that return 3 items. After that follows:
    IF sy-subrc <> 0.
       SY-MSGID = 'FM'.
       SY-MSGTY = 'E'.
       SY-MSGNO = 461.
       raise others.
    ENDIF.
    h_t040a-text1 = space.
    show_interest = space.
    loop at th_mhnd into mhnd where xzins = ' '.
      show_interest = 'X'.
      exit.
    endloop.
    with regards, Jaroslav

  • How to delete all items in download folder under bookmark in the shortest time?

    I understand that all downloads from internet and yahoo/google mail are stored in the "Download" folder which I see under bookmark when I want to delete. I think that if the download folder is never emptied, then my mac will slow down. Therefore I want to delete these downloads which I have already seen. How do I delete ALL items in the shortest time? Deleting items, even in groups, takes a long time. Is there a method that I can use so that all items in the folder are deleted in one stroke?
    Thanks.
    Unguja

    Try (first button on toolbar) Organize > Select All (Command + A) to select all items in the right pane in the Library.

  • How to delete all items in the HUB ?

    How to delete all items on shot in the HUB ?

    Hi all,pay attention to the words I've marked in bold in the first answer from the technical support member:  "From the BlackBerry Hub, hold your finger on the date at the top of the list. A side menu will appear. Click on the Garbage Can to delete all messages prior to that date" At first, I also didn't understand how to make it works, but you have to slide until the date is at the top of displayed messages, then you can tap and hold to select all messages preceding that date. 

  • How can i restore all items from my iphone back to my itunes account?

    I recently had to restore all factory settings on my laptop due to a virus so have lost all apps, music, etc. on my itunes account. All items are still on my iphone and thought they would automatically return when syncing, sadly did not happen but have two options........... Apply? or Revert? one will move everythung back to itunes, the other will remove everything from my iphone. Any help would be greatly appreciated.

    PROBLEM SOLVED!!!!!         
                                        To anyone having the same problem right click on the iphone device and go to restore purchased items then follow instructions.

  • How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    Thanks. That solved it. I had my doubts since I wasn't concerned about my lost bookmarks. I was concerned about the broken functionality. In any event, restoring from a backup solved both the functionality and the lost bookmarks. I appreciate the response!

Maybe you are looking for

  • Mail in OS Mavericks HELP!!! Why do some of my emails not send despite the sent sound playing?

    Dear Mac Community I have a MacBook Pro running OS 10.9.1 and everything is fully updated. I use the Mac Mail programme to send and receive Gmail emails as I have done for many years. Recently, I started to notice a worrying problem. Every 10 or 20 e

  • [SOLVED] EDID read invalid with nvidia-313.18

    Hello All, after several months of trouble-free operation, my main system started having issues with detecting my second monitor properly. I am quite sure that this has something to do with the latest nvidia driver (313.18) but since I don't use this

  • Steps to export B2B Project and Source Control.

    Hi, I need steps to export a B2B project for source controlling it and deploying the code to higher environments. Right now the coding is done in DEV , We want to push it to TEST. Thanks for all the help. Regards, Sid.

  • HT201210 Recovery mode.

    I click restore and update, it goes through the setting then at the end my phone is turning off and its failing to restore?

  • ITunes crash on music folder import

    Did an erase & reinstall on my G5. Saved music files (iTunes Music) on external drive. Dragging and dropping that music files folder (iTunes Music) into a newly installed, updated & empty iTunes library tab. Copying of files executes until approx 50%