<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Picture Control and Linking</title><link>https://www.infopathdev.com:443/forums/thread/6799.aspx</link><pubDate>Sun, 08 May 2005 20:53:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6799</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6799.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6799</wfw:commentRss><description>Hi Ryan,&lt;br /&gt;You have specified an xpath to look for in the filter, but you did not specify from which Dom you want the data to be picked up.&lt;br /&gt;So I think your xpath should be,&lt;br /&gt;xdXDocument:GetDOM("Component Images")/dfs:myFields/dfs:dataFields/dfs:Component_Images[@Version = &lt;br /&gt;xdXDocument:get-DOM()/my:myFields/my:version and @Component = &lt;br /&gt;xdXDocument:get-DOM()/my:myFields/my:comp_name]/@Image_Link&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Picture Control and Linking</title><link>https://www.infopathdev.com:443/forums/thread/4654.aspx</link><pubDate>Fri, 06 May 2005 20:46:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4654</guid><dc:creator>Idisis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4654</wfw:commentRss><description>Hello All,&lt;br /&gt;&lt;br /&gt;  I am almost done my project (thank god and of course some of you).  The last thing I need to be able to do is read a image link from our sharepoint site and have it display in the form.  Unfortunatly this picture has to be dynamic, allow me to elaborate:&lt;br /&gt;&lt;br /&gt;On the sharepoint site is a list that houses the following columns (Component, Version, and Image_Link).  The Component performs a lookup on my components list, version is free form and Image_Link is a link that points to a picture on the web (within our sharepoint site in this case).&lt;br /&gt;&lt;br /&gt;Inside of InfoPath I have setup a data connection called 'Component Images'.  This data conenction links to the list above.  I have also placed a picture control onto the form and assigned it the 'Link to' value.  Inside the XPath of the picture control (named Image) is the following:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Component Images")/dfs:myFields/dfs:dataFields/dfs:Component_Images[@Version = "2.00" and @Component = "Building Select"]/@Image_Link.&lt;br /&gt;&lt;br /&gt;As you can see I have hardcoded the @Version and @Component values which works fine (it is displaying the picture for the 'Building Select' component of version '2.00').  The problem here is I want this to be dynamic.  "2.00" should be the name of my version control (my:version) and "Building Select" should be the name of my component control (my:comp_name).&lt;br /&gt;&lt;br /&gt;I have tried the following and several variations, but I cannot figure out what I am doing wrong:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Component Images")/dfs:myFields/dfs:dataFields/dfs:Component_Images[@Version = //my:version and @Component = //my:comp_name]/@Image_Link.&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("Component Images")/dfs:myFields/dfs:dataFields/dfs:Component_Images[@Version = my:version and @Component = my:comp_name]/@Image_Link.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any help would be greatly appreciated,&lt;br /&gt;Thanks,&lt;br /&gt;Ryan&lt;br /&gt;</description></item></channel></rss>