<?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: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120317.aspx</link><pubDate>Fri, 18 Jan 2019 20:40:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120317</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120317.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120317</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks again. I hope I will have the opportunity to help you sometime and repay the favor. WHEELS&lt;/p&gt;</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120316.aspx</link><pubDate>Fri, 18 Jan 2019 20:16:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120316</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120316</wfw:commentRss><description>Happy to help. Here&amp;#39;s what&amp;#39;s happening - the place where you select the field (AccountID) is what gets all the repeating nodes. Then, any formulas you want to apply to the text (like the concat, to add the &amp;quot;;&amp;quot; or the substring-after) go in the single quotes. Here&amp;#39;s a good explanation of double eval: https://blogs.msdn.microsoft.com/infopath/2006/04/05/email-submit-to-line-loops-in-formulas/</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120315.aspx</link><pubDate>Fri, 18 Jan 2019 18:03:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120315</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120315.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120315</wfw:commentRss><description>&lt;p&gt;Hi Hilary. I tried your simple, but brilliant expression and it worked as expected. You saved the day once again. Thank you very much. WHEELS.&lt;/p&gt;</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120314.aspx</link><pubDate>Fri, 18 Jan 2019 17:59:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120314</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120314.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120314</wfw:commentRss><description>&lt;p&gt;Hi Hilary. &lt;/p&gt;&lt;p&gt;I will give that a try. I did find the following, and although it looked promising, I am getting an error:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Unexpected character.&lt;br /&gt;substring(eval(eval(my:group/pc:Person, --&amp;gt;‘&amp;lt;--concat(pc:my:group/pc:Person/pc:AccountId, “;”)’), “..”), 1, string-length(eval(eval(my:group/pc:Person, ‘concat(pc:my:group/pc:Person/pc:AccountId, “;”)’), “..”)) – 1) &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="https://mysharepointpage.wordpress.com/2014/07/14/using-eval-function-for-people-picker-in-infopath/"&gt;https://mysharepointpage.wordpress.com/2014/07/14/using-eval-function-for-people-picker-in-infopath/&lt;/a&gt;&lt;br /&gt;substring(eval(eval(Person, ‘concat(pc:AccountId, “;”)’), “..”), 1, string-length(eval(eval(Person, ‘concat(pc:AccountId, “;”)’), “..”)) – 1)&amp;nbsp;&lt;/p&gt;&lt;p&gt;WHEELS&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120313.aspx</link><pubDate>Fri, 18 Jan 2019 17:40:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120313</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120313</wfw:commentRss><description>I think you need to move the substring part of the formula: eval(eval(AccountId, &amp;#39;concat(substring-after(.,&amp;quot;UP\&amp;quot;), &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120312.aspx</link><pubDate>Fri, 18 Jan 2019 17:07:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120312</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120312.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120312</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;tried the following, but it only resolves the 1st name when emailing:&lt;/p&gt;&lt;p&gt;concat(substring-after(AccountId, &amp;quot;UP\&amp;quot;), &amp;quot;;&amp;quot;)&lt;/p&gt;&lt;p&gt;WHEELS&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/120311.aspx</link><pubDate>Fri, 18 Jan 2019 16:13:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120311</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120311.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=120311</wfw:commentRss><description>&lt;p&gt;Good morning. &lt;/p&gt;&lt;p&gt;I have been successfully using the Person/Group Picker control for a while now with the following:&lt;/p&gt;&lt;p&gt;eval(eval(DisplayName, &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;&lt;p&gt;I ran into an issue where this would fail if 2 individuals have the same name. So I am try to go with the AccountId. I created the following to user the user name minus the domain prefix:&lt;/p&gt;&lt;p&gt;eval(eval(substring-after(AccountId,&amp;quot;UP\&amp;quot;), &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;&lt;p&gt;but I&amp;nbsp;am coming up with a &amp;nbsp;Type mismatch - Error occurred during a call to property or method &amp;#39;Eval&amp;#39;.&lt;/p&gt;&lt;p&gt;Any suggestions or thoughts?&amp;nbsp;&lt;/p&gt;&lt;p&gt;WHEELS&lt;/p&gt;</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/117144.aspx</link><pubDate>Thu, 31 Aug 2017 13:43:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117144</guid><dc:creator>djsolzs</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=117144</wfw:commentRss><description>I ended up figuring it out based on your example - thanks for posting!</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/117141.aspx</link><pubDate>Wed, 30 Aug 2017 20:24:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117141</guid><dc:creator>djsolzs</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=117141</wfw:commentRss><description>Hi - I am looking for help with something similar.

I am currently doing a double eval to pull back &amp;quot;Display Name&amp;quot; on multiple values from a list.. but that pulls back more than just the users name (Example: Mickey Mouse, profile url, Department, etc)

I need to now split up the multiple values (or user names) in to a seperate textbox

I can get it to show me 1 name by using this as default value for the second text box:  substring-before(OPAckNeeded, &amp;quot;,&amp;quot;) which delivers Mickey Mouse. I need to be able to do a double eval on this to show all the names with a comma between (Mickey Mouse, Donald Duck, etc)

Any help much appreciated!</description></item><item><title>Re: Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/117140.aspx</link><pubDate>Wed, 30 Aug 2017 20:03:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117140</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117140.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=117140</wfw:commentRss><description>&lt;p dir="ltr"&gt;&amp;nbsp;So, one way to set up a double eval looks like this:&lt;/p&gt;
&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;
&lt;p&gt;eval(eval(&lt;u&gt;AccountId&lt;/u&gt;, &amp;#39;concat(., &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="margin-right:0px;" dir="ltr"&gt;Use the button for select a field or group to select the AccountId node.&lt;/p&gt;
&lt;p style="margin-right:0px;" dir="ltr"&gt;Then for your enhancement:&lt;/p&gt;
&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;
&lt;p style="margin-right:0px;" dir="ltr"&gt;&amp;nbsp;eval(eval(AccountId, &amp;#39;concat(substring-after(., &amp;quot;GLOBAL\&amp;quot;), &amp;quot;;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;)&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>Double eval with substring</title><link>https://www.infopathdev.com:443/forums/thread/117129.aspx</link><pubDate>Wed, 30 Aug 2017 14:21:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117129</guid><dc:creator>Fitchet86</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117129.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=117129</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all, &lt;/p&gt;&lt;p&gt;&amp;nbsp;Relatively new to all this InfoPath stuff and royally stuck on combining double eval when I have substring included in a formula already!&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I&amp;#39;m trying to do is send emails to multiple people from a people picker. I can get it to send to the first person, by taking the last part of the&amp;nbsp;Account ID and&amp;nbsp;using this to send the email, but I can&amp;#39;t get it to send to the other users who will be entered in the&amp;nbsp;picker. I&amp;#39;ve read all about double eval but can&amp;#39;t work out how to combine the two.&lt;/p&gt;&lt;p&gt;This is what I have so far for substring... just need some&amp;nbsp;help if possible with combining this with a double eval?&lt;/p&gt;&lt;p&gt;substring-after(&lt;u&gt;AccountId&lt;/u&gt;, &amp;quot;GLOBAL\&amp;quot;) &amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>