<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Ensuring Unique Combobox Data?</title><link>https://www.infopathdev.com:443/forums/thread/75682.aspx</link><pubDate>Thu, 23 Feb 2012 22:39:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75682</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=75682</wfw:commentRss><description>&lt;p&gt;I made this one harder than it needed to be - I think because I was thinking about how I&amp;#39;d do the same thing in Access, which involves opening a recordset and looping through all the records checking for a match - not pretty!&lt;/p&gt;
&lt;p&gt;I ended up going&amp;nbsp;with a validation rule using this code:&amp;nbsp;&amp;nbsp; optReqType = &amp;quot;New&amp;quot; AND cboProdName is not blank AND cboProdName = ProdName (column name from the SP list).&lt;/p&gt;
&lt;p&gt;I had to throw in the is not blank&amp;nbsp;criterion because all my blank Product Names (which are allowed) kept failing the validation!&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;</description></item><item><title>Ensuring Unique Combobox Data?</title><link>https://www.infopathdev.com:443/forums/thread/75603.aspx</link><pubDate>Wed, 22 Feb 2012 17:33:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75603</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75603.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=75603</wfw:commentRss><description>&lt;p&gt;Hi InfoPathers:&lt;/p&gt;
&lt;p&gt;My InfoPath 2010 filler form has a repeating table that contains&amp;nbsp;something called Product Categorizations (Prod Cats), each of which&amp;nbsp;consists of&amp;nbsp;4 tiers of comboboxes - Tier 1, Tier 2, Tier 3, and Product Name.&amp;nbsp; Because there are currently 836 unique&amp;nbsp;Prod Cats&amp;nbsp;(and the list is expected to grow), I have made the combos cascading for ease of usability.&amp;nbsp; I connect out to a SharePoint 2010 list for&amp;nbsp;the overall list&amp;nbsp;and thanks to an article on this site by Greg Collins, my comboboxes work just great.&amp;nbsp;&amp;nbsp;You can either type in values or pick data from each combobox, and when you clear out any combo, it clears out all the ones below it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wanting to use data validation to require Product Name to be unique.&amp;nbsp; Not only do I not want them&amp;nbsp;entering the same Product Name within a single instance of the form, but I also&amp;nbsp;don&amp;#39;t want them picking a&amp;nbsp;Product Name that already exists out&amp;nbsp;in the SharePoint list either.&amp;nbsp; I&amp;#39;ve seen a procedure I think I can make use of where you set your combobox not to show a data item once it&amp;#39;s been selected in the form, which should work for the &amp;quot;within a single instance of the form&amp;quot; case, but I&amp;#39;m a bit unsure how to go about enforcing uniqueness against the full SharePoint list.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m not a professional IP developer, so pardon me if this is a newbie question.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;</description></item></channel></rss>