<?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: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97169.aspx</link><pubDate>Fri, 25 Apr 2014 18:14:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97169</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97169</wfw:commentRss><description>&lt;p&gt;So - your Dup 2 rule is comparing on CrewMem3? And it is doesn&amp;#39;t turn the font red when there is a match? Your Conf condition isn&amp;#39;t true in that instance, is it? Conditional formatting is applied in the order listed. Try moving Dup 2 up as the top condition. What we are doing here is testing the condition individually to see if it works. You can also change the fields pane to &amp;quot;Show Advanced view&amp;quot; and drag the data fields from your secondary data connection onto the form to see if the data values are what you&amp;#39;d expect.&lt;/p&gt;
&lt;p&gt;I apologize that I&amp;#39;m not quite keeping up with what you have replied - but did the individual condition I originally helped you with work on its own?&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97168.aspx</link><pubDate>Fri, 25 Apr 2014 17:50:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97168</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97168</wfw:commentRss><description>Sure thing Hilary, I appreciate it. You don&amp;#39;t have to do this, so of course do it when it&amp;#39;s convenient for you! I&amp;#39;ve been at it all day trying different configurations, I really have no clue what to do :( Deadline is monday for this project to be done, yikes!</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97167.aspx</link><pubDate>Fri, 25 Apr 2014 17:45:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97167</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97167</wfw:commentRss><description>&lt;p&gt;It is most likely just something in the XPath - can you attach your latest form and I&amp;#39;ll take a look? It will be a bit later in the day....&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97164.aspx</link><pubDate>Fri, 25 Apr 2014 16:27:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97164</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97164</wfw:commentRss><description>Ah ok got it :) 
&lt;p&gt;
I made a new rule on two fields, crewmem1 and 2 - it still doesn&amp;#39;t format. It doesn&amp;#39;t like that field for some reason?

&lt;p&gt;
I&amp;#39;ve tried deleting and recreating the field, making adjustments to the code, trying the rule on different fields... So weird!!</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97163.aspx</link><pubDate>Fri, 25 Apr 2014 16:16:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97163</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97163</wfw:commentRss><description>&lt;p&gt;I should have been more clear.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think you should add a new rule to your field (just for now, to test) and try your conditions individually. &lt;/p&gt;
&lt;p&gt;Don&amp;#39;t worry about the weird name. This is the internal name of the field - you picked it using the UI field picker, right?&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97161.aspx</link><pubDate>Fri, 25 Apr 2014 16:03:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97161</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97161</wfw:commentRss><description>Something is wrong with the Field 6 check. The field name is &amp;#39;_x0045_mp6&amp;#39; - I didn&amp;#39;t name the field this, must be a defaul of sorts? Would this cause an issue? 
&lt;p&gt;
I also tried rearranging the formula, so it would be Check field 5 or Check field 6 and Check Date... Doesn&amp;#39;t work. 
&lt;p&gt;
xdXDocument:GetDOM(&amp;quot;Planning - Job Entry and Archive&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:CrewMem7 = current()/dfs:dataFields/my:SharePointListItem_RW/my:CrewMem1 and d:Date_x0020_of_x0020_Job = current()/dfs:dataFields/my:SharePointListItem_RW/my:Date_x0020_of_x0020_Job] or xdXDocument:GetDOM(&amp;quot;Planning - Job Entry and Archive&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:x0045mp6 = current()/dfs:dataFields/my:SharePointListItem_RW/my:CrewMem1 and d:Date_x0020_of_x0020_Job = current()/dfs:dataFields/my:SharePointListItem_RW/my:Date_x0020_of_x0020_Job]</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97160.aspx</link><pubDate>Fri, 25 Apr 2014 15:52:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97160</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97160</wfw:commentRss><description>&lt;p&gt;It sounds like you are making progress. &lt;/p&gt;
&lt;p&gt;You can use and or or and it looks like you have used or correctly (lower case). Can you try the conditions individually to verify them? One turns it green, one turns it yellow or something?&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97159.aspx</link><pubDate>Fri, 25 Apr 2014 15:46:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97159</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97159</wfw:commentRss><description>I can&amp;#39;t get it to do the same for Emp 6... I edited the code a few different ways, trial and error... What am I missing? Most recent edit:
&lt;p&gt;
xdXDocument:GetDOM(&amp;quot;Planning - Job Entry and Archive&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:CrewMem5 = current()/dfs:dataFields/my:SharePointListItem_RW/my:CrewMem1 and d:Date_x0020_of_x0020_Job = current()/dfs:dataFields/my:SharePointListItem_RW/my:Date_x0020_of_x0020_Job] or xdXDocument:GetDOM(&amp;quot;Planning - Job Entry and Archive&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:x0045mp6 = current()/dfs:dataFields/my:SharePointListItem_RW/my:CrewMem1 and d:Date_x0020_of_x0020_Job = current()/dfs:dataFields/my:SharePointListItem_RW/my:Date_x0020_of_x0020_Job]
&lt;p&gt;
Can I not use an And an Or in one expression!
&lt;p&gt;
So close!!</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97155.aspx</link><pubDate>Fri, 25 Apr 2014 11:22:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97155</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97155</wfw:commentRss><description>Hilary thanks so much! Just getting into the office I&amp;#39;ll give it a go soon :) Do you do this voluntarily?! On your free time?

