<?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: Convert string to URL?</title><link>https://www.infopathdev.com:443/forums/thread/87908.aspx</link><pubDate>Mon, 11 Mar 2013 19:37:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87908</guid><dc:creator>smonczka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87908</wfw:commentRss><description>&lt;p&gt;Patrick&amp;nbsp; thanks for the responce.&amp;nbsp; From what I have been able to tell this is a regular problem for people trying create dynamic links to SharePoint documents.&amp;nbsp; For the moment I have asked the users not to use spaces in thier file names while I work out a fix.&amp;nbsp; As you have stated doing this in InfoPath with Translate and Concat is a time suck.&amp;nbsp;I&amp;#39;m going to try another tactic and see if I can create a workflow that might acomplish the same thing.&lt;/p&gt;&lt;p&gt;Thanks again for your responce.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Convert string to URL?</title><link>https://www.infopathdev.com:443/forums/thread/87844.aspx</link><pubDate>Sat, 09 Mar 2013 21:11:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87844</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87844</wfw:commentRss><description>&lt;p&gt;Well, first off, you could disable save and use a submit button instead and force the name to not have spaces... :)&lt;/p&gt;&lt;p&gt;If you can&amp;#39;t use translate, how about substring and concat? Something like: concat(substring-before(../my:field1, &amp;quot; &amp;quot;), &amp;quot;%20&amp;quot;, substring-after(../my:field1, &amp;quot; &amp;quot;))&lt;/p&gt;&lt;p&gt;To do multiple spaces, you&amp;#39;ll have to use eval(eval(...)) trick to get it to concatenate. Might take 20 minutes to figure out the expression... but DOABLE.&lt;/p&gt;&lt;p&gt;Once again, though, you&amp;#39;re better off just not letting them add spaces or special characters. Just translate those into nothing and force the save by submitting via a custom button in the form and disabling the file-save and file-saveas buttons.&lt;/p&gt;</description></item><item><title>Convert string to URL?</title><link>https://www.infopathdev.com:443/forums/thread/87723.aspx</link><pubDate>Wed, 06 Mar 2013 18:34:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87723</guid><dc:creator>smonczka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=87723</wfw:commentRss><description>&lt;p&gt;How can I convert a string such as &amp;quot;&lt;a href="https://portal.com/test"&gt;https://portal.com/test&lt;/a&gt;&amp;nbsp;text.doc&amp;quot; to &amp;quot;&lt;a href="https://portal.com/test%20text.doc"&gt;https://portal.com/test%20text.doc&lt;/a&gt;&amp;quot;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am pulling in SharePoint list field that has a URL in it.&amp;nbsp; I am then placing that information&amp;nbsp;a HyperLink control on the form.&amp;nbsp; &lt;/p&gt;&lt;p&gt;When I test the link in the client (InfoPath) the link opens up as &lt;a href="https://portal.com/test%20text.doc"&gt;https://portal.com/test%20text.doc&lt;/a&gt;&lt;/p&gt;&lt;p&gt;But when I open up the form in SharePoint (as a browser based form) it opens the link as &lt;a href="https://portal.com/test"&gt;https://portal.com/test&lt;/a&gt;&amp;nbsp;text.doc and can not find the document.&lt;/p&gt;&lt;p&gt;I have tried using the Translate Function to add the &amp;quot;%20&amp;quot; to the string this pull the field in as text and the link in the form will not work.&amp;nbsp; I have also tried concat the string&amp;nbsp;by adding &amp;quot; &amp;quot; around the url but this caused problems with &amp;quot;&amp;nbsp;example... concat(&amp;quot;&amp;nbsp;&amp;quot; &amp;quot;,translate(url, &amp;quot; &amp;quot;, &amp;quot;%20&amp;quot;),&amp;quot; &amp;quot; &amp;quot;).&amp;nbsp; I was hoping this would return... &amp;quot;&lt;a href="https://portal.com/test%20text.doc"&gt;https://portal.com/test%20text.doc&lt;/a&gt;&amp;quot;&lt;/p&gt;&lt;p&gt;Any ideas would be appreciated&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>