<?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: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/94753.aspx</link><pubDate>Thu, 12 Dec 2013 20:34:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94753</guid><dc:creator>jcollins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94753</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;&lt;strong&gt;Jimmy wrote the following post at 07-07-2011 04:29 AM&lt;/strong&gt;:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;translate() is case-sensitive and that might account for your seemingly conflicting results.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;aaargh! After spending about an hour trying to accomplish this, I finally saw Jimmy&amp;#39;s comment about translate being case sensitive. Thanks - got it working now!&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/87414.aspx</link><pubDate>Mon, 25 Feb 2013 18:55:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87414</guid><dc:creator>J-e-s-s-154</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87414</wfw:commentRss><description>&lt;p&gt;I have tried following the suggestions in this post and am not getting the result I need. I have concatenated three data sets in a drop down&amp;nbsp;box (pulling from a list)&amp;nbsp;and when I make a selection, each data set needs to populate the corresponding box (via the calculated field function).&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The name of my drop down field is Part_Number and the options look like this &amp;quot;21TMP9 / Wires / Mechanical wires&amp;quot;. &lt;br /&gt;The three node fields are PartNumber / Nomenclature / Description. &lt;br /&gt;I am able to have PartNumber and Description populate correctly via&amp;nbsp;a substring but cannot get the middle node to substring data. &lt;br /&gt;I have tried the following: substring-after(substring-before(Part_Number, &amp;quot; / &amp;quot;), &amp;quot; / &amp;quot;) and substring-before(substring-after(Part_Number, concat(Part_Number, &amp;quot; / &amp;quot;)), &amp;quot; / &amp;quot;) and both result in a blank entry for the middle node &amp;quot;Wires&amp;quot;. Any suggestions how to pull the middle node in this case since it is using only &amp;quot;/&amp;quot; to separate them? TIA&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/86787.aspx</link><pubDate>Wed, 06 Feb 2013 15:38:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86787</guid><dc:creator>jacooper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86787</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m actually following this suggestion from the threads but it&amp;#39;s still displaying the domain with the accountid, I tried the comma option&lt;/p&gt;
&lt;div class="ForumPostContentText"&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;img src="http://www.infopathdev.com/Themes/infopathdev/images/icon-quote.gif" alt="" /&gt; &lt;strong&gt;sofusok:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;I inserted a textbox to view the content of the strAccountIds field and it turned out that the user-part (DOMAIN\&amp;quot;user1&amp;quot;) was a mix of upper- and lowercase letters.&lt;/p&gt;
&lt;p&gt;I wanted to avoid using a secondary data connection and &amp;#39;extract&amp;#39; the values by using formulas. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Being inspired by this thread http://eai.ittoolbox.com/groups/technical-functional/tibco-l/how-can-i-remove-20-from-variable-using-xpath-1655345 , I ended up with&amp;nbsp; the following solution:&lt;/p&gt;
&lt;p&gt;On the field strAccountIds I applied a rule with the condition &amp;quot;strAccountIds contains &amp;quot;DOMAIN\&amp;quot;&lt;/p&gt;
&lt;p&gt;and the action: &lt;/p&gt;
&lt;p&gt;set a fields value .=concat(substring-before(.; &amp;quot;DOMAIN\&amp;quot;); substring-after(.; &amp;quot;DOMAIN\&amp;quot;)) &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/86785.aspx</link><pubDate>Wed, 06 Feb 2013 15:25:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86785</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86785</wfw:commentRss><description>&lt;p&gt;Hi - do you mean your rule doesn&amp;#39;t like the semi-colon? I&amp;#39;m not suprised.... this formula would use commas instead:&lt;/p&gt;&lt;p&gt;concat(substring-before(., &amp;quot;DOMAIN\&amp;quot;), substring-after(., &amp;quot;DOMAIN\&amp;quot;)) &lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/86767.aspx</link><pubDate>Wed, 06 Feb 2013 08:22:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86767</guid><dc:creator>jacooper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86767</wfw:commentRss><description>&lt;p&gt;This looks good for my needs but the code doesn&amp;#39;t like the semi colon, any help appreciated&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;sofusok:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;I inserted a textbox to view the content of the strAccountIds field and it turned out that the user-part (DOMAIN\&amp;quot;user1&amp;quot;) was a mix of upper- and lowercase letters.&lt;/p&gt;
&lt;p&gt;I wanted to avoid using a secondary data connection and &amp;#39;extract&amp;#39; the values by using formulas. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Being inspired by this thread http://eai.ittoolbox.com/groups/technical-functional/tibco-l/how-can-i-remove-20-from-variable-using-xpath-1655345 , I ended up with&amp;nbsp; the following solution:&lt;/p&gt;
&lt;p&gt;On the field strAccountIds I applied a rule with the condition &amp;quot;strAccountIds contains &amp;quot;DOMAIN\&amp;quot;&lt;/p&gt;
&lt;p&gt;and the action: &lt;/p&gt;
&lt;p&gt;set a fields value .=concat(substring-before(.; &amp;quot;DOMAIN\&amp;quot;); substring-after(.; &amp;quot;DOMAIN\&amp;quot;)) &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68243.aspx</link><pubDate>Fri, 08 Jul 2011 18:20:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68243</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68243.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68243</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not sure why you&amp;#39;d want to avoid using a secondary XML file connection.&amp;nbsp; They don&amp;#39;t really have any downsides to speak of.&amp;nbsp; Your approach will work to process up to about 16 or less names, at which point InfoPath will give up with an error.&amp;nbsp; So if you do go with that approach, please test it to&amp;nbsp;ensure that it can support the maximum number of names that someone might use in that field.&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68225.aspx</link><pubDate>Fri, 08 Jul 2011 12:11:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68225</guid><dc:creator>sofusok</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68225</wfw:commentRss><description>&lt;p&gt;I inserted a textbox to view the content of the strAccountIds field and it turned out that the user-part (DOMAIN\&amp;quot;user1&amp;quot;) was a mix of upper- and lowercase letters.&lt;/p&gt;&lt;p&gt;I wanted to avoid using a secondary data connection and &amp;#39;extract&amp;#39; the values by using formulas. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Being inspired by this thread http://eai.ittoolbox.com/groups/technical-functional/tibco-l/how-can-i-remove-20-from-variable-using-xpath-1655345 , I ended up with&amp;nbsp; the following solution:&lt;/p&gt;&lt;p&gt;On the field strAccountIds I applied a rule with the condition &amp;quot;strAccountIds contains &amp;quot;DOMAIN\&amp;quot;&lt;/p&gt;&lt;p&gt;and the action: &lt;/p&gt;&lt;p&gt;set a fields value .=concat(substring-before(.; &amp;quot;DOMAIN\&amp;quot;); substring-after(.; &amp;quot;DOMAIN\&amp;quot;)) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68169.aspx</link><pubDate>Thu, 07 Jul 2011 08:29:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68169</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68169</wfw:commentRss><description>&lt;p&gt;translate() is case-sensitive and that might account for your seemingly conflicting results.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching a form that uses a secondary XML data source as a staging area for breaking down the list and then building it back up.&amp;nbsp; I&amp;#39;ve included the secondary source&amp;#39;s contents in the view so you can see what&amp;#39;s going on behind the scenes.&amp;nbsp; The operation is limited by the number of &amp;lt;User&amp;gt; nodes in the secondary source, but you should be able to arbitrary increase that number to what seems like more than enough.&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68167.aspx</link><pubDate>Thu, 07 Jul 2011 06:40:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68167</guid><dc:creator>sofusok</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68167</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Jimmy,&lt;/p&gt;&lt;p&gt;Having done some more through testing I can see you are right..there&amp;#39;s an issue with removing too many characters..thanks for telling me.&lt;/p&gt;&lt;p&gt;For now I can&amp;#39;t really find any logic in it..&amp;nbsp; user1, user2 etc. are initials &lt;br /&gt;&lt;/p&gt;&lt;p&gt;If I have DOMAIN\fn , it results in &amp;#39;f&amp;#39; (cutting off the n)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If I have DOMAIN\nd&amp;nbsp; , it results in &amp;#39;nd&amp;#39; (as it should)&lt;/p&gt;&lt;p&gt;So it is not all the letters from the domain name appearing elsewhere that are removed.&lt;/p&gt;&lt;p&gt;Anyone has any thoughts on this? / An alternative to using translate()? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68114.aspx</link><pubDate>Wed, 06 Jul 2011 12:55:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68114</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68114.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68114</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m afraid that using translate() here will not only remove the part you want, but will also remove the letters from the domain name that appear anywhere else, so if you had:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;DOMAIN\Dom Delouise;DOMAIN\Ned Flanders&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You would wind up with&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;om elouise;ed Flanders&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Is that not the case?&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68111.aspx</link><pubDate>Wed, 06 Jul 2011 12:21:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68111</guid><dc:creator>sofusok</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68111</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks a bunch..worked like a charm..and results in a more elegant (I hope) solution, since I no longer have to get the usernames via the GetUserProfileByName webservice but can simply get them from the AccountId in the People picker.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68109.aspx</link><pubDate>Wed, 06 Jul 2011 12:07:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68109</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68109</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Take a look at the translate() function.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Something like this should work: translate(yourfield, &amp;quot;DOMAIN\&amp;quot;, &amp;quot;&amp;quot;) &lt;/p&gt;&lt;p&gt;Good luck. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Extracting values between specific characters in string</title><link>https://www.infopathdev.com:443/forums/thread/68106.aspx</link><pubDate>Wed, 06 Jul 2011 09:44:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68106</guid><dc:creator>sofusok</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68106</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;Hope you can help me on this one:&lt;/p&gt;&lt;p&gt;I have a field (&amp;quot;strAccountIds&amp;quot;) containing a concatenated string delimited by semicolon, e.g. DOMAIN\user1;DOMAIN\user2;DOMAIN\user3.&lt;/p&gt;&lt;p&gt;From this string I would like to extract this string:&lt;/p&gt;&lt;p&gt;user1;user2;user3&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried using concat and substring-after and substring-before like this: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;concat(substring-before(substring-after(strAccountIds; &amp;quot;\&amp;quot;); &amp;quot;;&amp;quot;); &amp;quot;;&amp;quot;)&lt;/p&gt;&lt;p&gt;This formula only returns &amp;quot;user1;&amp;quot;&amp;nbsp; - I need it to return everything in between every set of &amp;quot;\&amp;quot; and &amp;quot;;&amp;quot;, i.e. all users, not just the first one. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I haven&amp;#39;t been able to find relevant forum posts since the length of the concatenated string varies (as it is based on the number of users selected in a people picker).&lt;/p&gt;&lt;p&gt;I took a look at this post http://www.infopathdev.com/forums/p/12278/43085.aspx#43085&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I can understand how to parse a string when there is a fixed number of delimeters but how to do it when the number of delimeters varies?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope you can direct me to relevant posts, links or the like .. I&amp;#39;d be really grateful. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>