<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Need help with XPath - Marking duplicate rows - Infopath 2010 database template</title><link>https://www.infopathdev.com:443/forums/thread/86538.aspx</link><pubDate>Tue, 29 Jan 2013 08:54:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86538</guid><dc:creator>damnItHarsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=86538</wfw:commentRss><description>&lt;p&gt;Hello everybody,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to write a formula in one of the fields of a repeating table to mark the duplicate rows (the repeating table talks to a SQL table and has a foreign key constraint to another SQL table, not sure if that would matter in addressing the issue).&lt;/p&gt;
&lt;p&gt;Below 2 solutions look pretty straightforward, except that I can&amp;#39;t figure out the correct XPath. I get count as 0 all the time.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/nl-NL/sharepointcustomizationprevious/thread/b1116104-1cc4-47a3-919a-e68e9b57fc6a"&gt;http://social.msdn.microsoft.com/Forums/nl-NL/sharepointcustomizationprevious/thread/b1116104-1cc4-47a3-919a-e68e9b57fc6a&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/infopath2010/find-duplicate-values-repeating-table-infopath-2010.htm"&gt;http://www.bizsupportonline.net/infopath2010/find-duplicate-values-repeating-table-infopath-2010.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Image of myFields panel here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://postimage.org/image/8ai3f93md/"&gt;http://postimage.org/image/8ai3f93md/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;ScoreCard_Period&amp;quot; is the field that should serve as the ID and &amp;quot;Error_Status&amp;quot; should contain the count (Validator). &lt;br /&gt;&lt;br /&gt;Right clicking the &amp;quot;ScoreCard_Period&amp;quot; and copying XPath gives following:&lt;br /&gt;/dfs:myFields/dfs:dataFields/d:EUS_Account_KPI_Configuration/d:EUS_Account_KPI_Data/@ScoreCard_Period&lt;/p&gt;
&lt;p&gt;Any help in arriving at &lt;font face="Verdana"&gt;the formula that needs to be copied to &amp;quot;Error_Status&amp;quot; (&amp;quot;Validator&amp;quot;) would be highly appreciated. Thank you.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana"&gt;Cheers!&lt;br /&gt;Harsh&lt;/font&gt;&lt;font face="Verdana"&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>