<?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: Help with formula to set value in Rules available for button</title><link>https://www.infopathdev.com:443/forums/thread/62711.aspx</link><pubDate>Mon, 03 Jan 2011 16:23:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62711</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=62711</wfw:commentRss><description>&lt;p&gt;You say that this works fine so long as teh image is in the library but not in a folder. &lt;/p&gt;&lt;p&gt;Let&amp;#39;s first assume that the folder is under &amp;quot;PictureLibrary&amp;quot;. If that is the case, then this is a user-input issue. The user needs to not only enter the name of the image, but the folder. So instead of typing &amp;quot;picture1&amp;quot; they would need to type &amp;quot;folder3/picture1&amp;quot;.&lt;/p&gt;&lt;p&gt;Now if the folder is a sibling to &amp;quot;PictureLibrary&amp;quot; instead of a descendant, then the issue is with yoru concat() and the user input. In this case you would need to not concat &amp;quot;PictureLibrary&amp;quot; and the user will need to type in the complete folder path and picture name.&lt;/p&gt;&lt;p&gt;Your concat() also assumes that all images will be of type &amp;quot;.jpg&amp;quot;. Can you be certain that will always be the case and never &amp;quot;.png&amp;quot;? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Help with formula to set value in Rules available for button</title><link>https://www.infopathdev.com:443/forums/thread/62703.aspx</link><pubDate>Mon, 03 Jan 2011 06:43:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62703</guid><dc:creator>venkatzeus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=62703</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using Infopath 2010. I selected the SharePoint list template.&lt;br /&gt;In the page, I have a textbox(it is set as field2), button and a rich textbox(it is set as field1).&lt;/p&gt;
&lt;p&gt;The requirement is, the user inputs the imagename in the textbox(that is field2) and clicks on the button. On the button click, i need to retrrieve the image from the picture library and show it in form. To display the picture, i have added the richtextbox and set it to readonly option.&lt;/p&gt;
&lt;p&gt;In the Rules for button, I have done the following:&lt;/p&gt;
&lt;p&gt;Action: Query for data - In the Data connection - receive data - selected the picture library, where the images are available.&lt;/p&gt;
&lt;p&gt;Action: Set a field&amp;#39;s value - Field - I selected the richtextbox(that is field1).&lt;/p&gt;
&lt;p&gt;In the button, added rule like this:&lt;/p&gt;
&lt;p&gt;concat(SharePointsiteurl(),&amp;quot;PictureLibrary/&amp;quot;,field2,&amp;quot;.jpg&amp;quot;)&lt;/p&gt;
&lt;p&gt;The above rule is working fine, if the image available inside the picture library.&lt;/p&gt;
&lt;p&gt;But, if the Image is inside some folder, then I am not able to retrieve the image.&lt;/p&gt;
&lt;p&gt;what should be set for the Value? I am not sure of using whiich formula to use and show the image. I need to show the image which matches the input given by the user.&lt;/p&gt;
&lt;p&gt;How to achieve this? Is the above method, which i done, is it correct?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>