<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set field value based on value selected in drop-down</title><link>https://www.infopathdev.com:443/forums/thread/76134.aspx</link><pubDate>Tue, 06 Mar 2012 17:48:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76134</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76134.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=76134</wfw:commentRss><description>Perhaps this video tutorial might help: &lt;a href="http://www.youtube.com/watch?v=SH7xUEcQwwg"&gt;http://www.youtube.com/watch?v=SH7xUEcQwwg&lt;/a&gt;</description></item><item><title>Set field value based on value selected in drop-down</title><link>https://www.infopathdev.com:443/forums/thread/76099.aspx</link><pubDate>Mon, 05 Mar 2012 17:50:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76099</guid><dc:creator>kaylamm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=76099</wfw:commentRss><description>&lt;p&gt;A user selects a J Number from a drop-down. This j number carries a WNumber, and is populated from a data connection.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I want to set the value of a hidden field in the main data source to equal the&amp;nbsp;WNumber that is selected in the drop-down. Here is the rule setup on the drop-down:&lt;/p&gt;&lt;p&gt;Set fields value: ID = WNumber [_ID = current()]&lt;/p&gt;&lt;p&gt;ID&amp;nbsp;-main&amp;nbsp;data source&lt;br /&gt;WNumber - secondary data source that populates the drop-down (WNumber is equivalent of the id)&lt;br /&gt;_ID - secondary data source that gets data to populate other fields on the form&lt;/p&gt;&lt;p&gt;Here is the XPath: xdXDocument:GetDOM(&amp;quot;getJList&amp;quot;)/dfs:myFields/dfs:dataFields/tns:getJListResponse/tns:getJListResult/NewDataSet/JList/WNumber[xdXDocument:GetDOM(&amp;quot;W Data&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:W_Data/@\_ID = current()]&lt;/p&gt;&lt;p&gt;My main issue is that I can&amp;#39;t figure out how to properly filter the ID. The WNumber/ID is selected from the drop-down. I just want whatever that value is to be copied into this other hidden field. Seems simple, but i cannot get the filter right.&lt;/p&gt;</description></item></channel></rss>