<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Filtering an XMLListCollection using the filterFunction property and regular expressions</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Mon, 13 Feb 2012 01:38:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Araya</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-10192</link>
		<dc:creator>David Araya</dc:creator>
		<pubDate>Tue, 22 Nov 2011 17:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-10192</guid>
		<description>Hi Peter, I&#039;m having the same problem as the &quot;other Peter&quot;, I&#039;m getting this error:

&lt;code&gt;TypeError: Error #1006: value is not a function.&lt;/code&gt;

It is dispatched as soon as my HTTPService returns succesfull and executes this code:

&lt;code&gt;xmlList.source = result.children()&lt;/code&gt;

Which dispatches internally in the following order:
at mx.collections::XMLListCollection/set source() &gt; 
at mx.collections::ListCollectionView/set list() &gt; 
at mx.collections::ListCollectionView/http://www.adobe.com/2006/flex/mx/internal::reset() &gt; 
at mx.collections::ListCollectionView/internalRefresh() &gt; 
at views.bkmgr::AddResourcesView/equipFilterFunc()

The filter function is exactly:

&lt;code&gt;
private function equipFilterFunc(item:Object):Boolean
			{
				return item.text().match(new RegExp(&quot;^&quot; + txtin_searchFilter.text, &quot;i&quot;));
			}
&lt;/code&gt;

I&#039;m running FB 4.5.1, thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi Peter, I&#8217;m having the same problem as the &#8220;other Peter&#8221;, I&#8217;m getting this error:</p>
<p><code>TypeError: Error #1006: value is not a function.</code></p>
<p>It is dispatched as soon as my HTTPService returns succesfull and executes this code:</p>
<p><code>xmlList.source = result.children()</code></p>
<p>Which dispatches internally in the following order:<br />
at mx.collections::XMLListCollection/set source() &gt;<br />
at mx.collections::ListCollectionView/set list() &gt;<br />
at mx.collections::ListCollectionView/http://www.adobe.com/2006/flex/mx/internal::reset() &gt;<br />
at mx.collections::ListCollectionView/internalRefresh() &gt;<br />
at views.bkmgr::AddResourcesView/equipFilterFunc()</p>
<p>The filter function is exactly:</p>
<p><code><br />
private function equipFilterFunc(item:Object):Boolean<br />
			{<br />
				return item.text().match(new RegExp("^" + txtin_searchFilter.text, "i"));<br />
			}<br />
</code></p>
<p>I&#8217;m running FB 4.5.1, thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Istvan Szucs</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-8340</link>
		<dc:creator>Istvan Szucs</dc:creator>
		<pubDate>Mon, 20 Sep 2010 07:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-8340</guid>
		<description>If you want to use a variable to specify which column you want to filter on, use [].

E.g.
return item[filterField] == cbFilterL1Select.text;

where filterField is string in which you store the column name.

Thanks,
Istvan</description>
		<content:encoded><![CDATA[<p>If you want to use a variable to specify which column you want to filter on, use [].</p>
<p>E.g.<br />
return item[filterField] == cbFilterL1Select.text;</p>
<p>where filterField is string in which you store the column name.</p>
<p>Thanks,<br />
Istvan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-6907</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 02 Feb 2010 02:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-6907</guid>
		<description>@Rishi,

I haven&#039;t tested the code very much, but this may help get you started; http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/

Peter</description>
		<content:encoded><![CDATA[<p>@Rishi,</p>
<p>I haven&#8217;t tested the code very much, but this may help get you started; <a href="http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/" rel="nofollow">http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rishi</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-6897</link>
		<dc:creator>Rishi</dc:creator>
		<pubDate>Mon, 01 Feb 2010 03:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-6897</guid>
		<description>Hi Peter,

I&#039;m new in Flex development and trying to find some examples where Data grid ( or Advance data grid ) can be filtered based on Start date and End date selection .  I could not able to find something related on your sit e. Can you please provide sample  example .

Thanks,
Rishi</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I&#8217;m new in Flex development and trying to find some examples where Data grid ( or Advance data grid ) can be filtered based on Start date and End date selection .  I could not able to find something related on your sit e. Can you please provide sample  example .</p>
<p>Thanks,<br />
Rishi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snigdha</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-6840</link>
		<dc:creator>Snigdha</dc:creator>
		<pubDate>Mon, 25 Jan 2010 07:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-6840</guid>
		<description>Hey Peter,
You are just superb............you don&#039;t know  how much  you help me in every ways in flex development by posting so many working  examples. They are very much self -explainatory and useful for everyone. Thanks a ton buddy................May god bless you all the happiness in the world...

Cheers...</description>
		<content:encoded><![CDATA[<p>Hey Peter,<br />
You are just superb&#8230;&#8230;&#8230;&#8230;you don&#8217;t know  how much  you help me in every ways in flex development by posting so many working  examples. They are very much self -explainatory and useful for everyone. Thanks a ton buddy&#8230;&#8230;&#8230;&#8230;&#8230;.May god bless you all the happiness in the world&#8230;</p>
<p>Cheers&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: niff</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-4744</link>
		<dc:creator>niff</dc:creator>
		<pubDate>Sun, 26 Jul 2009 14:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-4744</guid>
		<description>Thanks!
Veeeeery helpful:)</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
Veeeeery helpful:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-301</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 05 Jun 2009 03:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-301</guid>
		<description>Peter,

Which version of the Flex SDK are you using?
I just tried on 3.4 and didn&#039;t have any errors.

Peter</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Which version of the Flex SDK are you using?<br />
I just tried on 3.4 and didn&#8217;t have any errors.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-300</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 01 Jun 2009 15:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-300</guid>
		<description>From one Peter to another, thanks. However, I keep getting an error, &quot;TypeError: Error #1006: value is not a function.&quot; I&#039;m not sure why this pops up. I originally tried applying this code to a working filterFunction that matched characters exactly, but when that didn&#039;t work, I recreated an app from scratch, following the example above, but I still get the &quot;...not a function&quot; error. Any clues why this would show up?</description>
		<content:encoded><![CDATA[<p>From one Peter to another, thanks. However, I keep getting an error, &#8220;TypeError: Error #1006: value is not a function.&#8221; I&#8217;m not sure why this pops up. I originally tried applying this code to a working filterFunction that matched characters exactly, but when that didn&#8217;t work, I recreated an app from scratch, following the example above, but I still get the &#8220;&#8230;not a function&#8221; error. Any clues why this would show up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elvis Fernandes</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-305</link>
		<dc:creator>Elvis Fernandes</dc:creator>
		<pubDate>Tue, 23 Dec 2008 16:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-305</guid>
		<description>Great tip!!!! It helped me a LOT!

Thanx!

Elvis Fernandes</description>
		<content:encoded><![CDATA[<p>Great tip!!!! It helped me a LOT!</p>
<p>Thanx!</p>
<p>Elvis Fernandes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/comment-page-1/#comment-303</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 28 Oct 2008 21:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/04/filtering-an-xmllistcollection-using-the-filterfunction-property-and-regular-expressions/#comment-303</guid>
		<description>Voted and subscribed.

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p>Voted and subscribed.</p>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

