<?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: infopath set a field's Value</title><link>https://www.infopathdev.com:443/forums/thread/71499.aspx</link><pubDate>Fri, 28 Oct 2011 18:33:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71499</guid><dc:creator>Glebron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71499</wfw:commentRss><description>&lt;p&gt;Well doing it that way worked Great... I wasnt using the Filter button .. thank so Much &lt;/p&gt;</description></item><item><title>Re: infopath set a field's Value</title><link>https://www.infopathdev.com:443/forums/thread/71497.aspx</link><pubDate>Fri, 28 Oct 2011 18:08:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71497</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71497.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71497</wfw:commentRss><description>&lt;p&gt;So you are getting this result with insert field or group? That&amp;#39;s odd. I&amp;#39;d expect you to get the first result.&lt;/p&gt;
&lt;p&gt;You need to use insert field or group, then add a filter to the field you select (using the filter button). Select the name field from your secondary data source, then &amp;quot;is equal to&amp;quot; and finally, the main data source field you are comparing to.&lt;/p&gt;</description></item><item><title>Re: infopath set a field's Value</title><link>https://www.infopathdev.com:443/forums/thread/71496.aspx</link><pubDate>Fri, 28 Oct 2011 17:57:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71496</guid><dc:creator>Glebron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71496.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71496</wfw:commentRss><description>&lt;p&gt;Hmmm. I think i understand what you mean. But I dont know how to write code so i rely on Insert Formula.&amp;nbsp; any reason why the out put is not the same is there a setting i am missing.&lt;/p&gt;
&lt;p&gt;All i am doing is inserting a field or group&amp;nbsp; button and picking my fields is there something i am doing wrong? &lt;/p&gt;</description></item><item><title>Re: infopath set a field's Value</title><link>https://www.infopathdev.com:443/forums/thread/71495.aspx</link><pubDate>Fri, 28 Oct 2011 17:14:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71495</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71495.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71495</wfw:commentRss><description>&lt;p&gt;But it is not the same. The filter is quite different:&lt;/p&gt;
&lt;p&gt;[../@Name = xdXDocument:get-DOM()/my:assetTracking/my:employee/my:BillToName]&lt;/p&gt;
&lt;p&gt;vs.&lt;/p&gt;
&lt;p&gt;[xdXDocument:GetDOM(&amp;quot;ARCustomer&amp;quot;)/dfs:myFields/dfs:dataFields/d:ARCustomer/@Name = BillToName]&lt;/p&gt;
&lt;p&gt;In the first sample, you are already at the AddressLine1 attribute in your XPath, and then you go back up to the ARCustomer node (..) and select the Name attribute. There is an equal sign, and then the full XPath to the BillToName field in the main data source.&lt;/p&gt;
&lt;p&gt;In you second sample, you are already at the AddressLine1 attribute in your XPath, and then use the full XPath to select the Name attribute. However, that full XPath will always select the first name attribute (I&amp;#39;m assuming that ARCustomer is repeating). The BillToName field is not in the ARCustomer data source - and is also lacking its namespace prefix.&lt;/p&gt;</description></item><item><title>infopath set a field's Value</title><link>https://www.infopathdev.com:443/forums/thread/71494.aspx</link><pubDate>Fri, 28 Oct 2011 17:05:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71494</guid><dc:creator>Glebron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71494.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71494</wfw:commentRss><description>&lt;p&gt;Ok So I have a form that I use. I have a dropdown field linked to an external data Srouce and based on what the user chooses it populates the address fields, Work fine Now&amp;nbsp;I trying to edit the form and add more&amp;nbsp;fields to populate using Set a Field but, it wont work I even delete the current one and added a new one the same exact way and still nothing... only thing i can see is&amp;nbsp;the xpath is&amp;nbsp;diffrent for some reason but it looks the&amp;nbsp;exact same Fx...&lt;/p&gt;
&lt;p&gt;Works&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;xdXDocument:GetDOM(&amp;quot;ARCustomer&amp;quot;)/dfs:myFields/dfs:dataFields/d:ARCustomer/@AddressLine1[../@Name = xdXDocument:get-DOM()/my:assetTracking/my:employee/my:BillToName]&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;&amp;nbsp;Dont Work&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;&lt;font face="Calibri"&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;&lt;strong&gt;xdXDocument:GetDOM(&amp;quot;ARCustomer&amp;quot;)/dfs:myFields/dfs:dataFields/d:ARCustomer/@AddressLine1[xdXDocument:GetDOM(&amp;quot;ARCustomer&amp;quot;)/dfs:myFields/dfs:dataFields/d:ARCustomer/@Name = BillToName&lt;/strong&gt;]&lt;/span&gt;&lt;/p&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;but its the same Line... &amp;nbsp;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:8pt;"&gt;@AddressLine1[@Name = BillToName]&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;</description></item></channel></rss>