I am trying to create a unique list of contact from an XMLList containing:
%26lt;strcnt%26gt;
?%26lt;cym%26gt;200808%26lt;/cym%26gt;
?%26lt;concept%26gt;XXXX%26lt;/concept%26gt;
?%26lt;brand/%26gt;
?%26lt;max%26gt;12%26lt;/max%26gt;
?%26lt;min%26gt;12%26lt;/min%26gt;
?%26lt;start%26gt;12%26lt;/start%26gt;
?%26lt;end%26gt;12%26lt;/end%26gt;
%26lt;/strcnt%26gt;
%26lt;strcnt%26gt;
?%26lt;cym%26gt;200809%26lt;/cym%26gt;
?%26lt;concept%26gt;XXXX%26lt;/concept%26gt;
?%26lt;brand/%26gt;
?%26lt;max%26gt;12%26lt;/max%26gt;
?%26lt;min%26gt;12%26lt;/min%26gt;
?%26lt;start%26gt;12%26lt;/start%26gt;
?%26lt;end%26gt;12%26lt;/end%26gt;
%26lt;/strcnt%26gt;
%26lt;strcnt%26gt;
?%26lt;cym%26gt;200810%26lt;/cym%26gt;
?%26lt;concept%26gt;XXXX%26lt;/concept%26gt;
?%26lt;brand/%26gt;
?%26lt;max%26gt;12%26lt;/max%26gt;
?%26lt;min%26gt;13%26lt;/min%26gt;
?%26lt;start%26gt;12%26lt;/start%26gt;
?%26lt;end%26gt;13%26lt;/end%26gt;
%26lt;/strcnt%26gt;
%26lt;strcnt%26gt;
?%26lt;cym%26gt;200811%26lt;/cym%26gt;
?%26lt;concept%26gt;XXXX%26lt;/concept%26gt;
?%26lt;brand/%26gt;
?%26lt;max%26gt;13%26lt;/max%26gt;
?%26lt;min%26gt;13%26lt;/min%26gt;
?%26lt;start%26gt;13%26lt;/start%26gt;
?%26lt;end%26gt;13%26lt;/end%26gt;
%26lt;/strcnt%26gt;
When I try to get a list of concepts that is just an arrayCollection of
XXXX
YYYY
ZZZZ
to put into a drop down box for drill down abilities.
Here is my last attempt to accomplish this:
listtest = countsInfo.strcnt.(brand ==
'''') as XMLList;?// countsInfo is what is comming from the webservice
with addUniqueValue as:
private function
addUniqueValue(value:Object, list:XMLList):XMLList
{
if (!list.contains(value))
{
list += value;
}
return list;
What am I doing wrong?
Thank you in advance for any help.
Lochdonan
Unique XMLListsorry... that should read unique list of *concepts*....
No comments:
Post a Comment