<?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: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/39175.aspx</link><pubDate>Wed, 04 Mar 2009 17:02:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39175</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=39175</wfw:commentRss><description>&lt;p&gt;Okay,&amp;nbsp; If the steps above sets the ID to 1&amp;nbsp;if the Library is empty, that should take care of my problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/39132.aspx</link><pubDate>Tue, 03 Mar 2009 20:59:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39132</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39132.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=39132</wfw:commentRss><description>&lt;p&gt;I was simply giving you the steps to set the Id field to 1 if there were no rows returned from your SharePoint list. I had assumed from your earlier posts that you already had your submit rules set up... you can extend the steps I posted by setting a second rule to set the Id field to the Max(Id from ShP list) + 1 if the Id from the ShP list &lt;strong&gt;is&lt;/strong&gt; present. Then use the Id field in your formula for the name of the form, and handle your submit however you were already handling it....&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/39121.aspx</link><pubDate>Tue, 03 Mar 2009 17:53:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39121</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=39121</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where in the steps above does it tells the form to submit to the ducoment Library and if there are no forms, make @ID =1 or increment where it left off?&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/39095.aspx</link><pubDate>Tue, 03 Mar 2009 04:44:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39095</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=39095</wfw:commentRss><description>&lt;p&gt;Let&amp;#39;s see. Some things will change depending on the name of you data connection, data structure, etc. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Go to &lt;strong&gt;Tools / Form Options&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Under the &lt;strong&gt;Open and Save &lt;/strong&gt;section, select the &lt;strong&gt;Rules&lt;/strong&gt; button&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Add &lt;/strong&gt;a new rule&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;For condition, navigate to your Id field from your SharePoint data connection in the first drop down&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Set the second dropdown to &amp;#39;is not present&amp;#39;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;For the action, set IDEmpty to&amp;nbsp;true (use the formula editor and select the true() function from functions)&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This means that when the form opens, if there are no ID nodes from your SharePoint list, IDEmpty (which defaults to false) gets set to true. When it gets set to true, the rule on it fires, setting the form&amp;#39;s ID field to 1. Does that help?&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/39080.aspx</link><pubDate>Mon, 02 Mar 2009 19:06:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39080</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=39080</wfw:commentRss><description>&lt;p&gt;Hillary can you give me a step by step process, because I&amp;#39;m very confused. I don&amp;#39;t know where to start.&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/38946.aspx</link><pubDate>Thu, 26 Feb 2009 00:50:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38946</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38946</wfw:commentRss><description>&lt;p&gt;The example is long and confusing, I know. When you say &amp;#39;The condition on this field&amp;#39; do you mean you have rule set on IDEmpty? If so, you need to have another rule that changes IDEmpty -- rules only fire if the field the rule is set on changes. You could have an open rule (Tools / Form Options / Open / Rules) that sets IDEmpty to true if the count of rows returned from your ShP connection is 0.....&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/38912.aspx</link><pubDate>Wed, 25 Feb 2009 14:40:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38912</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38912</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;You are a great help. I don&amp;#39;t understand the formula. What I&amp;#39;m trying to do is set the ID to 1 if there is no forms in the Forms Library, so my concat(&amp;quot;I&amp;quot;, &amp;quot;P&amp;quot;, max(@ID) + 1, substring(DisplayName, 1, 1), substring(AgentSSN, 1, 1))&amp;nbsp; can work properly. for my data connection and submit. I set up a bollean field element called IDEmpty and set the value to false. The condition on this field states: If ID is Blank&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set a field&amp;#39;s value @ID= 1&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t think this is working. &lt;/p&gt;
&lt;p&gt;The formula for the example is long and confusing. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/38882.aspx</link><pubDate>Wed, 25 Feb 2009 02:12:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38882</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38882</wfw:commentRss><description>&lt;p&gt;Oh, I see, because there isn&amp;#39;t a value in the secondary data connection to the library the for the first form to use. Is this a default value? Or is set by a rule? I suppose you could add an open rule to set the name to IP&lt;strong&gt;1&lt;/strong&gt;W7, or whatever you want in place of NaN, but then you run into the issue of two users opening forms while there are none in the library, then one submits and the other has an invalid number....&lt;/p&gt;
&lt;p&gt;You can actually create a default that is conditional. It is a little bit of a scary formula, but once you get used to it, it is a great tool. &lt;a href="http://blogs.msdn.com/infopath/archive/2006/11/27/conditional-default-values.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a link to the InfoPath Team blog post on this approach. You&amp;#39;ll want to take the second method mentioned. The boolean condition would need to check if there is a value in the id node returned by the SharePoint Library data connection. Give it a try, and post back if you get stuck, okay?&lt;/p&gt;</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/38846.aspx</link><pubDate>Tue, 24 Feb 2009 14:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38846</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38846</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;It&amp;#39;s calculating, but the first item in the Library is always IPNaNW7. The NaN part of the Calculation is come from the Library, but because there isn&amp;#39;t any forms in the Library the first form is always NaN. I just set up a secondary data source to the SharePoint Library.</description></item><item><title>Re: NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/38820.aspx</link><pubDate>Tue, 24 Feb 2009 01:40:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38820</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38820</wfw:commentRss><description>&lt;p&gt;HI -- can you explain more about what you are doing? Is the form name currently a formula that isn&amp;#39;t calulating for some reason?&lt;/p&gt;</description></item><item><title>NaN shows up as the form name when the first form is submitted</title><link>https://www.infopathdev.com:443/forums/thread/38801.aspx</link><pubDate>Mon, 23 Feb 2009 18:17:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38801</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=38801</wfw:commentRss><description>&lt;p&gt;How can I make the first form submitted not show NaN in the form name? &lt;/p&gt;</description></item></channel></rss>