<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need help with the translate function for mixed case</title><link>https://www.infopathdev.com:443/forums/thread/78672.aspx</link><pubDate>Wed, 16 May 2012 17:43:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78672</guid><dc:creator>ladyath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=78672</wfw:commentRss><description>&lt;p&gt;Anson:&amp;nbsp; Being a newb, I have no idea how to go about using a substring...and...er...the rest you mentioned.&lt;/p&gt;&lt;p&gt;Jimmy:&amp;nbsp; but would the string-compare work only on values that are like for like or would it be able to compare if a the logged in user is in the specific sharepoint group I specified in my UserGroup.asmx&amp;nbsp;lookup?&lt;/p&gt;</description></item><item><title>Re: Need help with the translate function for mixed case</title><link>https://www.infopathdev.com:443/forums/thread/78671.aspx</link><pubDate>Wed, 16 May 2012 17:13:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78671</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=78671</wfw:commentRss><description>&lt;p&gt;Rather than translate(), a simpler and more reliable way to perform an case insensitive string comparison is to use msxsl:string-compare():&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;msxsl:string-compare(&lt;strong&gt;&lt;u&gt;firstValue&lt;/u&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;u&gt;secondValue&lt;/u&gt;&lt;/strong&gt;, &amp;#39;&amp;#39;, &amp;#39;i&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This will return 0 if the values are the same (regardless of case) and -1 or 1 if they are different, so to check if they were the same, you would do this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;msxsl:string-compare(&lt;strong&gt;&lt;u&gt;firstValue&lt;/u&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;u&gt;secondValue&lt;/u&gt;&lt;/strong&gt;, &amp;#39;&amp;#39;, &amp;#39;i&amp;#39;) = 0&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Need help with the translate function for mixed case</title><link>https://www.infopathdev.com:443/forums/thread/78666.aspx</link><pubDate>Wed, 16 May 2012 16:50:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78666</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78666.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=78666</wfw:commentRss><description>&lt;p&gt;You could do a substring to grab everything up to the slash and then uppercase that string.&amp;nbsp; Likewise for everything after the slash but instead doing lowercase.&lt;/p&gt;</description></item><item><title>Need help with the translate function for mixed case</title><link>https://www.infopathdev.com:443/forums/thread/78649.aspx</link><pubDate>Wed, 16 May 2012 13:48:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78649</guid><dc:creator>ladyath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=78649</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I am creating a form that needs to check a username against a Sharepoint group to determine if certain controls would be displayed on an Infopath form.&amp;nbsp; Using Sharepoint &amp;amp; Infopath 2010.&amp;nbsp; The problem is that the case of the AD username does not match the case of the Sharepoint group so I figure I need to use&amp;nbsp;translate to fix that.&amp;nbsp; But I have no idea how to&amp;nbsp;turn domain\USERNAME into DOMAIN\username since all examples seems to force either entire upper or lowercase.&amp;nbsp; The field that displays the username is set as:&lt;/p&gt;&lt;p&gt;Value[Name = &amp;quot;AccountName&amp;quot;]&lt;/p&gt;&lt;p&gt;and I am using the tutorials from &lt;a href="http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group"&gt;http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group&lt;/a&gt;&amp;nbsp;and &lt;a href="http://www.projectpoint.at/?p=97"&gt;http://www.projectpoint.at/?p=97&lt;/a&gt;&amp;nbsp;(tried both) to do what I need to.&amp;nbsp; But the username always returns as not being a member of the group and I suspect it is because of the mismatch in case.&lt;/p&gt;&lt;p&gt;Help would be much appreciated.&lt;/p&gt;</description></item></channel></rss>