<?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: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/89017.aspx</link><pubDate>Thu, 18 Apr 2013 22:17:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89017</guid><dc:creator>sudlev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89017</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s because users interact with the forms in the library and the filename field needs to be on display so they can access the context menu. Having a long name like &amp;#39;username - time&amp;#39; is meaningless to the users and takes up space in the view. None of these are huge problems but it just makes it generally easier for them.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s OK, I already have the solution I mentioned above working in multiple libraries and have never had any problems with it, I just thought someone had a better way of doing it.&lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88997.aspx</link><pubDate>Thu, 18 Apr 2013 12:35:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88997</guid><dc:creator>cpluce</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88997</wfw:commentRss><description>&lt;p&gt;why do you need the filename to contain the ID of current item ID?&amp;nbsp;&amp;nbsp;&amp;nbsp;That would be redundant.&amp;nbsp; Just use the current item ID field if you need to reference the ID of item.&amp;nbsp; it isnt considered best practice to use the ID in filename.&amp;nbsp;&amp;nbsp;If it is a must than the best way to do it is to write C# to achieve this feature. &lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88965.aspx</link><pubDate>Tue, 16 Apr 2013 23:33:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88965</guid><dc:creator>sudlev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88965</wfw:commentRss><description>&lt;p&gt;Hi cpluce, &lt;/p&gt;
&lt;p&gt;Following this method won&amp;#39;t the actual file name remain the same (e.g. as &amp;quot;user - timeofsubmit&amp;quot;). What I am trying to achieve is have the file name to be the same as the sharepoint ID.&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88957.aspx</link><pubDate>Tue, 16 Apr 2013 17:22:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88957</guid><dc:creator>cpluce</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88957</wfw:commentRss><description>&lt;p&gt;sudlev,the&amp;nbsp;double submit is something like this&lt;/p&gt;&lt;p&gt;In your submit button, do a double submit by doing this:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Add a new retrieve data connection for the current form library &lt;/li&gt;&lt;li&gt;Use my article here to generate your filename: &lt;a title="Auto-Generating Filenames for InfoPath Forms" href="http://claytoncobb.wordpress.com/2009/06/20/auto-generating-filenames-for-infopath-forms/"&gt;&lt;strong&gt;&lt;span&gt;InfoPath – Auto-Generating Filenames&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt; (you should always do this, but it&amp;#39;s especially important when you want to retrieve the ID).  Also, be sure you promote the strFilename field to the form library so that you can use it for comparison &lt;/li&gt;&lt;li&gt;In the Submit rule from above, be sure to add an action to query the data connection from step 1 (the query must occur after the first submit)&lt;/li&gt;&lt;li&gt;The next step should be an action to &amp;quot;Set a Field&amp;#39;s Value.&amp;quot;  This is where you&amp;#39;ll want to set the value of your form&amp;#39;s ID field to the ID node of the secondary data connection WHERE strFilename (SharePoint) is equal to strFilename (InfoPath).  Here, you are using a filter to compare the filename saved in the form to the filename saved in the form library.&lt;/li&gt;&lt;li&gt;Next, re-submit so that the ID is saved in your InfoPath ID field &lt;/li&gt;&lt;li&gt;Display this ID field wherever you want in the form, but make sure it&amp;#39;s read-only&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88915.aspx</link><pubDate>Mon, 15 Apr 2013 00:28:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88915</guid><dc:creator>sudlev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88915</wfw:commentRss><description>&lt;p&gt;Hi Patrick, &lt;/p&gt;
&lt;p&gt;I&amp;#39;m interested in more details on your double submit method! I wasn&amp;#39;t able to find more details on the forum and was unsuccessful in my own experimentation.&lt;/p&gt;
&lt;p&gt;When time permits can you please provide more detail?&lt;/p&gt;
&lt;p&gt;Appreciate your help.&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88745.aspx</link><pubDate>Mon, 08 Apr 2013 04:53:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88745</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88745</wfw:commentRss><description>&lt;p&gt;The problem with Sudlev&amp;#39;s approach is that it requires property demotion to get the ID back into the form. And, that&amp;#39;s not on by default&amp;nbsp; nor is it a best practice. &lt;/p&gt;&lt;p&gt;I would rather suggest that you just do a double submit from the form using a rule that has an action to submit, another action to query and set the value, and a final action to submit again. I&amp;#39;ve responded to others with this technique in more depth. Please search for &amp;quot;double submit SharePoint ID&amp;quot; or something and you should find them. If not, let me know.&lt;/p&gt;&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88704.aspx</link><pubDate>Fri, 05 Apr 2013 14:57:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88704</guid><dc:creator>cpluce</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88704</wfw:commentRss><description>I already have complex approval workflow. Is it ok to add an autonumber wf to start on item creation?</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88695.aspx</link><pubDate>Fri, 05 Apr 2013 11:56:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88695</guid><dc:creator>cpluce</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88695</wfw:commentRss><description>I figured out why we were seeing duplicates.&amp;nbsp; When IP retrieves the max(ID) it uses the default view in SP List of 50 item count. when an item is removed from that view, it uses the next max ID which may not be the latest.&amp;nbsp; I didnt ex[ect the user to delete items as they should have these for archives. I did test the workflow and it seem promising and SIMPLE. :) thanks for the reply. another option would be to retrieve all IDs using a web service or SOAP or owssfilter, if possible</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88690.aspx</link><pubDate>Fri, 05 Apr 2013 00:44:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88690</guid><dc:creator>sudlev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88690</wfw:commentRss><description>&lt;p&gt;Have you considered using workflow? I have a number of forms where I set the file name to the sharepoint item ID which is very simple.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Create a text field called FileName in the datasource&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In your data connection to &amp;#39;submit to sharepoint library&amp;#39;, ensure you use the FileName field as the file name.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;When you publish the form, make sure the FileName field is promoted and editable in sharepoint&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Create a new workflow that runs when a new form is created. Set the workflow to rename &amp;#39;Name&amp;#39; and &amp;#39;FileName&amp;#39; fields to the ID.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;That should do it. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88669.aspx</link><pubDate>Thu, 04 Apr 2013 12:51:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88669</guid><dc:creator>cpluce</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88669.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88669</wfw:commentRss><description>&lt;p&gt;this is a SharePoint form library form template. I have ran across these solutions. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/blog/2012/05/3-ways-auto-number-infopath-forms-submitted-sharepoint-form-library/"&gt;http://www.bizsupportonline.net/blog/2012/05/3-ways-auto-number-infopath-forms-submitted-sharepoint-form-library/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Currently. I am using solution #1. I am considering the #2 solution.&amp;nbsp; I have the cookbook 3. &lt;/p&gt;</description></item><item><title>Re: what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88661.aspx</link><pubDate>Thu, 04 Apr 2013 02:38:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88661</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88661</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Can you provide more information? Is this a SharePoint form library form template? A SQL bound form?&lt;/p&gt;&lt;p&gt;Autonumbering is troublesome at times, but knowing more about your scenario will get you some accurate responses from the community.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>what is the best way to autonum a form?</title><link>https://www.infopathdev.com:443/forums/thread/88639.aspx</link><pubDate>Wed, 03 Apr 2013 19:01:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88639</guid><dc:creator>cpluce</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88639.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88639</wfw:commentRss><description>I am currently am using the max + 1 technique but sometimes it is creating duplicate numbers and I am not sure why. I thought it is because a form gets deleted but that logic doesnt always hold up.&amp;nbsp; I know you can do a count as well. What are some of the best practices for doing auto num? I dont have a problem writing C# if I have to.</description></item></channel></rss>