<?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: Validation against Secondary data source repeating table</title><link>https://www.infopathdev.com:443/forums/thread/38063.aspx</link><pubDate>Wed, 04 Feb 2009 08:26:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38063</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=38063</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry you&amp;#39;re having issues in your data validation. Please do check out this blog: &lt;a href="http://www.infopathdev.com/blogs/mel_balsamo/archive/2009/02/04/comparing-items-in-a-list-against-an-updated-data-source.aspx"&gt;http://www.infopathdev.com/blogs/mel_balsamo/archive/2009/02/04/comparing-items-in-a-list-against-an-updated-data-source.aspx&lt;/a&gt;. Hope it helps.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;</description></item><item><title>Re: Validation against Secondary data source repeating table</title><link>https://www.infopathdev.com:443/forums/thread/22529.aspx</link><pubDate>Wed, 22 Aug 2007 06:58:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22529</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22529</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;Sorry for the delay in responding. Is the SName field repeating or an element of a repeating group? If so, you&amp;#39;ll need to use current() to properly select it. For the secondary data source checks you may need to eval through them since there will be more than one. This will likely require some code. If you were filtering, it would be different since InfoPath has out of the box filtering, but you are doing the opposite - exclusion. It&amp;#39;s easy to do this with code, but probably difficult to do this using rules. &lt;/p&gt;
&lt;p&gt;If you&amp;#39;d like some help, send us your XSN and buy some support credits from our store on Qdabra.com. We&amp;#39;ll put someone in touch with you asap to get the code written so that you are unblocked. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;</description></item><item><title>Validation against Secondary data source repeating table</title><link>https://www.infopathdev.com:443/forums/thread/22107.aspx</link><pubDate>Tue, 31 Jul 2007 14:28:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22107</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22107</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;&lt;p&gt;At the moment I am taking 2 steps forward and 1 step back - (I think better than a few days ago when it was 1 forward and 2 back !)&lt;/p&gt;&lt;p&gt;I have a field (Name) which I want to ensure&amp;nbsp;does not exist in&amp;nbsp;a secondary data source (SName) (multiple records).&amp;nbsp; I do not know the case of either of the Name fields, so I need to use the translate function to get each of them in the same case.&lt;/p&gt;&lt;p&gt;Initially I am ignoring the case problem and just trying to validate Name against SName.&lt;/p&gt;&lt;p&gt;I have gone into validate and have selected Name is equal to SName - I have then previewed the form and I can enter&amp;nbsp;ANY value in Name and&amp;nbsp;validation does not kick in. ie Fred exists in SName and entering Fred in Name does not cause a validation error.&lt;/p&gt;&lt;p&gt;I have gone into&amp;nbsp;RULES and have selected Name is equal to SName - I have then previewed the form and I can enter&amp;nbsp;ANY value in Name and&amp;nbsp;validation does not kick in. ie Fred exists in SName and entering Fred in Name does not the rule to be triggered.&lt;/p&gt;&lt;p&gt;I have gone into validate and have used the expression . = xdXDocument:GetDOM(&amp;quot;NameList&amp;quot;)/dfs:myFields/dfs:dataFields/d:NameList/@SName&amp;nbsp;&amp;nbsp;I have then previewed the form and I can enter&amp;nbsp;ANY value in Name and&amp;nbsp;validation does not kick in. ie Fred exists in SName and entering Fred in Name does not cause a validation error.&lt;/p&gt;&lt;p&gt;I have gone into validate and have used the expression . = xdXDocument:GetDOM(&amp;quot;NameList&amp;quot;)/dfs:myFields/dfs:dataFields/d:NameList//@SName&amp;nbsp; I have then previewed the form and I can enter&amp;nbsp;ANY value in Name and&amp;nbsp;validation does not kick in. ie Fred exists in SName and entering Fred in Name does not cause a validation error.&lt;/p&gt;&lt;p&gt;I have created another field with a default value of @SName[. = Name] - and this does not show a value when it should&lt;/p&gt;&lt;p&gt;I was hoping that once I hat got the initial validation working I could insert the translate later.... I am not having much luck here with the simpler option- am I going on the right track ?&lt;/p&gt;&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>