<?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: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74764.aspx</link><pubDate>Tue, 31 Jan 2012 19:49:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74764</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74764</wfw:commentRss><description>&lt;p&gt;You were patient too as I kept hacking up that XPath. :-) &lt;/p&gt;
&lt;p&gt;Glad it is all working now!&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74762.aspx</link><pubDate>Tue, 31 Jan 2012 19:23:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74762</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74762</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;THANK YOU!!&lt;/p&gt;&lt;p&gt;Something so simple.&amp;nbsp; Thank you for your patience working through this.&amp;nbsp; I guess I was close, but not quite close enough in my first attempt! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74760.aspx</link><pubDate>Tue, 31 Jan 2012 19:16:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74760</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74760</wfw:commentRss><description>&lt;p&gt;And again, I had it in my first sample, then went awry and dropped the &amp;quot;not&amp;quot; - sorry, my brain seems to have rolled under my desk this week. Try this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;not&lt;/strong&gt;(xdXDocument:get-DOM()/my:myFields/my:group1/my:StatusSelection[. = current()/d:OrderStatus] )&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74759.aspx</link><pubDate>Tue, 31 Jan 2012 19:12:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74759</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74759</wfw:commentRss><description>&lt;p&gt;&lt;img src="http://www.infopathdev.com/forums/screenshot.jpg" alt="" /&gt;&amp;nbsp;Ok, so this does kind of the OPPOSITE of what I what to accomplish, so we must be close!&amp;nbsp; &lt;/p&gt;&lt;p&gt;I want to HIDE the repeating table rows when StatusSelection does not equal OrderStatus.&lt;/p&gt;&lt;p&gt;So, as an example I changed the&amp;nbsp; &lt;/p&gt;&lt;p&gt;xdXDocument:get-DOM()/my:myFields/my:group1/my:StatusSelection[. != current()/d:OrderStatus]&lt;/p&gt;&lt;p&gt;to&lt;/p&gt;&lt;p&gt;xdXDocument:get-DOM()/my:myFields/my:group1/my:StatusSelection[. = current()/d:OrderStatus] &lt;/p&gt;&lt;p&gt;and changed the formatting to Fill in Red just to show you what I mean&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now when I select &amp;quot;Order Pending Delivery&amp;quot; I get the correct formatting in red.&amp;nbsp; - see screenshot attached&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I use the Not Equal I get no results at all no matter the selection, when using Hide this control as the action. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74756.aspx</link><pubDate>Tue, 31 Jan 2012 17:43:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74756</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74756</wfw:commentRss><description>&lt;p&gt;Okay - I led you astray. I tried this in my environment, and what finally worked was this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;not(xdXDocument:get-DOM()/my:myFields/my:group1[my:field1 = current()/d:Employee])&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Which, for your list and data source, would be a condition like this for your repeating table from your secondary data source:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:get-DOM()/my:myFields/my:group1[my:StatusSelection != current()/d:OrderStatus]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Looking at the expression that IP built for you, the issue is the lack of current() - your existing condition looks like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:get-DOM()/my:myFields/my:group1/my:StatusSelection[. != xdXDocument:GetDOM(&amp;quot;PurchaseOrder&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:OrderStatus]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;And this would most likely work:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:get-DOM()/my:myFields/my:group1/my:StatusSelection[. != current()/d:OrderStatus]&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74753.aspx</link><pubDate>Tue, 31 Jan 2012 17:04:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74753</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74753</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;:-(&amp;nbsp; unfortunately I only have WSS 3.0 to work with.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74752.aspx</link><pubDate>Tue, 31 Jan 2012 16:44:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74752</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74752</wfw:commentRss><description>&lt;p&gt;You have Query fields in your SharePoint list connection, so I&amp;#39;m assuming you are using ShP 2010. Query fields are only for equivalency, but if you have SharePoint 2010, you may have OData set up (&lt;a href="http://shpservername/_vti_bin/listdata.svc"&gt;http://&lt;strong&gt;ShPServerName&lt;/strong&gt;/_vti_bin/listdata.svc&lt;/a&gt;&amp;nbsp;- replace the &lt;strong&gt;bold text&lt;/strong&gt; with your ShP Server). OData allows for complex REST queries - and then you may be able to just pull back the data you need.&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74748.aspx</link><pubDate>Tue, 31 Jan 2012 16:25:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74748</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74748</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This is what i tried:&lt;/p&gt;&lt;p&gt;&amp;nbsp;I added a formatting rule on the repeating table (same as the date ranges) like you mentioned.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Any occurrence of &amp;quot;StatusSelection&amp;quot;&amp;nbsp; is not equal to OrderStatus Hide this control.&amp;nbsp; (StatusSelection is the listbox in the main datasource, and OrderStatus is the field from the secondary data source (sharepoint)).&amp;nbsp; The 4 options in the listbox are &amp;quot;Order pending approval&amp;quot; &amp;quot;Order approved&amp;quot; &amp;quot;Order pending delivery&amp;quot; &amp;quot;Order complete&amp;quot;.&lt;/p&gt;&lt;p&gt;When I do that and preview, the rows are all hidden no matter what options I select&amp;nbsp; in the listbox.&amp;nbsp; Although the SUM stills adds all rows that meet the Office, and date selections.&amp;nbsp;&lt;/p&gt;&lt;p&gt;If there was some way to specify in the query of the secondary data source, what to return&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I can&amp;#39;t help but think my whole theory of how to approach this is wrong... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74743.aspx</link><pubDate>Tue, 31 Jan 2012 15:56:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74743</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74743.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74743</wfw:commentRss><description>&lt;p&gt;Did you try what I was showing in the screenshot in the post above this? Where in the first drop down for the conditional formatting you select any occurance of the field bound to the list box, then &amp;quot;is equal to&amp;quot; and then, in the third field, you select the OrderStatus from the repeating table data source? Attach a copy of the form with what you are trying that is not working, and I&amp;#39;ll take a peek.&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74741.aspx</link><pubDate>Tue, 31 Jan 2012 15:10:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74741</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74741.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74741</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary,&lt;/p&gt;&lt;p&gt;Thanks so much, I hope you stay with me just a little longer...&lt;/p&gt;&lt;p&gt;I have the formula working for the sum, but now I&amp;#39;m trying to understand how I can filter the repeating table to only show the rows which have a &amp;quot;OrderStatus&amp;quot; equal to one of the selections in the ListBox.&amp;nbsp; This repeating table source is the secondary data source.&amp;nbsp; Would I need to create fields in the main data source in a repeating table and set the individual values of those fields to the secondary data source?&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried a number of things but I either get NO rows, or ALL rows. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74729.aspx</link><pubDate>Mon, 30 Jan 2012 22:36:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74729</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74729</wfw:commentRss><description>&lt;p&gt;What about if you select &amp;quot;Any occurrance of StatusSelection&amp;quot; is equal to the status field in the secondary data source? After you do that, if you change the first dropdown to &amp;quot;The expression&amp;quot; it should give you the XPath you need to add to get your sum formula right...&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74728.aspx</link><pubDate>Mon, 30 Jan 2012 22:30:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74728</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74728.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74728</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Fixed my silly mistake on the SUM formula and that&amp;#39;s working.&amp;nbsp; Now I just need to figure out how to limit the query results based on the criteria selected in the listbox.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74726.aspx</link><pubDate>Mon, 30 Jan 2012 21:22:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74726</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74726</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary,&lt;/p&gt;&lt;p&gt;Thank you.&amp;nbsp; I adjusted the formula like your example, to update the path but the sum is 0 even when multiple rows appear.&amp;nbsp; Formula doesn&amp;#39;t error any more. &amp;nbsp; Any idea?&lt;/p&gt;&lt;p&gt;&amp;nbsp;number(concat(substring(../d:Date_x0020_Ordered, 1, 4), substring(../d:Date_x0020_Ordered, 6, 2), substring(../d:Date_x0020_Ordered, 9, 2))) &amp;lt; number(concat(substring(xdXDocument:get-DOM()/my:myFields/my:StartDate, 1, 4), substring(xdXDocument:get-DOM()/my:myFields/my:StartDate, 6, 2), substring(xdXDocument:get-DOM()/my:myFields/my:StartDate, 9, 2)))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;number(concat(substring(../d:Date_x0020_Ordered, 1, 4), substring(../d:Date_x0020_Ordered, 6, 2), substring(../d:Date_x0020_Ordered, 9, 2))) &amp;gt; number(concat(substring(xdXDocument:get-DOM()/my:myFields/my:EndDate, 1, 4), substring(xdXDocument:get-DOM()/my:myFields/my:EndDate, 6, 2), substring(xdXDocument:get-DOM()/my:myFields/my:EndDate, 9, 2)))&lt;/p&gt;&lt;p&gt;How about my other question, if you don&amp;#39;t mind....I want the user to be able to select the &amp;quot;status&amp;quot; from the list and filter results based on that.&amp;nbsp; I don&amp;#39;t know of any way to do that! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74724.aspx</link><pubDate>Mon, 30 Jan 2012 20:52:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74724</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74724.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74724</wfw:commentRss><description>&lt;p&gt;Hi - &lt;/p&gt;
&lt;p&gt;Sure, you can filter the field that is used in your Sum formula - using the same logic as you use to filter your table, pretty much, just changing to a relative path to DateOrdered. See attached - the formula I tried resolved in the formuila editor window, so hopefully it is close to right.... &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Filter data queried from Secondary Source</title><link>https://www.infopathdev.com:443/forums/thread/74721.aspx</link><pubDate>Mon, 30 Jan 2012 20:31:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74721</guid><dc:creator>Sailor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=74721</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve now included my sample form as I realize my entire approach may be flawed.&amp;nbsp; I am including the entire secondary datasource as a repeating table, and using conditional formatting to only show the rows that meet the date criteria set at the top.&lt;/p&gt;
&lt;p&gt;Problem is I also can&amp;#39;t SUM the totals because I can&amp;#39;t filter to only sum the totals based on the date range selected.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Maybe someone could take a quick look and set me on the right track???&lt;/p&gt;</description></item></channel></rss>