<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Filtering a DataSet from Code behind</title><link>http://blogs.msdn.com/epblog/archive/2008/11/17/filtering-a-dataset-from-code-behind.aspx</link><description>Enterprise portal allows filtering the list pages using the Filter control available on the EP Grid. The Filter control provides a UI to select the field, criteria and the values you want to filter the grid. It is also possible to add multiple conditions.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Filtering a DataSet from Code behind | Tmao Coders</title><link>http://blogs.msdn.com/epblog/archive/2008/11/17/filtering-a-dataset-from-code-behind.aspx#9113475</link><pubDate>Tue, 18 Nov 2008 01:55:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9113475</guid><dc:creator>Filtering a DataSet from Code behind | Tmao Coders</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.tmao.info/filtering-a-dataset-from-code-behind/"&gt;http://www.tmao.info/filtering-a-dataset-from-code-behind/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Filtering a DataSet from Code behind</title><link>http://blogs.msdn.com/epblog/archive/2008/11/17/filtering-a-dataset-from-code-behind.aspx#9117304</link><pubDate>Tue, 18 Nov 2008 10:40:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9117304</guid><dc:creator>Microsoft Dynamics AX Enterprise Portal Team Blog</dc:creator><description>&lt;p&gt;Enterprise portal allows filtering the list pages using the Filter control available on the EP Grid.&lt;/p&gt;
</description></item><item><title>re: Filtering a DataSet from Code behind</title><link>http://blogs.msdn.com/epblog/archive/2008/11/17/filtering-a-dataset-from-code-behind.aspx#9859666</link><pubDate>Fri, 07 Aug 2009 02:01:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9859666</guid><dc:creator>AlanFlanders</dc:creator><description>&lt;p&gt;This is really great stuff, but can't get it to work on an AxLookup. &amp;nbsp;This code doesn't end up doing anything, as in the filter does not show up in the lookup popup window. &amp;nbsp;I've debugged and everything appears to be fine but it just won't show the filter in the lookup.&lt;/p&gt;
&lt;p&gt;Alan&lt;/p&gt;
&lt;p&gt;void a_Lookup(object sender, AxLookupEventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// The underlying control in this case is the lookup control&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;AxLookup lookup = e.LookupControl;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// Get the edit value of the cell&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;String lookupString = tDesc.Text;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;DataSetView dsv = lookup.LookupDataSet.DataSetViews[0];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Microsoft.Dynamics.Framework.Data.Ax.filterObject flt = new filterObject();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;flt.name = &amp;quot;DVCAXLookupBoundFieldCustomFilter&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Microsoft.Dynamics.Framework.Data.Ax.conditionType myConditionType1 = new conditionType();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;myConditionType1.@operator = Microsoft.Dynamics.Framework.Data.Ax.operatorType.startswith;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;myConditionType1.status = Microsoft.Dynamics.Framework.Data.Ax.conditionStatus.open;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;myConditionType1.value = lookupString;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;myConditionType1.attribute = DataFieldLookUpDesc;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;flt.conditionCollection.Add(myConditionType1);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;dsv.UserFilter.Add(flt);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item></channel></rss>