<?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: auto populating a read only text box</title><link>https://www.infopathdev.com:443/forums/thread/44087.aspx</link><pubDate>Fri, 10 Jul 2009 00:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44087</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44087.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44087</wfw:commentRss><description>&lt;p&gt;Hi Gagan,&lt;/p&gt;
&lt;p&gt;May have to do with the xpath axis not being correct (in other words, it doesn&amp;#39;t get the right Ingredient). Check out Greg&amp;#39;s blog entry on Axis: &lt;a href="http://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another way to do this is to just set the field. Add a rule to the 3rd dropdown that sets the field of the 4th. When you choose the 4th field to set you&amp;#39;ll get a filter button in the lower left corner of the dialog. Use that and you may not have to worry about writing your own xPath. &lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>auto populating a read only text box</title><link>https://www.infopathdev.com:443/forums/thread/43946.aspx</link><pubDate>Wed, 08 Jul 2009 13:48:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43946</guid><dc:creator>Gagan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=43946</wfw:commentRss><description>&lt;p&gt;hello all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i have set up an xml file so that drop downs automatically filter. it 4 levels deep.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; product&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ingredient&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code&lt;br /&gt;&lt;br /&gt;the first&amp;nbsp;3 are drop downs,&amp;nbsp;and filter just fine, so if i&amp;nbsp;pick a specific location, only those products show up and so on, so forth (using xml, and filter properties)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;the problem is for my &amp;quot;Code&amp;quot; i want a read only text box that popultes depending on the ingredient picked, the xml file usually only has one code for each&amp;nbsp;ingredient, but&amp;nbsp;sometimes more than one, but they are all the same when they duplicate. i&amp;nbsp;went into the text box properties and did the FX and selected the options the same way as i did the drop downs, but it does just not seem to work. the forumala for the text box ended up as &amp;quot;Code[@IngredientName = Ingredient]&amp;quot; (i did check update the value&amp;nbsp;when result is recalculated)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;so i am lost, any ideas?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>