I do have a question though, this is going to have to check if Emp 1-6 is in any of the slots of Emp 1-6 - Can I just edit this code to do that? (Testing it now)

Edit: It works! You have alleviated a great deal of stress for me, I owe you!

Edit:
&lt;p&gt;
I added 4 more expressions, changing the second Crewmem1 in your code to 2,3,4,5, respectively. Doesn&amp;#39;t seem to be working. The other road block is that it only allows for 5 rules :S 
&lt;p&gt;
Another Edit:
&lt;p&gt;
I spoke too soon :) By changing the crewmem fields in the code it is now working !!! But how do I get a sixth expression in there?</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97153.aspx</link><pubDate>Thu, 24 Apr 2014 22:26:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97153</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97153</wfw:commentRss><description>&lt;p&gt;Okee doke. I&amp;#39;m a little confused... But let&amp;#39;s try this for your conditional formatting on the Emp 1 field.&lt;/p&gt;
&lt;p&gt;You have two conditions on your expression right now. &lt;/p&gt;
&lt;p&gt;Remove one of them.&lt;/p&gt;
&lt;p&gt;Change the first drop down in the remaining condition to &amp;quot;the expression&amp;quot; - you&amp;#39;ll see a text box with some XPath. Delete the XPath in the text box.&lt;/p&gt;
&lt;p&gt;Replace it with this:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Planning - Job Entry and Archive&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:CrewMem1 = current()/dfs:dataFields/my:SharePointListItem_RW/my:CrewMem1 and d:Date_x0020_of_x0020_Job = current()/dfs:dataFields/my:SharePointListItem_RW/my:Date_x0020_of_x0020_Job]&lt;/p&gt;
&lt;p&gt;This XPath is looking at your Planning - Job Entry and Archive data connection and basically saying &amp;quot;Is there a row there where the CrewMem1 = this CrewMem1 and the Date of Job = this Date of Job.&lt;/p&gt;
&lt;p&gt;Can you try this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97152.aspx</link><pubDate>Thu, 24 Apr 2014 22:08:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97152</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97152</wfw:commentRss><description>&lt;p&gt;I can look at it in design mode, that&amp;#39;s what I need to do to see what your question is. :)&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97143.aspx</link><pubDate>Thu, 24 Apr 2014 18:13:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97143</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97143</wfw:commentRss><description>Attached :) Are you able to open the form seeing as how it is linked to a corporate sharepoint domain??</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97142.aspx</link><pubDate>Thu, 24 Apr 2014 18:11:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97142</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97142.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97142</wfw:commentRss><description>&lt;p&gt;So, I see you attached screenshots, but what I would like to see is the actual form - can you attach that?&lt;/p&gt;</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97137.aspx</link><pubDate>Thu, 24 Apr 2014 16:58:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97137</guid><dc:creator>bradypreston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97137.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97137</wfw:commentRss><description>You are a god send! Thank you, attaching momentarily</description></item><item><title>Re: SP/InfoPath - Duplicate Values</title><link>https://www.infopathdev.com:443/forums/thread/97136.aspx</link><pubDate>Thu, 24 Apr 2014 16:53:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97136</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97136</wfw:commentRss><description>&lt;p&gt;Hey - looks like you need a little help with some conditional formatting - it would be a lot easier to visualize for me if I could see your form. Do you mind attaching under the Options tab of a reply? I&amp;#39;ll take a look sometime today.&lt;/p&gt;</description></item></channel></rss>