<?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: Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102849.aspx</link><pubDate>Wed, 17 Jun 2015 14:47:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102849</guid><dc:creator>chasquad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102849</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So, on Form Load I have the Status field of the query of the secondary data connection being set to &amp;quot;approved&amp;quot; so that I only bring in approved posts.&amp;nbsp; Then I have the secondary data connection being queried.&amp;nbsp; The secondary data connection is set up to sort descending on Announcement Start Date field.&lt;/p&gt;&lt;p&gt;Then on the repeating table properties, I have added the formatting rule&lt;/p&gt;&lt;p&gt;count(preceding-sibling::d:SharePointListItem_RW) + 1 &amp;lt;= count(/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW) - 6&lt;/p&gt;&lt;p&gt;AND&lt;br /&gt;&lt;br /&gt;count(/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW) &amp;gt; 6&lt;/p&gt;</description></item><item><title>Re: Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102848.aspx</link><pubDate>Wed, 17 Jun 2015 14:40:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102848</guid><dc:creator>chasquad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102848</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I just discovered an issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;So, I have this secondary data connection set to sort by date showing the last created entries first.&amp;nbsp; Without the conditional formatting rules applied, new entries appear, but I get all of them!&amp;nbsp; With the conditional formatting rules applied, new entries do not appear, but I get the row limits that I wanted.&lt;/p&gt;&lt;p&gt;Really what I need is for the last 6 entries to be posted to be displayed.&amp;nbsp; But with the rules applied, I guess I get 6 entries, but not necessarily the last 6 to be posted.&lt;/p&gt;&lt;p&gt;Help!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102840.aspx</link><pubDate>Tue, 16 Jun 2015 15:21:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102840</guid><dc:creator>chasquad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102840</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It WORKS!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you both!&lt;/p&gt;</description></item><item><title>Re: Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102838.aspx</link><pubDate>Tue, 16 Jun 2015 14:42:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102838</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102838</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Patrick&amp;#39;s formula for your form would be (on a condition on the repeating d:SharePointListItem_RW group):&lt;/p&gt;&lt;p&gt;count(preceding-sibling::d:SharePointListItem_RW) + 1 &amp;lt;= count(/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW) - 4 &lt;/p&gt;&lt;p&gt;*AND*&lt;/p&gt;&lt;p&gt;count(/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW) &amp;gt; 4&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102835.aspx</link><pubDate>Tue, 16 Jun 2015 13:29:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102835</guid><dc:creator>chasquad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102835.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102835</wfw:commentRss><description>&lt;p&gt;Thanks Patrick&lt;/p&gt;&lt;p&gt;It&amp;#39;s been a long time.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I&amp;#39;ve attached my form for reference.&amp;nbsp; It uses a secondary data connection.&amp;nbsp; I&amp;#39;m not sure if this works with those.&amp;nbsp; The xpath is /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&lt;/p&gt;&lt;p&gt;thanks for your help!&lt;/p&gt;</description></item><item><title>Re: Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102824.aspx</link><pubDate>Mon, 15 Jun 2015 06:01:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102824</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102824</wfw:commentRss><description>&lt;p&gt;You can add a formatting rule to the repeating row that hides the control; the key is the condition for the rule:&lt;/p&gt;&lt;p&gt;count(preceding-sibling::my:group2) + 1 &amp;lt;= count(/my:myFields/my:group1/my:group2) - 4&amp;nbsp;&lt;/p&gt;&lt;p&gt;*AND*&lt;/p&gt;&lt;p&gt;count(/my:myFields/my:group1/my:group2) &amp;gt; 4&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Note: this assumes that you have a form with a stock data source root node of myFields&amp;nbsp;and group1-&amp;gt;group2 underneath it where group2 is repeating.&lt;/p&gt;&lt;p&gt;You will need the change the fields to your form to make it work.&lt;/p&gt;&lt;p&gt;Check out the attached sample.&lt;/p&gt;</description></item><item><title>Limit Secondary Data Connetion to Specific Number of Rows</title><link>https://www.infopathdev.com:443/forums/thread/102814.aspx</link><pubDate>Fri, 12 Jun 2015 18:49:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102814</guid><dc:creator>chasquad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102814</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I have InfoPath 2013 form that uses SharePoint Secondary Data Connection.&amp;nbsp; The data connection is sorted descending by date and filtered to show only approved items.&amp;nbsp; The form is being displayed in a SharePoint Online web page using the InfoPath Form Web Part.&lt;/p&gt;&lt;p&gt;I don&amp;#39;t want to show all approved items.&amp;nbsp; I just want to show the last 4 items.&amp;nbsp; This would be easy if it were not in SharePoint Online and had to be a InfoPath Web based form, but those are the requirements.&amp;nbsp; Sorry!&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>