<?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: can you prgrammatically filter a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/6230.aspx</link><pubDate>Thu, 02 Sep 2004 19:02:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6230</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6230</wfw:commentRss><description>Your task should be fairly easy and straight forward. What you need to do is set up a field, preferrably in a secondary data source, which is your filter field.&lt;br /&gt;&lt;br /&gt;Let's assume the following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;TaskFilter is the name of your filter field.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;The values 0, 1, 2 represent Overdue, Due and Completed tasks respectively.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Status is the name of the field holding the status of each task.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;btnOverdue, btnDue, btnComplete and btnAll are the IDs for your buttons.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;Here is what you would do to get your buttons working to auto-filter your table.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Set up the filter on your table:&lt;/b&gt;&lt;ol type="1"&gt;&lt;li&gt;Add a filter to your table with the following two conditions:&lt;ul&gt;&lt;li&gt;TaskFilter, Is Blank&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;b&gt;OR&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Status, Is Equal To, TaskFilter&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Clear the Show Filter Icon To Indicate Filtered Items checkbox.&lt;/li&gt;&lt;br /&gt;&lt;/ol id="1"&gt;&lt;b&gt;Create rules for your buttons:&lt;/b&gt;&lt;ol type="1"&gt;&lt;li&gt;Create a Rule for btnOverdue which sets the value of TaskFilter to &lt;b&gt;0&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create a Rule for btnDue which sets the value of TaskFilter to &lt;b&gt;1&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create a Rule for btnComplete which sets the value of TaskFilter to &lt;b&gt;2&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Create a Rule for btnAll which clears the value of TaskFilter.&lt;/li&gt;&lt;br /&gt;&lt;/ol id="1"&gt;&lt;br /&gt;Do not add the TaskFilter field into the view -- this is strictly for behind the scenes.&lt;br /&gt;&lt;br /&gt;Preview your form and test your buttons.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>can you prgrammatically filter a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/4467.aspx</link><pubDate>Thu, 02 Sep 2004 15:49:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4467</guid><dc:creator>Lee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4467</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a project schedule being displayed in a repeating table.  above the table i have 4 buttons: Overdue Tasks, Due Tasks, Complete Tasks and All Tasks.  what i need to do is filter the table depending on which button was pressed.&lt;br /&gt;&lt;br /&gt;I know how the filters need to work, and i know how to get the table id from the view.xsl i just dont know how to apply the filter, or is there an easier way?&lt;br /&gt;&lt;br /&gt;cheers&lt;br /&gt;&lt;br /&gt;Lee&lt;br /&gt;&lt;br /&gt;Lee A Newson</description></item></channel></rss>