<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filtering Data Source</title><link>https://www.infopathdev.com:443/forums/thread/91914.aspx</link><pubDate>Fri, 02 Aug 2013 23:26:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91914</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91914</wfw:commentRss><description>&lt;p&gt;Don&amp;#39;t write code. This is entirely doable using cascading dropdowns and the current() xpath command. All declarative.&lt;/p&gt;</description></item><item><title>Re: Filtering Data Source</title><link>https://www.infopathdev.com:443/forums/thread/91889.aspx</link><pubDate>Fri, 02 Aug 2013 14:07:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91889</guid><dc:creator>rupeshtarwade</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91889</wfw:commentRss><description>I see that MainDataSource.CreateNavigator().SelectSingleNode() has an overload to pass XPathExpression. I tried to search for an example of XPathExpression, but without much success. Will XPathExpression help me to filter the nodes based on filter criteria I pass?

Thanks.</description></item><item><title>Re: Filtering Data Source</title><link>https://www.infopathdev.com:443/forums/thread/91888.aspx</link><pubDate>Fri, 02 Aug 2013 14:02:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91888</guid><dc:creator>rupeshtarwade</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91888.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91888</wfw:commentRss><description>I want to fire the logic on Submit button click instead of having a cascading drop down.</description></item><item><title>Re: Filtering Data Source</title><link>https://www.infopathdev.com:443/forums/thread/91872.aspx</link><pubDate>Fri, 02 Aug 2013 07:14:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91872</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91872</wfw:commentRss><description>&lt;p&gt;Please search this forum for the &amp;quot;current()&amp;quot; command. You&amp;#39;ll need to use it to implement you cascading dropdown.&lt;/p&gt;</description></item><item><title>Filtering Data Source</title><link>https://www.infopathdev.com:443/forums/thread/91839.aspx</link><pubDate>Thu, 01 Aug 2013 14:19:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91839</guid><dc:creator>rupeshtarwade</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91839</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a secondary data connection that receives data from
SharePoint list and I bind this to a Drop-down.&lt;/p&gt;

&lt;p&gt;Data that I have is as below:&lt;/p&gt;

&lt;table&gt;
	&lt;tr&gt;
		&lt;td&gt;
			Country Name
		&lt;/td&gt;
		&lt;td&gt;
			Responsible Person
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			United States
		&lt;/td&gt;
		&lt;td&gt;
			Person 1
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			United States
		&lt;/td&gt;
		&lt;td&gt;
			Person 2
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;		
		&lt;td&gt;
			United States
		&lt;/td&gt;
		&lt;td&gt;
			Person 3
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			China
		&lt;/td&gt;
		&lt;td&gt;
			Person 4
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			China
		&lt;/td&gt;
		&lt;td&gt;
			Person 5
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			Belgium
		&lt;/td&gt;
		&lt;td&gt;
			Person 6
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt;
			Spain
		&lt;/td&gt;
		&lt;td&gt;
			Person 7
		&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;


&lt;p&gt;I show distinct values in the drop-down and this data connection
is queried when form is loaded.&lt;/p&gt;

&lt;p&gt;I want to filter the data source such that it returns the
Responsible person based on value selected in the drop-down. I was able to
achieve this for single value using Filter data on drop down change in InfoPath
rules, but I am not able to find a way to get this done for multiple values.&lt;/p&gt;

&lt;p&gt;For e.g. If the user selects United States, I want to have
Person 1, Person 2 and Person 3 values.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;RT.&lt;/p&gt;
&lt;/div&gt;</description></item></channel></rss>