<?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: InfoPath 2010 - Rule Formula with concat of many fields - Need Help in the appended portion</title><link>https://www.infopathdev.com:443/forums/thread/100753.aspx</link><pubDate>Tue, 13 Jan 2015 15:29:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100753</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100753</wfw:commentRss><description>&lt;p&gt;So - what is the result of the formula that works when bundledproj=1 when bundledproj is not 1? I&amp;#39;m confused about the -025 in the formula as well, as it doesn&amp;#39;t appear to be part of your desired results.&lt;/p&gt;</description></item><item><title>Re: InfoPath 2010 - Rule Formula with concat of many fields - Need Help in the appended portion</title><link>https://www.infopathdev.com:443/forums/thread/100746.aspx</link><pubDate>Mon, 12 Jan 2015 22:34:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100746</guid><dc:creator>SRAEngineer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100746</wfw:commentRss><description>&lt;p&gt;Thank You! Hillary. &lt;/p&gt;&lt;p&gt;The formula works great when bundledproj = 1 and I appreciate it.&amp;nbsp; However,&amp;nbsp;no appid appears when bundledproj = 0...&lt;/p&gt;&lt;p&gt;Another words, if bundledproj = 1, the appID should look like 2015C-11-002b3 and if bundledproj = 0, the appID should look like 2015-11-002. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;Formula that works when bundledproj = 1 is:&lt;/u&gt;&lt;/strong&gt;&amp;nbsp; concat(number(substring(appdate, 1, 4)), (substring(apptype, 1, 1)), &amp;quot;-&amp;quot;, collegeid, &amp;quot;-025&amp;quot;, (substring(concat(&amp;quot;b&amp;quot;, projectid), 1, (bundledproj = &amp;quot;1&amp;quot;) * string-length(concat(&amp;quot;b&amp;quot;, projectid))))) &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;Above formula does not work&amp;nbsp;when bundledproj = 0, and the one I am trying that gives me an error&amp;nbsp;is:&lt;/u&gt;&lt;/strong&gt;&amp;nbsp; concat(number(substring(appdate, 1, 4)), (substring(apptype, 1, 1)), &amp;quot;-&amp;quot;, collegeid, &amp;quot;-025&amp;quot;, (substring(concat(&amp;quot;b&amp;quot;, projectid), 1, (bundledproj = &amp;quot;1&amp;quot;) * string-length(concat(&amp;quot;b&amp;quot;, projectid)))), &lt;br /&gt;(substring((&amp;quot; &amp;quot;), 1, (notbundledproj&amp;nbsp;&amp;nbsp; = &amp;quot;1&amp;quot;)) * string-length(&amp;quot; &amp;quot;)))&lt;/p&gt;&lt;p&gt;Any idea how to resolve this?&lt;/p&gt;&lt;p&gt;Perhaps a separate rule?&lt;/p&gt;</description></item><item><title>Re: InfoPath 2010 - Rule Formula with concat of many fields - Need Help in the appended portion</title><link>https://www.infopathdev.com:443/forums/thread/100735.aspx</link><pubDate>Mon, 12 Jan 2015 15:27:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100735</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100735</wfw:commentRss><description>&lt;p&gt;Well - in the above formula, you have the closing parenthesis for the concat statement after &amp;quot;025&amp;quot;. I don&amp;#39;t know of any limits on concat.&lt;/p&gt;</description></item><item><title>Re: InfoPath 2010 - Rule Formula with concat of many fields - Need Help in the appended portion</title><link>https://www.infopathdev.com:443/forums/thread/100734.aspx</link><pubDate>Mon, 12 Jan 2015 13:59:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100734</guid><dc:creator>SRAEngineer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100734</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you Hillary for taking time to look into this.&amp;nbsp; bundledproj is a Boolean field with 0 and 1 value. projid is a field name for a Bundled Project ID Number. I used your approach and let the filed picker picked the suggested fields.&amp;nbsp; My formula now looks like this.&lt;/p&gt;&lt;p&gt;concat(number(substring(appdate, 1, 4)), (substring(apptype, 1, 1)), &amp;quot;-&amp;quot;, collegeid, &amp;quot;-025&amp;quot;), (substring(concat(&amp;quot;b&amp;quot;, projectid), 1, (bundledproj = &amp;quot;1&amp;quot;) * string-length(concat(&amp;quot;b&amp;quot;, projectid))))&amp;nbsp;&lt;/p&gt;&lt;p&gt;However, the InfoPath system is showing error at the comma after 025 as shown below:&amp;nbsp; (Is there a limit as how many characters you can concat?)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Expected value type: end-of-string&lt;/p&gt;&lt;p&gt;Actual value: ,&lt;br /&gt;concat(number(substring(../../my:generalinfo/my:application/my:appdate, 1, 4)), (substring(../../my:generalinfo/my:application/my:apptype, 1, 1)), &amp;quot;-&amp;quot;, ../../my:generalinfo/my:submitter/my:collegeid, &amp;quot;-025&amp;quot;)&lt;strong&gt;--&amp;gt;,&amp;lt;--&lt;/strong&gt; (substring(concat(&amp;quot;b&amp;quot;, ../../my:projectdetails/my:proposedproject/my:projectid), 1, (../../my:generalinfo/my:application/my:bundledproj = &amp;quot;1&amp;quot;) * string-length(concat(&amp;quot;b&amp;quot;, ../../my:projectdetails/my:proposedproject/my:projectid))))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;BTW, I did a workaround by splitting the formula in various rules during the weekend, but if you have the solution to the above, I like to learn.&lt;/p&gt;&lt;p&gt;My workaround was to create another rule and concat b3 to the previously calculated appID.&amp;nbsp; Where b if for the bundled project&amp;nbsp;and 3 is the projID.&amp;nbsp;Also, added a third rule to get the appID with the formula&amp;nbsp;without b3 in case when the project is not bundled.&lt;/p&gt;&lt;p&gt;Thanks again!&lt;/p&gt;</description></item><item><title>Re: InfoPath 2010 - Rule Formula with concat of many fields - Need Help in the appended portion</title><link>https://www.infopathdev.com:443/forums/thread/100730.aspx</link><pubDate>Sat, 10 Jan 2015 00:03:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100730</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100730</wfw:commentRss><description>&lt;p&gt;So - bundledproj - is that the ID? Or is that a Boolean value? Your description says it might be Yes, but your formula seems to expect 1 or 0. And I don&amp;#39;t see the bundled project ID in the formula....&lt;/p&gt;
&lt;p&gt;Maybe:&lt;/p&gt;
&lt;p&gt;substring(concat(&amp;quot;b&amp;quot;, BundledProjectID), 1, (bundledproj = &amp;quot;Yes&amp;quot;) * string-length(concat(&amp;quot;b&amp;quot;, BundledProjectID)))&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll have to use the field picker to pick the fields. I don&amp;#39;t think you need another substring for if it is not bundled, since you aren&amp;#39;t adding anything in that case?&lt;/p&gt;</description></item><item><title>InfoPath 2010 - Rule Formula with concat of many fields - Need Help in the appended portion</title><link>https://www.infopathdev.com:443/forums/thread/100696.aspx</link><pubDate>Wed, 07 Jan 2015 17:17:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100696</guid><dc:creator>SRAEngineer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100696.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=100696</wfw:commentRss><description>&lt;p&gt;I have&amp;nbsp;an Application Form going to a SharePoint 2010 Form Library. The Final ApplicationID is populated when User clicks &amp;quot;Yes&amp;quot; radio button stating that he/she is ready to submit.&lt;/p&gt;&lt;p&gt;The Textbox control for the ApplicationID should look like this: 2015C-02-025b1.&lt;/p&gt;&lt;p&gt;Here are the rules:&lt;/p&gt;&lt;p&gt;2015 = current year&lt;/p&gt;&lt;p&gt;C or L&amp;nbsp;= Application Type (Depends on the view and a control as well as field for the type)&lt;/p&gt;&lt;p&gt;02 = College ID (there 14 IDs and comes from its field)&lt;/p&gt;&lt;p&gt;025 = Individual Sequential Application ID per year&amp;nbsp;(I have not&amp;nbsp;figured&amp;nbsp;that part&amp;nbsp;out yet! But, it is for a later study and implementation!...)&lt;/p&gt;&lt;p&gt;b = If project is bundled, else blank&amp;nbsp;(If bundledproj is selected to &amp;quot;Yes&amp;quot; from a dropdown, then append b, else blank)&lt;/p&gt;&lt;p&gt;1 = Bundled Project ID (1 to 10 max).&amp;nbsp; If project is bundled then append its ProjectID here else, blank!&lt;/p&gt;&lt;p&gt;This is what I have so far...&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;concat(number(substring(&lt;u&gt;appdate,&lt;/u&gt;
1, 4)), (substring(&lt;u&gt;apptype&lt;/u&gt;, 1, 1)), &amp;quot;-&amp;quot;, &lt;u&gt;collegeid&lt;/u&gt;, &amp;quot;-025&amp;quot;,&lt;/strong&gt;
(substring(“b”, 1, (&lt;u&gt;bundledproj&lt;/u&gt; = 1)*string-length(“b”)), substring(“”, 1,
(&lt;u&gt;bundledproj&lt;/u&gt; = 0)*string-length(“”)))&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The Bolded part works. The &amp;quot;b&amp;quot; part formula does not. (it is based on method 2 of this post: &lt;a href="http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx"&gt;http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx&lt;/a&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Any help is appreciated!&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>