<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28670.aspx</link><pubDate>Fri, 09 May 2008 23:13:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28670</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28670.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28670</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s great to hear! So glad you got it working!&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28641.aspx</link><pubDate>Thu, 08 May 2008 23:53:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28641</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28641</wfw:commentRss><description>&lt;p&gt;Hi Greg&lt;/p&gt;
&lt;p&gt;I took the plunge and edited the manifest.xsf file and my filtering works perfectly!&amp;nbsp; Thank you so much!&lt;/p&gt;
&lt;p&gt;Regards - Phil&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28634.aspx</link><pubDate>Thu, 08 May 2008 23:28:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28634</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28634</wfw:commentRss><description>&lt;p&gt;Awesome! Glad its working for you now! Keep up the good work!&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28609.aspx</link><pubDate>Thu, 08 May 2008 12:26:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28609</guid><dc:creator>Ved.blogs</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28609</wfw:commentRss><description>&lt;p&gt;Thanks for the reply Greg!&lt;/p&gt;
&lt;p&gt;Actually I had done the same thing, you have mentioned. But did not connect the dcCity to Primary data source State. Now after connecting it,&amp;nbsp;it works perfectly. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks a lot.&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28595.aspx</link><pubDate>Wed, 07 May 2008 23:30:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28595</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28595</wfw:commentRss><description>&lt;p&gt;Ved, your code doesn&amp;#39;t really do much. You could set both connections to query on load, rather than on change, and you&amp;#39;d get the same effect without the additional wait time after each change. This is because you are not doing anything in your connection to filter your results. And since you mentioned you have more than one pair of these drop-downs in the view, that&amp;#39;s probably the better choice--as filtering the data connection would affect all drop-downs, and not just the one you are currently working on.&lt;/p&gt;
&lt;p&gt;So, with both data connections queried for results, the focus goes to the filter you placed on DropDown2.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s get a few facts straight here first:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;You have 2 data connections, which I will call &amp;quot;dcState&amp;quot; and&amp;nbsp;&amp;quot;dcCity&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You have 2 nodes in your data sourse, which I will call &amp;quot;nState&amp;quot; and &amp;quot;nCity&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You have 2 drop-down controls in your view, which I will call&amp;nbsp;&amp;quot;ddState&amp;quot; (bound to node &amp;quot;nState&amp;quot;) and &amp;quot;ddCity&amp;quot; (bound to node &amp;quot;nCity&amp;quot;).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You want to filter the &amp;quot;ddCity&amp;quot; based on the selected value in &amp;quot;ddState&amp;quot; -- which value is stored in node &amp;quot;nState&amp;quot;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;In order to do this, data connection &amp;quot;dcCity&amp;quot; needs to have a State node present in it.&lt;/p&gt;
&lt;p&gt;Then, the fitler you add to control &amp;quot;ddCity&amp;quot; needs to specify that the &amp;quot;dcCity/State&amp;quot; is equal the value stored in node&amp;nbsp;&amp;quot;nState&amp;quot;.&lt;/p&gt;
&lt;p&gt;This is basically stating that you only want to see cities that have an associated state equal to the one selected in the state drop-down.&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28593.aspx</link><pubDate>Wed, 07 May 2008 23:18:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28593</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28593</wfw:commentRss><description>&lt;p&gt;Phil, here&amp;#39;s an article I wrote a while back that shows how to do just this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2004/08/16/Make-a-Filter-Work-Automatically-With-No-User-Interaction.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2004/08/16/Make-a-Filter-Work-Automatically-With-No-User-Interaction.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28572.aspx</link><pubDate>Wed, 07 May 2008 11:28:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28572</guid><dc:creator>Ved.blogs</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28572.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28572</wfw:commentRss><description>&lt;p&gt;Hi, I am also having problem with filters. &lt;/p&gt;
&lt;p&gt;I have created two secondary data connections named as &amp;quot;StateDataCnctn&amp;quot; and &amp;quot;City&amp;quot;. I want to change the cities according to the state selected in first dropdown.I want to do it programtically. So what i have done is:&lt;/p&gt;
&lt;p&gt;1) Created secondary datasources: 1)State and 2)City&lt;/p&gt;
&lt;p&gt;2) Placed two drop down controls one for each State and City at the form.&lt;/p&gt;
&lt;p&gt;3) DropDown1 and DropDown2 properties are: Get values from External Data Source &amp;quot;StateDataCnctn&amp;quot; and &amp;quot;CityDataCnctn&amp;quot; respectively.&amp;nbsp; Moreover, DropDown2 has a filter saying&amp;nbsp;&amp;quot;State =state&amp;quot;&lt;/p&gt;3) Opened the VSTA and on &amp;quot;&lt;font size="2"&gt;FormEvents_Loading&amp;quot;&amp;nbsp; I call &lt;font color="#008080" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#008080" size="2"&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; navGetStateDataCnctn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;StateDataCnctn&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataConnection&lt;/font&gt;&lt;font size="2"&gt; cnctnStateDataCnctn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.DataConnections[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;StateDataCnctn&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnctnStateDataCnctn.Execute();&lt;/p&gt;
&lt;p&gt;4) On changed event of first control State: &lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; State_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator&lt;font size="2"&gt; navGetCityDataCnctn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&lt;font color="#000000"&gt;City&lt;/font&gt;DataCnctn&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataConnection&lt;/font&gt;&lt;font size="2"&gt; cnctnCityDataCnctn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.DataConnections[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&lt;font color="#000000"&gt;City&lt;/font&gt;DataCnctn&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnctnStateDataCnctn.Execute();&lt;/p&gt;
&lt;p&gt;5) When running the code; DropDown1 is getting values properly. But DropDown2 is not getting values. &lt;/p&gt;
&lt;p&gt;6) If we delete the filter from the DropDown2; it gets full list of cities. But does not change as per the State selected from first Dropdown.&lt;/p&gt;
&lt;p&gt;Can somebody please help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;Ved&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28570.aspx</link><pubDate>Wed, 07 May 2008 07:39:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28570</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28570</wfw:commentRss><description>&lt;p&gt;Thanks Greg,&lt;/p&gt;
&lt;p&gt;Can you provide a link to a step-by-step process on how to edit the manifest (including how to access it)?&lt;/p&gt;
&lt;p&gt;Regards - Phil&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28561.aspx</link><pubDate>Tue, 06 May 2008 23:04:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28561</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28561</wfw:commentRss><description>&lt;p&gt;The manifest edit is the only way that I know of to automate this. It makes it so that the filtering occurs immediately and always. That means that when you insert a new row, that new row MUST contain whatever is necessary (usually some field value on the row) to make that new row not hide as soon as it is inserted. This can be done using the default value feature in the repeating table/section properties dialog box.&lt;/p&gt;
&lt;p&gt;Always make a backup copy of your form template before attempting manual edits. Or if you are not comfortable working on your production form, then you can try it out in a new blank test form.&lt;/p&gt;
&lt;p&gt;Good luck. Let me know how it turns out.&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/28528.aspx</link><pubDate>Tue, 06 May 2008 07:33:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28528</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28528.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28528</wfw:commentRss><description>&lt;p&gt;Hi Greg,&lt;/p&gt;
&lt;p&gt;I am convalescing from a ruptured achillies tendon and have managed to spend some in depth time on some infopath projects.&amp;nbsp; I have a form which produces a view with General Journal transaction summaries which vary, based on the&amp;nbsp;nature of both merged and input data input.&amp;nbsp; The problem is, that the transactions are produced subject to&amp;nbsp;views and filters on the same repeating table.&amp;nbsp; The transactions therefore are not correct until the filter is refreshed.&lt;/p&gt;
&lt;p&gt;If the filter cannot be refreshed programmatically, is there a form handling process that will automatically refresh the filters without using the wretched &amp;#39;temperamental&amp;#39; (not very dummy proof) widget at the side of the table.&lt;/p&gt;
&lt;p&gt;I have read your advise on editing the manifest file and it daunts me somewhat.&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/21025.aspx</link><pubDate>Wed, 20 Jun 2007 16:21:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21025</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21025</wfw:commentRss><description>&lt;p&gt;You need to go into the Repeating Table Properties dialog box, Display tab, and select the Show Filter Icon To Indicate Filtered Items check box.&lt;/p&gt;&lt;p&gt;Then, since you followed the previous instructions for removing the filter attributes from the manifest.xsf file (I thought you were using read-only tables) you will need to copy your filters to notepad or something, remove all filters from the table, then add them back. This should place those attributes back into the manifest.xsf file and then everything should work again.&lt;/p&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/20964.aspx</link><pubDate>Tue, 19 Jun 2007 20:07:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20964</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20964.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20964</wfw:commentRss><description>i can&amp;#39;t get the table widget to come up!!!!!&lt;br /&gt;</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/20956.aspx</link><pubDate>Tue, 19 Jun 2007 18:51:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20956</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20956</wfw:commentRss><description>I don&amp;#39;t know of any way to force reapply of the filtes via code. Sorry.</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/20955.aspx</link><pubDate>Tue, 19 Jun 2007 18:50:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20955</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20955</wfw:commentRss><description>In your situation, you have to have the users click the table widget, and choose to reapply the filter manually.</description></item><item><title>Re: regular filter is not working</title><link>https://www.infopathdev.com:443/forums/thread/20887.aspx</link><pubDate>Mon, 18 Jun 2007 15:51:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20887</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=20887</wfw:commentRss><description>&lt;p&gt;Hi Greg,&lt;/p&gt;&lt;p&gt;One more quick question. Do you know how to programmatically re-apply a filter???&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>