That's the biggest problem with filter, it's only on one criteria.
There would be another way that it could be done but I'll have to put my thinking cap on, am just about to commence a class so I'll try and get back to this later in the day.
Andrew
Kay Smoljak wrote:
OK, after another evening hard at it, I have come up with a fresh problem. cool hey :)
I want to filter a recordset in one listbox (events) using multiple values from another listbox (categories). I have it working using single category values, but I'm having trouble with multiple categories. As far as I can tell, the filter function can only accept simple values, so I'm passing it a comma-delimited list like so:
selectedItemsArray = categorySelector_lb.getSelectedItems(); selectedCategoriesList = selectedItemsArray.toString(); rsFilteredEvents = rsEvents.filter(programFilter,selectedCategoriesList);
In ColdFusion, I would loop over the list, do the comparisons, and return the records that matched one of the values in the string. But ActionScript doesn't seem to have any list functions. Any ideas in how I should proceed in my filter function?
Thanks in advance,
-- Andrew Muller Senior Macromedia Certified Instructor - ColdFusion, Flash Certified Advanced Macromedia ColdFusion Developer - CF5, CFMX Certified Macromedia Flash Developer - FL5, FMX
Daemon Internet Consultants [EMAIL PROTECTED] Macromedia Certified Training http://www.daemon.com.au/go/training T: 61 2 9380 4162 F: 61 2 9380 4204 17 Roslyn Gardens Elizabeth Bay NSW 2011 AUSTRALIA
Daemon: Serious Web Development
FarCry, the open source CMS for ColdFusion MX http://farcry.daemon.com.au/
--- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
