<?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: populating extensible section with xml</title><link>https://www.infopathdev.com:443/forums/thread/7813.aspx</link><pubDate>Wed, 05 Oct 2005 07:30:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7813</guid><dc:creator>kakashi1978</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7813</wfw:commentRss><description>Ok !&lt;br /&gt;&lt;br /&gt;I found my problem!&lt;br /&gt;&lt;br /&gt;here is the solution:&lt;br /&gt;xdXDocument:GetDOM("GetQuestionList")/dfs:myFields/dfs:dataFields/tns:GetQuestionListResponse/tns:GetQuestionListResult/Questions/Question/id[../@nom = current()]&lt;br /&gt;&lt;br /&gt;Use of current() solve the problem because the rule is linked on the droplist box "nom_question"&lt;br /&gt;&lt;br /&gt;thank you very much for your help!&lt;br /&gt;&lt;br /&gt;kakashi1978</description></item><item><title>Re: populating extensible section with xml</title><link>https://www.infopathdev.com:443/forums/thread/7812.aspx</link><pubDate>Tue, 04 Oct 2005 18:59:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7812</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7812</wfw:commentRss><description>The problem is most likely coming from the get-DOM() call. You should be using current() instead -- which requires a manual update. This topic has been discussed before. Do a search in these Forums for "current()" and the results should give you enough info to go on.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>populating extensible section with xml</title><link>https://www.infopathdev.com:443/forums/thread/4957.aspx</link><pubDate>Tue, 04 Oct 2005 09:47:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4957</guid><dc:creator>kakashi1978</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4957</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I have a problem when populating textbox with data from secondary data source xml.&lt;br /&gt;I explain:&lt;br /&gt;&lt;br /&gt;1- I have a repeating section with 1 dropdown listbox and 4 textboxes.&lt;br /&gt;2- the dropdown listbox is linked to a field "nom" in an xml secondary data source file&lt;br /&gt;3- when I select a name in the listbox, I would like to fill automatically textboxes in the item of the repeating section&lt;br /&gt; here is the xml file:&lt;br /&gt;&amp;lt;Questions&amp;gt;&lt;br /&gt;	&amp;lt;Question nom="question1"&amp;gt;&lt;br /&gt;		&amp;lt;id&amp;gt;id_question1&amp;lt;/id&amp;gt;&lt;br /&gt;		&amp;lt;type&amp;gt;QCM&amp;lt;/type&amp;gt;&lt;br /&gt;		&amp;lt;duree&amp;gt;5&amp;lt;/duree&amp;gt;&lt;br /&gt;		&amp;lt;difficulte&amp;gt;1&amp;lt;/difficulte&amp;gt;&lt;br /&gt;	&amp;lt;/Question&amp;gt;&lt;br /&gt;	&amp;lt;Question nom="question2"&amp;gt;&lt;br /&gt;		&amp;lt;id&amp;gt;id_question2&amp;lt;/id&amp;gt;&lt;br /&gt;		&amp;lt;type&amp;gt;QRM&amp;lt;/type&amp;gt;&lt;br /&gt;		&amp;lt;duree&amp;gt;10&amp;lt;/duree&amp;gt;&lt;br /&gt;		&amp;lt;difficulte&amp;gt;2&amp;lt;/difficulte&amp;gt;&lt;br /&gt;	&amp;lt;/Question&amp;gt;&lt;br /&gt;	&amp;lt;Question nom="question3"&amp;gt;&lt;br /&gt;		&amp;lt;id&amp;gt;id_question3&amp;lt;/id&amp;gt;&lt;br /&gt;		&amp;lt;type&amp;gt;QMeC&amp;lt;/type&amp;gt;&lt;br /&gt;		&amp;lt;duree&amp;gt;15&amp;lt;/duree&amp;gt;&lt;br /&gt;		&amp;lt;difficulte&amp;gt;5&amp;lt;/difficulte&amp;gt;&lt;br /&gt;	&amp;lt;/Question&amp;gt;&lt;br /&gt;	&amp;lt;Question nom="question4"&amp;gt;&lt;br /&gt;		&amp;lt;id&amp;gt;id_question4&amp;lt;/id&amp;gt;&lt;br /&gt;		&amp;lt;type&amp;gt;QSL&amp;lt;/type&amp;gt;&lt;br /&gt;		&amp;lt;duree&amp;gt;30&amp;lt;/duree&amp;gt;&lt;br /&gt;		&amp;lt;difficulte&amp;gt;4&amp;lt;/difficulte&amp;gt;&lt;br /&gt;	&amp;lt;/Question&amp;gt;&lt;br /&gt;&amp;lt;/Questions&amp;gt;&lt;br /&gt;4- To do it I made a rule for each field to fill. This rule must fill the texbox associated with data matching the field "nom" selected. I do not want to display all question node in the form, only which ones selected in dropdownlist in the repeating section!&lt;br /&gt;5- here is an example for a rule to fill "id" field:&lt;br /&gt;xdXDocument:GetDOM("GetQuestionList")/dfs:myFields/dfs:dataFields/tns:GetQuestionListResponse/tns:GetQuestionListResult/Questions/Question/id[../@nom = xdXDocument:get-DOM()/my:mesChamps/my:section_question/my:groupe_question/my:section_extensible_question/my:nom_question]&lt;br /&gt;or in a simple way:&lt;br /&gt;id[@nom = nom_question]&lt;br /&gt;&lt;br /&gt;6- the problem is that when I have only one section in my repeating section, all work very well! But when I have many sections in the repeating section, rules sometimes display data not matching the field "nom" selected!&lt;br /&gt;It seems to appear when I select for the second time a field already selected above. In fact, data displayed match the first section fields and not which one asked.&lt;br /&gt;&lt;br /&gt;Can someone help me to solve this problem?&lt;br /&gt;Hope I clear enough to be helped! :)&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>