<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Any Infopath function similar to 'REVERSE' function present in SQL</title><link>https://www.infopathdev.com:443/forums/thread/83110.aspx</link><pubDate>Fri, 28 Sep 2012 10:19:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83110</guid><dc:creator>Chakradhar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=83110</wfw:commentRss><description>&lt;p&gt;Hi Vanin,&lt;/p&gt;
&lt;p&gt;It is what i was looking after, Thanks a ton, you saved my day. &lt;/p&gt;
&lt;p&gt;Chakradhar.&lt;/p&gt;</description></item><item><title>Re: Any Infopath function similar to 'REVERSE' function present in SQL</title><link>https://www.infopathdev.com:443/forums/thread/83068.aspx</link><pubDate>Thu, 27 Sep 2012 12:22:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83068</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=83068</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Chakradhar:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;font face="Calibri" size="3"&gt;If there are lot of words separated by &amp;#39;,&amp;#39; (Comma) in the textbox, then I need to find the &lt;b style="mso-bidi-font-weight:normal;"&gt;LAST&lt;/b&gt; &amp;#39;,&amp;#39;(comma) and then delete/remove the characters starting from that &amp;#39;,&amp;#39;(comma).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Enclosed please find the XSN template demonstrating how to do it in Infopath with rules.&lt;/p&gt;&lt;p&gt;I have there intermediary data field &lt;b&gt;ending_string&lt;/b&gt; where I get the ending after last comma string&amp;nbsp; having organized iteration using &lt;b&gt;substring-after( )&lt;/b&gt; function and then using &lt;b&gt;ending_string&lt;/b&gt; value to get final result by &lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;substring-before(field1; concat(&amp;quot;,&amp;quot;; ending_string))&lt;/b&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Any Infopath function similar to 'REVERSE' function present in SQL</title><link>https://www.infopathdev.com:443/forums/thread/83067.aspx</link><pubDate>Thu, 27 Sep 2012 10:10:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83067</guid><dc:creator>Chakradhar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=83067</wfw:commentRss><description>&lt;p&gt;Hello EveryOne,&lt;/p&gt;
&lt;p&gt;I found below recursive template on the net for the similar issue, but&amp;nbsp;i&amp;nbsp;am not sure how can below template is used in infopath and resolve the above issue.&lt;/p&gt;
&lt;p&gt;Please can anyone guide me on the same on how to resolve the issue &lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:template name=&amp;quot;substring-after-last&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;xsl:param name=&amp;quot;string&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;xsl:param name=&amp;quot;delimiter&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:when test=&amp;quot;contains($string, $delimiter)&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:call-template name=&amp;quot;substring-after-last&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:with-param name=&amp;quot;string&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select=&amp;quot;substring-after($string, $delimiter)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:with-param name=&amp;quot;delimiter&amp;quot; select=&amp;quot;$delimiter&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:call-template&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:otherwise&amp;gt;&amp;lt;xsl:value-of select=&amp;quot;$string&amp;quot; /&amp;gt;&amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Chakradhar.&lt;/p&gt;</description></item><item><title>Re: Any Infopath function similar to 'REVERSE' function present in SQL</title><link>https://www.infopathdev.com:443/forums/thread/83035.aspx</link><pubDate>Wed, 26 Sep 2012 13:40:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83035</guid><dc:creator>Chakradhar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=83035</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Hi Everyone,&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;To be more precise of the above issue:&lt;/font&gt;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;If there are lot of words separated by &amp;#39;,&amp;#39; (Comma) in the textbox, then I need to find the &lt;b style="mso-bidi-font-weight:normal;"&gt;LAST&lt;/b&gt; &amp;#39;,&amp;#39;(comma) and then delete/remove the characters starting from that &amp;#39;,&amp;#39;(comma).&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Thanks,&lt;/font&gt;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Chakradhar.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Any Infopath function similar to 'REVERSE' function present in SQL</title><link>https://www.infopathdev.com:443/forums/thread/83034.aspx</link><pubDate>Wed, 26 Sep 2012 13:22:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83034</guid><dc:creator>Chakradhar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=83034</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Hi Everyone,&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;I have a textbox and getting the data (multiple words separated by comma) from other fields into it.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Now, I need to restrict the textbox by showing only first 10 characters by removing the remaining characters and also need to remove the word/characters which are coming in middle of 10&lt;sup&gt;th&lt;/sup&gt; character.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;So I have written the below query to achieve the same in SQL and it is working fine in SQL.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;DECLARE @row varchar&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;50&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;DECLARE @10Char varchar&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;50&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;SET @row &lt;span style="COLOR:gray;"&gt;=&lt;/span&gt; &lt;span style="COLOR:red;"&gt;&amp;#39;OPI,Rock,Template&amp;#39;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Set @10Char &lt;span style="COLOR:gray;"&gt;=&lt;/span&gt; &lt;span style="COLOR:gray;"&gt;left ((&lt;/span&gt;@row&lt;span style="COLOR:gray;"&gt;),&lt;/span&gt; 11&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;span style="COLOR:green;"&gt;SELECT&lt;/span&gt; &lt;span style="COLOR:fuchsia;"&gt;substring&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;@10Char&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;len&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(Left((&lt;/span&gt;@10Char&lt;span style="COLOR:gray;"&gt;),&lt;/span&gt;1&lt;span style="COLOR:gray;"&gt;)),&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;LEN&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;@10Char&lt;span style="COLOR:gray;"&gt;)-&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;CHARINDEX&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;,&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:fuchsia;"&gt;REVERSE&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;@10Char&lt;span style="COLOR:gray;"&gt;)))&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;b style="mso-bidi-font-weight:normal;"&gt;Output&lt;/b&gt;: OPI,Rock &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;(Here the 10&lt;sup&gt;th&lt;/sup&gt; character is coming in-between the word ‘template’, So it removed the completed word ‘template’ after ‘,’)&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;I tried to apply the same formula in InfoPath, but I didn’t find the &lt;b style="mso-bidi-font-weight:normal;"&gt;REVERSE&lt;/b&gt; or &lt;b style="mso-bidi-font-weight:normal;"&gt;CHARINDEX&lt;/b&gt; functions present in InfoPath 2010.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Please let me know how we can achieve the above functionality using Rules and functions (Codeless) at the earliest as possible.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Thanks in advance.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Chakradhar.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>