<?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: XPath for Rule</title><link>https://www.infopathdev.com:443/forums/thread/78859.aspx</link><pubDate>Tue, 22 May 2012 21:25:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78859</guid><dc:creator>patrickli415</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78859.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=78859</wfw:commentRss><description>&lt;p&gt;Oh!&amp;nbsp; That makes so much sense now.&amp;nbsp; I was running under the assumption that InfoPath dealt with XML Nodes like Access does with tables but it makes complete sense that you need to refer to the main source.&amp;nbsp; I&amp;#39;ll try this and see if it works!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;EDIT: Success!&amp;nbsp; Thanks for the help Jimmy!&lt;/p&gt;</description></item><item><title>Re: XPath for Rule</title><link>https://www.infopathdev.com:443/forums/thread/78855.aspx</link><pubDate>Tue, 22 May 2012 19:02:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78855</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78855.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=78855</wfw:commentRss><description>&lt;p&gt;Within those brackets, the XPath is in the context of the secondary data source, so to refer back to the main data source, you need to use xdXDocument:get-DOM():&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;InfoPath&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:InfoPath[@Brx_Lot = xdXDocument:get-DOM()/my:myFields/my:brx_lot]/@Thaw_Date &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The @ symbol is indeed for referring to attributes, and I daresay that is its sole purpose in XPath.&amp;nbsp; In this your post, @Brx_Lot is referring to the Brx_Lot attribute, and @Thaw_Date refers to the Thaw_Date attribute.&lt;/p&gt;</description></item><item><title>XPath for Rule</title><link>https://www.infopathdev.com:443/forums/thread/78852.aspx</link><pubDate>Tue, 22 May 2012 18:05:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78852</guid><dc:creator>patrickli415</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=78852</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to insert a value into a field(Thaw_Date) if data in the secondary data source matches up with a field (Brx_Lot) in the current form.&amp;nbsp; I&amp;#39;m a novice at XPath but I have the following code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;InfoPath&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:InfoPath[@Brx_Lot = /my:myFields/my:brx_lot]/@Thaw_Date &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want it to be returning the Thaw_Date if the Brx_Lot in the secondary source is equal to the brx_lot in the current form.&amp;nbsp; I have taken a look at the XML and I don&amp;#39;t see the dataFields or InfoPath nodes but it was what InfoPath put into the XPath after selecting a field.&amp;nbsp; In addition, if anyone could clarify the use of the &amp;quot;@&amp;quot; (I know it as an attribute identifier, but it seems to be referring the the value of a node in InfoPath) that would be great.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>