<?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: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3531.aspx</link><pubDate>Wed, 03 Jan 2007 21:52:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3531</guid><dc:creator>Donald.Berg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3531.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3531</wfw:commentRss><description>I used the date to create a unique number that can be sorted by time also. Use this number as your file name when you save to the sharepoint library. Here is some code: &lt;br /&gt;&lt;br /&gt;[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]&lt;br /&gt;public void OnLoad(DocReturnEvent e)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;System.DateTime Requestdate = System.DateTime.Now;&lt;br /&gt;			&lt;br /&gt;IXMLDOMNode RequestNumber = thisXDocument.DOM.selectSingleNode("//my:ServiceRequestForm/my:GROUP_ServiceRequestForm/my:FLD_RequestNumber");			&lt;br /&gt;RequestNumber.nodeTypedValue = string.Format("{0:yyyyMMddhhmmss}", Requestdate.AddMilliseconds(1));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;On your sharepoint library you can display as columns for the forms the ID number. These start from 1 and go up as forms are created. Then you can hide the filenames and use Type as links to the infopath documents from the form library.</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3530.aspx</link><pubDate>Mon, 04 Dec 2006 22:41:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3530</guid><dc:creator>ErikIversen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3530</wfw:commentRss><description>I'm having a similar issue.  The value of max(existingNumbers)+1 does not seem to get updated until existingNumbers take a value - usually by user selecting an item from the list.&lt;br /&gt;</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3529.aspx</link><pubDate>Mon, 27 Nov 2006 14:30:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3529</guid><dc:creator>pdjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3529</wfw:commentRss><description>I'm not sure I totally understand the problem, but it sounds like you are trying to make the dropdown list display the max value? The dropdown itself doesn't need to display the max value, it just stores the list so you can grab the max value and use it to calculate the next number. You want to make the default value of your formNumber field equal to the max value stored in the dropdown list plus one.</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3528.aspx</link><pubDate>Mon, 27 Nov 2006 09:13:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3528</guid><dc:creator>michael.knowles</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3528.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3528</wfw:commentRss><description>This almost works. It does not seem to put the max value from the drop down menu though?</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3527.aspx</link><pubDate>Sun, 26 Nov 2006 19:15:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3527</guid><dc:creator>pdjohnson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3527</wfw:commentRss><description>I'm relatively new to InfoPath, but there might be another way to do this that doesn't involve code. I haven't tried it myself, but in theory I think it should work. &lt;br /&gt;&lt;br /&gt;) Add a numeric field to the data source on your form to hold your sequential number (call it formNumber for example). &lt;br /&gt;&lt;br /&gt;) Make formNumber available as a form library column (Tools--&amp;gt;Form Options--&amp;gt;Form Library Columns)&lt;br /&gt;&lt;br /&gt;) Publish the form to a form library on your SharePoint site, and expose the formNumber field as a column in your form library.&lt;br /&gt;&lt;br /&gt;) Create a data connection on your form to receive data from your SharePoint form library. Select the formNumber as a field to include in the data received.&lt;br /&gt;&lt;br /&gt;) Create a new dropdown or list box field and bind it to the formNumber field from the form library. Let's call this new field existingNumbers. It should show the list of all form numbers published to your form library.&lt;br /&gt;&lt;br /&gt;) Edit the properties of the original formNumber field and set the default value to max(existingNumbers+1). This will now hold the next sequential number after the numbers already taken by the forms in your library.&lt;br /&gt;&lt;br /&gt;) To include this number in the form's file name, you can use a function in the data connection you use to submit to the SharePoint library.&lt;br /&gt;&lt;br /&gt;I can't try this now because I'm not connected to my SharePoint server at work, but I think it will work (and might be easier for you if you are not familiar with code). Good luck!</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3526.aspx</link><pubDate>Fri, 24 Nov 2006 09:37:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3526</guid><dc:creator>michael.knowles</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3526</wfw:commentRss><description>Please could you talk me through this?&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;&lt;br /&gt;Michael</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3525.aspx</link><pubDate>Fri, 24 Nov 2006 04:40:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3525</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3525</wfw:commentRss><description>Hello Michael.knowles,&lt;br /&gt;If you want your guid increment 1,2,3..&lt;br /&gt;In onload event, take one value(1 or 30000 or etc..) into a variable and increment that value one or how much you want increment when new form(new solution is opening) is opened and save that variable as file name&lt;br /&gt;&lt;br /&gt;try this, hope this helps you!</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3524.aspx</link><pubDate>Thu, 23 Nov 2006 13:46:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3524</guid><dc:creator>michael.knowles</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3524</wfw:commentRss><description>I have had a look at a GUID website. In need my file names to go up in numerical order 1,2,3,4,5,6, etc for the testing then they need to start at 300000 and go up...&lt;br /&gt;&lt;br /&gt;Any ideas?</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3523.aspx</link><pubDate>Thu, 23 Nov 2006 13:39:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3523</guid><dc:creator>michael.knowles</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3523</wfw:commentRss><description>Please could you talk me through doing this?</description></item><item><title>Re: Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/3522.aspx</link><pubDate>Thu, 23 Nov 2006 10:11:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3522</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3522.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3522</wfw:commentRss><description>Hello michael.knowles welcome to the InfoPath forums.&lt;br /&gt;There is a GUID class in .net to create a Unique ID. &lt;br /&gt;System.Guid.NewGuid() method creates a new GUID for you.&lt;br /&gt;We use this for our form names to be unique. &lt;br /&gt;Take guid into a variable and save the variable as file name.&lt;br /&gt;&lt;br /&gt;Hope this helps you!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;</description></item><item><title>Submitting Infopath to sharepoint</title><link>https://www.infopathdev.com:443/forums/thread/1680.aspx</link><pubDate>Thu, 23 Nov 2006 09:34:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1680</guid><dc:creator>michael.knowles</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1680.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1680</wfw:commentRss><description>Help required...&lt;br /&gt;&lt;br /&gt;We have created an InfoPath form which is published in a document library on our SharePoint Site and what we are trying to achieve is to have a unique number that is automatically created when you save / Submit an InfoPath form. There are no Fields that could be used in the form. I would like to have the filename of my forms set to the unique number when submitted to a SharePoint Library.&lt;br /&gt;&lt;br /&gt;Can anyone help?&lt;br /&gt;&lt;br /&gt;P.s I am not a programmer so you would need to talk me through any code.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;Michael.</description></item></channel></rss>