<?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: Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/8447.aspx</link><pubDate>Mon, 12 Dec 2005 06:42:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8447</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8447.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8447</wfw:commentRss><description>Ok so I will say to the person that is not possible with this configuration and he has to choose another way! &lt;br /&gt;&lt;br /&gt;put a button or put this field in the primary datasource!&lt;br /&gt;&lt;br /&gt;Thanks a lot&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/8446.aspx</link><pubDate>Fri, 09 Dec 2005 15:39:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8446</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8446</wfw:commentRss><description>Ok, I think I see what you're saying now.  I think the problem is not that the field is in the 2DS but that it is not repeating.  If you put a non-repeating control inside a repeating control each repetition of the control from the 2DS is simply a copy of the first.  If you make a change to any of the 2DS controls the change is reflected in every instance of the repeating section.  However, if you change the 2DS control it does not fire a onAfterChange event on the repeating section but only on the 2DS node.&lt;br /&gt;&lt;br /&gt;If the 2DS control was repeating you could put it in a group with another field called ID and use the tutorial mentioned above to keep track of which row was being modified.&lt;br /&gt;&lt;br /&gt;After playing around a little bit, I think this is impossible within the onAfterChange event of the 2DS field.  You'll have to use some kind of trickery like making a field in the repeating section in the primary DS and then copying over to the 2DS and changing every instance manually.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/8445.aspx</link><pubDate>Fri, 09 Dec 2005 06:39:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8445</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8445</wfw:commentRss><description>Thanks for your reply Matt! I will explain one more time!&lt;br /&gt;&lt;br /&gt;In design mode you have a reapeating section of a primary ds in this you have a field of a secondary ds! This field is always the same in each row of this reapeating section (control cannot repeat here)! &lt;br /&gt;&lt;br /&gt;ok ?&lt;br /&gt;&lt;br /&gt;On this field of the secondary ds I have a onafterchange event and I want to know which is the current row of the repeating section (primary ds)? the first, the third, the last, ...&lt;br /&gt;&lt;br /&gt;With a button in this repeating section it's easy you can make "e.source" and you have the current node! but without in the onafterchange event of the field of the secondary ds is it possible?&lt;br /&gt;&lt;br /&gt;I hope that is clear now.&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/8444.aspx</link><pubDate>Thu, 08 Dec 2005 19:15:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8444</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8444.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8444</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Virgul&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With a button it's easy but without? Is it possible?&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I'm not sure I understand your question. If it's easy to do with a button, can't you just put the code/rules that you used to do it with a button somewhere else - like in an onAfterChange event?  Sorry if I'm misunderstanding.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/8443.aspx</link><pubDate>Thu, 08 Dec 2005 15:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8443</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8443</wfw:commentRss><description>Hi Matt,&lt;br /&gt;&lt;br /&gt;Thanks for your reply! And sorry for my answer but this week I'm sick so I work only when I have the idea clear in my head!&lt;br /&gt;&lt;br /&gt;I am a little bit confusing on your answer!If I try to select my current row of my primary datasource with :&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMNode test = thisXDocument.DOM.selectSingleNode("/AV/AVel[position()=count(../preceding-sibling::AVel) + 1]")&lt;/pre&gt; &lt;br /&gt;&lt;br /&gt;when I am on a onafterchangeevent from a field of a secondary DS!&lt;br /&gt;&lt;br /&gt;This send me always the first row of AVel!&lt;br /&gt;&lt;br /&gt;What you would mean in your answer? I don't believe that I have good understand what would you say? &lt;br /&gt;&lt;br /&gt;Thanks for your help!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/8442.aspx</link><pubDate>Fri, 02 Dec 2005 15:08:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8442</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8442.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8442</wfw:commentRss><description>I used this tutorial when doing something similiar - it helped a lot!&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=d663d7df90e94e65abb02632966e8127&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=d663d7df90e94e65abb02632966e8127&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Using the index that you create with that tutorial it should be easy to reference which repeating section you're currently on, and then reference the nodes within this repeating section to make appropriate changes.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Define current node value based on Secondary ds</title><link>https://www.infopathdev.com:443/forums/thread/5155.aspx</link><pubDate>Fri, 02 Dec 2005 08:45:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5155</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5155</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Somebody has asking me a question that I can solve here it is:&lt;br /&gt;&lt;br /&gt;You have in a primary ds a reapeating choice section and in this you have two fields from a secondary datasource and other from primary!&lt;br /&gt;&lt;br /&gt;And with a onafter change event or a rules based on this field of secondary DS you need to populate &lt;b&gt;the current&lt;/b&gt; reapeating choice section of the primary DS!&lt;br /&gt;&lt;br /&gt;How you make?&lt;br /&gt;&lt;br /&gt;With a button it's easy but without? Is it possible?&lt;br /&gt;&lt;br /&gt;Thanks from this user&lt;br /&gt;&lt;br /&gt;Thierry</description></item></channel></rss>