<?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: Highlight duplicate entries in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/99441.aspx</link><pubDate>Tue, 07 Oct 2014 09:22:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99441</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99441</wfw:commentRss><description>&lt;p&gt;Hi RC_Amma,&lt;br /&gt;&lt;br /&gt;It looks like you do not need to use the whole xpath. Please try this formula instead:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;count(../d:Title[text() = ../preceding-sibling::*/d:Title/text()]) + count(../d:Title[text() = ../following-sibling::*/d:Title/text()])&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>Highlight duplicate entries in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/99421.aspx</link><pubDate>Mon, 06 Oct 2014 06:44:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99421</guid><dc:creator>RC_Amma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99421.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99421</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;I am a
newbie to InfoPath forms. I have an InfoPath 2010 form receiving a list data
from SharePoint 2010. I want to highlight the duplicate names in the list with
a different colour in InfoPath repeating table. While searching in Google, I
found the below formula for counting the duplicate entries in a list. I tried
applying the formula to a separate text field and I was getting the below
error.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;span style="font-size:10pt;"&gt;Formula&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size:10pt;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;count(../my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title[text()
=
../preceding-sibling::*/my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title/text()])
+
count(../my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title[text()
=
../following-sibling::*/my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title/text()])&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;span style="font-size:10pt;"&gt;Error I
am getting while inserting the above formula to a text field&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size:10pt;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Expected
value type: ,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Actual
value: :&lt;br /&gt;
count(../my:xdXDocument--&amp;gt;:&amp;lt;--GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title[text()
=
../preceding-sibling::*/my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title/text()])
+ count(../my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title[text()
=
../following-sibling::*/my:xdXDocument:GetDOM(&amp;quot;Test123abcd2&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title/text()])&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Please help
me with the correct formula for my above requirement or how to resolve the
above error.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Rajesh &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>