<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44098.aspx</link><pubDate>Fri, 10 Jul 2009 04:26:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44098</guid><dc:creator>djj66</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44098</wfw:commentRss><description>&lt;p&gt;Thanks Clayton,&lt;/p&gt;
&lt;p&gt;Thanks for the link, yes this looks like something I can use, the important thing being that is does not have to be the default view.&lt;/p&gt;
&lt;p&gt;Any reason I can&amp;#39;t use IP2007?&amp;nbsp; - well, no good reason :-). The company I&amp;#39;m working with still has IP2003 as standard, with no immediate plans to upgrade. We&amp;#39;ll have to upgrade sooner or later, at which time I expect I&amp;#39;ll need to redevelop the form.&lt;/p&gt;
&lt;p&gt;Thanks again for your help. regards, david&lt;/p&gt;</description></item><item><title>Re: Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44097.aspx</link><pubDate>Fri, 10 Jul 2009 03:04:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44097</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44097</wfw:commentRss><description>&lt;p&gt;Though still not ideal, you can make a different view that shows nothing but one column and has every record.&amp;nbsp; Then, get the direct URL to XML version of that view and use it as a data connection.&amp;nbsp; You do this using this method:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx"&gt;http://blogs.msdn.com/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any reason you can&amp;#39;t use IP07?&amp;nbsp; Office 2003 is about to be 2 versions old and is not the most recommended platform for building forms that will be used in the future, since the object model is different from 2007 (and 2010).&lt;/p&gt;</description></item><item><title>Re: Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44096.aspx</link><pubDate>Fri, 10 Jul 2009 02:55:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44096</guid><dc:creator>djj66</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44096</wfw:commentRss><description>&lt;p&gt;Hi Clayton,&lt;/p&gt;
&lt;p&gt;Yes I&amp;#39;m aware Sharepoint is a DB (based on one, anyway), but there&amp;#39;s no way (that I know) to ensure entries in a Sharepoint folder/list are unique.&amp;nbsp;As a fudge/workaround, I am doing a check on the Sharepoint Form library (as&amp;nbsp;a receive data connection in IP), and this works OK, but it relies on the &amp;quot;Default view&amp;quot; in the Sharepoint folder having all the records in that view. It works OK, except that someone might change the default view, without realising it will affect the duplicate check.&amp;nbsp; (so it&amp;#39;s far from ideal as a way of preventing duplicates)&lt;/p&gt;
&lt;p&gt;The document ID I&amp;#39;m referring to is a pre-printed number on the paper forms. It&amp;#39;s the only check I have to prevent a form from being&amp;nbsp;entered twice.&lt;/p&gt;
&lt;p&gt;I did find this link &lt;a href="http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx"&gt;http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx&lt;/a&gt;&amp;nbsp;which appears to be what I need, except that it&amp;#39;s based in IP2007, and I haven&amp;#39;t been able to convert the code into VBScript.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure if this helps, I&amp;#39;m happy to clarify anything if necessary. thanks again though!&lt;/p&gt;</description></item><item><title>Re: Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44095.aspx</link><pubDate>Fri, 10 Jul 2009 02:35:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44095</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44095</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not sure what you meant by the database comment, since both of my blogs are referring to SharePoint, but SharePoint _is_ a database.&amp;nbsp; Why can you not do a field check from the &amp;quot;db,&amp;quot; which is just the SharePoint form library?&amp;nbsp; You can definitely create a data connection to receive data from your form library in order to check if that Document ID already exists.&amp;nbsp; If it does, then pop up an error saying so and don&amp;#39;t let the submit continue.&amp;nbsp;&amp;nbsp;Sounds really simple to me, but maybe I&amp;#39;m missing something?&lt;/p&gt;
&lt;p&gt;You keep referring to a Document ID, but you make it sound like that is the filename.&amp;nbsp; This document ID you&amp;#39;re talking about comes from the original Word doc, right?&amp;nbsp; That is not the same thing as the InfoPath filename in the form library unless you are choosing to submit the forms using that Word document ID as the filename.&amp;nbsp; I would not make that the filename, or at least I would not rely on the filename to do my primary key check.&amp;nbsp; Create a field in the form that gets promoted to the form library that contains the Document ID.&amp;nbsp; In your submit button, check to see if the current form&amp;#39;s Doc ID is already in the library.&amp;nbsp; The conditional statement would look like this:&lt;/p&gt;
&lt;p&gt;If Any Occurrence of SharePointList:DocID is equal to ThisForm:DocID, then display message saying whatever.&amp;nbsp; If Not, then submit.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44094.aspx</link><pubDate>Fri, 10 Jul 2009 02:07:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44094</guid><dc:creator>djj66</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44094</wfw:commentRss><description>&lt;p&gt;Thanks for this, but it doesn&amp;#39;t really apply to my situation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The number I need to ensure is unique comes from a paper document, so I can&amp;#39;t use an &amp;quot;auto-number&amp;quot;. The document number on paper IS unique, but I need to protect against a document being mistakenly entered twice. I am also NOT submitting to a database, so I can&amp;#39;t use a Primary key field check from the DB. I am submitting to a Sharepoint Form Library so I need something to check if that Document number has been submitted before. At the moment (with IP 2003) if you submit a new document with the same Document ID as a previous one, then either a duplicate is created, or the original is overwritten (neither of these are acceptable)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The best I&amp;#39;ve found so far is to check the default view and extend the number of items from 100 to 10,000, but it&amp;#39;s still not failsafe.&lt;/p&gt;
&lt;p&gt;Is there anyway to ensure sharepoint folders (or lists) have unique fields - I&amp;#39;ve seen indexed fields, but not unqiue fields?&lt;/p&gt;
&lt;p&gt;thanks again!&lt;/p&gt;</description></item><item><title>Re: Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44063.aspx</link><pubDate>Thu, 09 Jul 2009 18:59:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44063</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44063</wfw:commentRss><description>&lt;p&gt;Don&amp;#39;t use code for this.&amp;nbsp; Either ensure that each filename is unique using something other than DocumentID or leverage a different view that does show the max current ID:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://claytoncobb.wordpress.com/2009/06/20/auto-generating-filenames-for-infopath-forms/"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;Auto-Generating Filenames for InfoPath Forms&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a title="Auto-Numbering InfoPath&amp;nbsp;Forms" href="http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;Auto-Numbering InfoPath&amp;nbsp;Forms&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt; &lt;/p&gt;</description></item><item><title>Preventing duplicates in a Sharepoint Form Library</title><link>https://www.infopathdev.com:443/forums/thread/44020.aspx</link><pubDate>Thu, 09 Jul 2009 07:00:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44020</guid><dc:creator>djj66</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44020.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=44020</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I have an InfoPath 2003 form which gets submitted to a Sharepoint Document Library. I need to prevent duplicate entries in the library, and each submission has a DocumentID which should be unique. I have tried querying the Sharepoint Library, but this only queries the default view for a folder, and only returns the list limit (100 unless changed). I can&amp;#39;t use the default view, because this only contains &amp;quot;Pending documents&amp;quot; not the full list of documents.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m writing my form code in VBScript (IP 2003) - can anyone advise me the bext way to ensure my Sharepoint document libary does not accept duplicates. If I need code, if anyone can suggest VBScript I could use, that would be much appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks!&lt;/p&gt;
&lt;p&gt;david&lt;/p&gt;</description></item></channel></rss>