<?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: Unique File Naming</title><link>https://www.infopathdev.com:443/forums/thread/67960.aspx</link><pubDate>Thu, 30 Jun 2011 20:11:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67960</guid><dc:creator>DWTKENT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=67960</wfw:commentRss><description>&lt;p&gt;Thanks for your advise, unfortunately, my employer is dead set on a specific namin convention format. What I have done is use the ID from the list. Set&amp;nbsp;a submit button on the form with rules to&amp;nbsp;1st to populate a hidden&amp;nbsp;text box with max(ID)+1 from a data connection st to receive the ID from that list, then submit the form with the concat(&amp;quot;namingconvention&amp;quot;, Textbox Value). Then I set the list to organize by ID descending that way the latest ID number will always be in the view so I wouldn&amp;#39;t need to worry about the list item limits. Seems to work ok.&lt;/p&gt;</description></item><item><title>Re: Unique File Naming</title><link>https://www.infopathdev.com:443/forums/thread/65794.aspx</link><pubDate>Fri, 08 Apr 2011 04:22:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65794</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=65794</wfw:commentRss><description>&lt;p&gt;Another reason why SharePoint IDs are not preferred is because they change when the forms migrate from one SharePoint site to another. We advocate using natural keys for ID&amp;#39;ing forms. For example, a date-time stamp instead of an ID. Granted, the date-time stamp is not as easy for humans to handle because it&amp;#39;s large, but if you encode as year-month-day-hour-sec it has the added advantage of telling you when the form was first created which is useful.&lt;/p&gt;</description></item><item><title>Re: Unique File Naming</title><link>https://www.infopathdev.com:443/forums/thread/65783.aspx</link><pubDate>Thu, 07 Apr 2011 14:53:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65783</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=65783</wfw:commentRss><description>&lt;p&gt;Hi --&lt;/p&gt;
&lt;p&gt;I need to first point out that you need to be careful with names like these, and when you create them -- if you create the name when the form is first opened, and the next available number is 2, but someone else opens a new form before the other form has been submitted, you could end up with a conflict (two &amp;quot;2&amp;quot;s).&lt;/p&gt;
&lt;p&gt;So, you definitely want to do this at the time of submit, and if this is a heavily used form, you&amp;#39;ll need to do something different -- use date &amp;amp; time to the second (or millisecond), for example, or leverage a database table and &amp;quot;reserve&amp;quot; file names for forms on open....&lt;/p&gt;
&lt;p&gt;All that being said, the simplest method would be to query the library where the form submits, and pull back the form titles. It seems like it might be possible to use XPath to get the one that matches up to the final digit, and then some substring functions to return just the number after the dash, at which point you could increment the number.&lt;/p&gt;
&lt;p&gt;Of course, this has its own set of perils -- a standard SharePoint list connection is going to pull back only items from the default view, and if you have a limit on items per page, I believe it will respect that limit. If your library is going to be huge, you&amp;#39;ll be pulling in a pretty big list (since it is just title, maybe not too sluggish, but you&amp;#39;ll need to keep that in mind).&lt;/p&gt;
&lt;p&gt;So, I realize this may be discouraging -- and I kind of intend it to be -- you can use promoted properties in your library to expose these form values instead of relying on the name -- you could even promote a field that concatenates all the values w/out the number and group your view on that field, with items sorted by created date, which would give them to you in the same type of order than you would get from sorting by name with your naming convention. Use date &amp;amp; time in the file name to give yourself a better shot at uniqueness without all the fuss. &lt;/p&gt;
&lt;p&gt;Just my somewhat unrequested 2 cents... &lt;/p&gt;</description></item><item><title>Unique File Naming</title><link>https://www.infopathdev.com:443/forums/thread/65727.aspx</link><pubDate>Mon, 04 Apr 2011 19:57:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65727</guid><dc:creator>DWTKENT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65727.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=65727</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve seen many posts on this topic. Unfortunately I haven&amp;#39;t found a solution for a very specific naming convention that I&amp;#39;m hoping there is a&amp;nbsp;solution for. Codeless perferably but either way. The naming convention is&amp;nbsp;as such&amp;nbsp;&amp;nbsp;&amp;nbsp; H3-RFR-KED-MRC-1&lt;/p&gt;
&lt;p&gt;The H3-RFR- is static. The &amp;quot;KED&amp;quot; &amp;amp; &amp;quot;MRC&amp;quot; are both pulled from 2 seperate drop down lists in the form which describe the path of a workflow. The &amp;quot;1&amp;quot; is the @ID, looked up from the sharepoint site. The issue I have is number increases&amp;nbsp;sequentialy, regardlessof the path. Ideally I&amp;#39;d&amp;nbsp;like the naming to follow&amp;nbsp;as such . . .&lt;/p&gt;
&lt;p&gt;H3-RFR-KED-KED-1&lt;/p&gt;
&lt;p&gt;H3-RFR-KED-MRC-1&lt;/p&gt;
&lt;p&gt;H3-RFR-KED-KED-2&lt;/p&gt;
&lt;p&gt;H3-RFR-MRC-KED-1.&lt;/p&gt;
&lt;p&gt;Where each&amp;nbsp;new &amp;#39;path&amp;#39; combination&amp;nbsp;would start at&amp;nbsp;1, but if the&amp;nbsp;path is not unique the number increases by the max total of that combination +1. Is this at all possible? if so can someone point out where I can find that solution.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>