Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

ArrayCollection all items in string

$
0
0

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


Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>