<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/99149.aspx</link><pubDate>Wed, 17 Sep 2014 14:48:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99149</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99149</wfw:commentRss><description>&lt;p&gt;Put a calculated value where you want the count of all the displayed records to be and select the repeating SharePointListItem_RW group in the formula editor. Then click &amp;quot;Edit XPath&amp;quot; and paste the XPath in a reply and I&amp;#39;ll give you a hand. :)&lt;/p&gt;
&lt;p&gt;Good job on figuring out the preceding-sibling formula - your form will publish now, right?&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/99147.aspx</link><pubDate>Wed, 17 Sep 2014 13:56:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99147</guid><dc:creator>dwattie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99147</wfw:commentRss><description>&lt;p&gt;Hi so after&amp;nbsp;a couple long nights&amp;nbsp;I eventually got preceding-sibling to work. I used preceding-sibling::d:SharePointListItem_RW/d:coursetitle. Now I&amp;#39;m trying to do&amp;nbsp;some conditional formatting put a count of records actually displayed on the page. In total there are 427 records returned and after I apply this rule:. d:coursetitle = preceding-sibling::d:SharePointListItem_RW/d:coursetitle&amp;nbsp;it hides&amp;nbsp;some rows, so now I&amp;#39;m trying to figure out how to put a count of records not hidden on the page for the user to see. Any ideas? &lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks much for your response&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/99126.aspx</link><pubDate>Tue, 16 Sep 2014 01:31:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99126</guid><dc:creator>dwattie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99126</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;I have a repeating table to is connected to a PharePoint list and i am attempting to apply a rule where&amp;nbsp;I only want to show the last record entered for a particular item (this item will have many records associated with it) I&amp;#39;m trying to do similar to what is in this post &lt;a href="http://www.infopathdev.com/forums/p/25793/89568.aspx"&gt;http://www.infopathdev.com/forums/p/25793/89568.aspx&lt;/a&gt;&amp;nbsp;but when i use preceding-sibling this does not work for me. If i use preceding as in this example: coursetitle = preceding::d:coursetitle this works perfect however when i try to publish this form it causes the memory and cpu usage to max out on the server and the entire environment slows to a crawl affecting all users and the publishing process freezes. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Can you assist? Thanks.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89605.aspx</link><pubDate>Wed, 08 May 2013 15:05:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89605</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89605.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89605</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I manually typed in the formula. If you change the first dropdown to &amp;quot;the expression&amp;quot; you can see what the actual XPath is.&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89586.aspx</link><pubDate>Wed, 08 May 2013 06:13:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89586</guid><dc:creator>MattyG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89586</wfw:commentRss><description>&lt;p&gt;Yes that worked great, thank you.&lt;/p&gt;
&lt;p&gt;Just one question though, how did you select the relative path?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to do the same in other tables for other fields but I get the &amp;quot;does not point....&amp;quot; error again ! I&amp;#39;ve tried selecting the fields and typing the fields but no good.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89573.aspx</link><pubDate>Tue, 07 May 2013 21:51:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89573</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89573.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89573</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Okay - you were using a full path instead of a relative path - try this one. Save it locally, right click, select design and then you can preview and see if this does what you need.&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89568.aspx</link><pubDate>Tue, 07 May 2013 20:09:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89568</guid><dc:creator>MattyG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89568</wfw:commentRss><description>&lt;p&gt;Attached as requested.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89563.aspx</link><pubDate>Tue, 07 May 2013 19:21:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89563</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89563</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Mind attaching your form under the Options tab in a reply? I can take a quick look later today...&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89561.aspx</link><pubDate>Tue, 07 May 2013 19:00:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89561</guid><dc:creator>MattyG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89561</wfw:commentRss><description>&lt;p&gt;Hi Hilary.&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply.&lt;/p&gt;
&lt;p&gt;Yes the rule is on RiskAssessments.&lt;/p&gt;
&lt;p&gt;I still cannot get it right !&lt;/p&gt;
&lt;p&gt;When I tried using the expression: &amp;quot;@RiskNo = preceding-sibling::dfs:myFields/dfs:dataFields/dfs:RiskAssessments/@RiskNo&amp;quot;, there was no errors but&amp;nbsp;it did not hide any of the repeating rows.&lt;/p&gt;
&lt;p&gt;When I tried the formula by selecting RiskNo in the dropdown, then equals to &amp;quot;preceding-sibling::/dfs:myFields/dfs:dataFields/dfs:RiskAssessments/@RiskNo&amp;quot;,&amp;nbsp;I get the same error that &amp;quot;Node-test expected.&amp;quot;. &lt;/p&gt;
&lt;p&gt;I then try removing the &amp;quot;/&amp;quot; before &amp;quot;dfs:myFields&amp;quot;, but then the error&amp;nbsp;this &amp;quot;does not point to a valid location path of a field or group.&amp;quot; appears.&amp;nbsp;I tried selecting the RiskNo field but still no good.&lt;/p&gt;
&lt;p&gt;Any more help would be appreciated. Thank you.&lt;/p&gt;</description></item><item><title>Re: Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89548.aspx</link><pubDate>Tue, 07 May 2013 14:29:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89548</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89548.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89548</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So - the rule is on RiskAssessments? Is the XPath&amp;nbsp;&amp;nbsp;myFields\dataFields\RiskAssessments one that you got by right clicking the repeating group and selecting Copy XPath in the data source task pane? I&amp;#39;m wondering about namespace prefixes.&lt;/p&gt;&lt;p&gt;Generally, if you don&amp;#39;t have any namespace prefixes and the rule is on RiskAssessments, I&amp;#39;d think you&amp;#39;d want the expression:&lt;/p&gt;&lt;p&gt;@RiskNo = preceding-sibling::RiskAssessments/@RiskNo&lt;/p&gt;&lt;p&gt;Or - select RiskNo in the first drop down of the condition, &amp;quot;is equal to&amp;quot; in the second drop down and &amp;quot;use a formula&amp;quot; in the third drop down, with the formula being preceding-sibling::RiskAssessments/@RiskNo&lt;/p&gt;&lt;p&gt;If your data source has namespace prefixes tho, this XPath will be incorrect and will need those added - preceding-sibling::dfs:RiskAssessments/@d:RiskNo, for example.&lt;/p&gt;</description></item><item><title>Xpath on Repeating table - preceding-sibling</title><link>https://www.infopathdev.com:443/forums/thread/89547.aspx</link><pubDate>Tue, 07 May 2013 14:12:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89547</guid><dc:creator>MattyG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89547.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=89547</wfw:commentRss><description>&lt;p&gt;Hello. Sorry if the information for my question is already posted but I am new to Infopath (2007) and the examples I have found in the threads do not solve my issue...&lt;/p&gt;
&lt;p&gt;I have a repeating table binding to a SharePoint list. I am trying to hide rows where values&amp;nbsp;repeat on different rows. I have used the preceding-sibling xpath function but I cannot get it to work.&lt;/p&gt;
&lt;p&gt;The data source&amp;nbsp;is:&lt;/p&gt;
&lt;p&gt;RiskAssessments (Secondary)&amp;nbsp; -&amp;nbsp;&amp;nbsp;myFields\dataFields\RiskAssessments&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Columns&lt;/em&gt;&amp;nbsp; -&amp;nbsp; Title,&amp;nbsp; RiskNo,&amp;nbsp; LineNumber,&amp;nbsp; RAVersion,&amp;nbsp; Year,&amp;nbsp; Division,&amp;nbsp; Site,&amp;nbsp; Department,&amp;nbsp; DepartmentArea&lt;/p&gt;
&lt;p&gt;Where the &amp;quot;RiskNo&amp;quot; on one row is the same as the &amp;quot;RiskNo&amp;quot; on the row above, i would like to hide the row.&amp;nbsp; I have tried:&lt;/p&gt;
&lt;p&gt;../preceding-sibling::@RiskNo&lt;/p&gt;
&lt;p&gt;But get a &amp;quot;Node-test expected.&amp;quot; error.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Matt&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>