<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Combination XPath for an image source</title><link>https://www.infopathdev.com:443/forums/thread/116412.aspx</link><pubDate>Thu, 01 Jun 2017 15:06:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116412</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=116412</wfw:commentRss><description>&lt;p&gt;So - I think that yes, you could do this. You&amp;#39;ll need to use a concat formula - concat(fieldwithURL, &amp;quot;/&amp;quot;, fieldwithpicturevalue) for example, and use that for the default value of a field that is bound to a linked pic. Simple sample attached. Save the file locally, right click, select design &amp;amp; preview. You&amp;#39;ll see in my sample the equivalent to your @picture includes a bit more of the path, that&amp;#39;s just because I was looking for publically available images with similar URLs to kind of mock up the concept. :)&lt;/p&gt;</description></item><item><title>Combination XPath for an image source</title><link>https://www.infopathdev.com:443/forums/thread/116404.aspx</link><pubDate>Tue, 30 May 2017 22:27:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116404</guid><dc:creator>kee81</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=116404</wfw:commentRss><description>Hey all,

I&amp;#39;ve got a form where a user can select an image from a file picker, and just the file name+extension is saved in the database. The filepath to the image folder is stored in a separate table, a table which only ever has 1 record, which is queried for via a secondary data source. Is it possible to have a picture control on the InfoPath form that concatenates the image path + file name/extension? That way the user can actually see the image on the form. You can kind of see my structure below. @picture is the filename+extention of the current record on the main data source. The XPath path is the secondary data source.

What I&amp;#39;ve been trying is something like this:

/dfs:myFields/dfs:dataFields/d:settings/@image_directory + @picture
/dfs:myFields/dfs:dataFields/d:settings/@image_directory[0] + @picture
/dfs:myFields/dfs:dataFields/d:settings/@image_directory[1] + @picture
/dfs:myFields/dfs:dataFields/d:settings[0]/@image_directory + @picture
...

etc. Been trying those variations and can&amp;#39;t seem to get it to work. I know the data source is successfully querying the image path. Not even sure if it&amp;#39;s possible to do it that way. Would be nice in case we decide to move the files later.

Cheers,
Rich</description></item></channel></rss>