<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88404.aspx</link><pubDate>Wed, 27 Mar 2013 01:08:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88404</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88404</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Wonderful, glad to hear it!&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88403.aspx</link><pubDate>Tue, 26 Mar 2013 23:35:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88403</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88403</wfw:commentRss><description>Works perfectly now :) Thanks a bunch for your help!!</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88402.aspx</link><pubDate>Tue, 26 Mar 2013 23:26:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88402</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88402</wfw:commentRss><description>Ah, yes... oops. My bad. I was getting it mixed up where the filter should go and I didn&amp;#39;t look at your example properly!</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88401.aspx</link><pubDate>Tue, 26 Mar 2013 23:02:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88401</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88401</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What are you trying to do there? Are you setting a rule to set Course Name? I just meant to use it as a filter for the selected row for the drop downs - should already be in place in the sample I attached to my reply? You are getting true or false because that is what the XPath you have pasted above evaluates to - either they are equal or they are not... :)&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88400.aspx</link><pubDate>Tue, 26 Mar 2013 22:53:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88400</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88400</wfw:commentRss><description>&lt;p&gt;Thanks again Hilary!&lt;/p&gt;
&lt;p&gt;I think I&amp;#39;m struggling a little getting used to the syntax. I know roughly how it should look but just not quite there.&lt;/p&gt;
&lt;p&gt;The Course duration is working well, thank you. I tried the CourseGroup filter but came across some syntax type errors - not a valid path to CourseGroup so I ended up using this: &lt;code&gt;xdXDocument:GetDOM(&amp;quot;Courses&amp;quot;)/COURSES/COURSECODE/COURSEGROUPNAME = current()/../my:CourseGroup&lt;/code&gt;
&lt;p&gt;The /../my:CourseGroup seemed to do the trick but now the select a course returns a &amp;quot;false&amp;quot; and &amp;quot;true&amp;quot; value into the drop down...&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88399.aspx</link><pubDate>Tue, 26 Mar 2013 22:06:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88399</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88399</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So - your Course dropdown uses CourseName for the value. Your rule for setting course duration is depending on @Name instead. &lt;/p&gt;&lt;p&gt;You want:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Courses&amp;quot;)/COURSES/COURSECODE/DURATION[../COURSENAME = current()]&lt;/p&gt;&lt;p&gt;For the filter on Course Group, the expression looks like:&lt;/p&gt;&lt;p&gt;../COURSEGROUPNAME = current()/my:CourseGroup&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88396.aspx</link><pubDate>Tue, 26 Mar 2013 21:54:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88396</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88396.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88396</wfw:commentRss><description>Attached is the template with the xml data files. As you can see, there is a repeating table with individual courses and values that populate into other areas. What I want is to simply select a course group to show only courses within that group and for the duration to be updated in the CourseDuration field. Thanks for your help!!</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88372.aspx</link><pubDate>Tue, 26 Mar 2013 14:08:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88372</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88372.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88372</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It all depends on where you are using the formula. If you&amp;#39;d attach a template under the options tab, I&amp;#39;d be happy to help you with it.&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88364.aspx</link><pubDate>Tue, 26 Mar 2013 00:49:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88364</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88364.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88364</wfw:commentRss><description>&lt;p&gt;Thanks Hilary :) &lt;/p&gt;

&lt;p&gt;I just tried using the same formula on a repeating section but it&amp;#39;s not working. Is there another approach to a repeating section for this? Thanks again.&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88363.aspx</link><pubDate>Tue, 26 Mar 2013 00:35:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88363</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88363</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So ../@NAME is a relative XPath. We are at CONTACTPERSON - so ../ takes us back to COMPANY, and @NAME gets us the company name attribute - @NAME is an attribute on COMPANY. Here&amp;#39;s a blog &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2012/01/19/xpath-resources.aspx"&gt;post&lt;/a&gt; of mine with some links to learning XPath resources. I think what you are calling self containing tags are attributes. In the sample above, Player is an element, ID, FirstName, etc - those are attributes.&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88362.aspx</link><pubDate>Tue, 26 Mar 2013 00:12:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88362</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88362</wfw:commentRss><description>&lt;p&gt;Thank you Hilary! That worked :)&lt;/p&gt;

&lt;p&gt;Yes, a zip file... Brain is too focused on Infopath right now.&lt;/p&gt;

&lt;p&gt;So, the ../@NAME is referencing the path to the parent node? I just want to get this clear in my head so I can to the other similar forms. Does it matter how the XML is formatted in terms of attributes or elements? I have seen a lot of examples using, what I call self containing tags like: &lt;font face="Lucida Console" size="2"&gt;&amp;lt; Player ID=&amp;quot;10&amp;quot; FirstName=&amp;quot;Chipper&amp;quot; LastName=&amp;quot;Jones&amp;quot; No=&amp;quot;10&amp;quot; Position=&amp;quot;3B&amp;quot; / &amp;gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;Thanks for your time and assistance :)&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88361.aspx</link><pubDate>Mon, 25 Mar 2013 23:55:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88361</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88361</wfw:commentRss><description>&lt;p&gt;Yup - you can always put files in a zip and attach that as well.&lt;/p&gt;&lt;p&gt;So - put a rule on Company - no condition - to set a field&amp;#39;s value. The field you are going to set is the main data source field for the contact person.&lt;/p&gt;&lt;p&gt;The XPath to get the right contact name should be:&lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Contacts&amp;quot;)/CONTACTS/COMPANY/CONTACTPERSON[../@NAME =current()]&lt;/p&gt;&lt;p&gt;You could also do this with the UI in IP - select the CONTACTPERSON field in the secondary data source, and then add a Filter (using the Filter button). The first dropdown for the filter would be the @NAME attribute on COMPANY. The middle would be is equal to and the last one, you&amp;#39;d select a field or group, go to the main data source, and select the main data source field bound to the drop down.&lt;/p&gt;</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88360.aspx</link><pubDate>Mon, 25 Mar 2013 23:09:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88360</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88360</wfw:commentRss><description>Can&amp;#39;t seem to attach more than one file at a time!</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88359.aspx</link><pubDate>Mon, 25 Mar 2013 23:03:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88359</guid><dc:creator>Zubertron</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88359</wfw:commentRss><description>Hi Hilary,

I have attached my contact XML tables and a screen shot of part of my form. As you can see, there is a drop down to select a company. When the company is selected, the contact person and their details needs to be loaded into the relevant fields.

I hope this makes sense?</description></item><item><title>Re: Update fields from drop down not working</title><link>https://www.infopathdev.com:443/forums/thread/88351.aspx</link><pubDate>Mon, 25 Mar 2013 14:29:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88351</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88351</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So - in your drop down, what is the field that is being used for the value? Is it ContactPerson? Your current XPath says &amp;quot;I&amp;#39;d like the CONTACTPERSON field from Contacts where CONTACTPERSON is equal to the field bound to the dropdown list&amp;quot;. Is this being used in a rule or a default value? &lt;/p&gt;&lt;p&gt;It would be helpful to know:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Where the XPath is being used&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;What the value field is in your dropdown control&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Or even just a description of the data you need. You can even just attach your template under the options tab if you want to make it super easy for me to give you a hand. :)&lt;/p&gt;</description></item></channel></rss>