<?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: Changing values on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/9673.aspx</link><pubDate>Mon, 01 May 2006 01:19:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9673</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9673</wfw:commentRss><description>Thanks Agni.  I will try to convert this logic to VBScript.&lt;br /&gt;&lt;br /&gt;Cheers,</description></item><item><title>Re: Changing values on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/9672.aspx</link><pubDate>Fri, 28 Apr 2006 09:14:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9672</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9672</wfw:commentRss><description>Hi Carlos, &lt;br /&gt;Here is the code for selectnodes, this is in JScript&lt;br /&gt;&lt;br /&gt;var OC = XDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/d:tbl_Project/d:tbl_Outcome");&lt;br /&gt;for(i=0 ; i &amp;lt; OC.length; i++)&lt;br /&gt;{&lt;br /&gt;	if (OC&lt;i&gt;.selectSingleNode("@Outcome_Changed").text = "Y")&lt;br /&gt;	{&lt;br /&gt;		OC&lt;i&gt;.selectSingleNode("@Outcome_Changed").text = "N";&lt;br /&gt;		OC&lt;i&gt;.selectSingleNode("@Outcome_Changed_Note").text = "";&lt;br /&gt;	}&lt;br /&gt;}</description></item><item><title>Changing values on repeating section</title><link>https://www.infopathdev.com:443/forums/thread/5567.aspx</link><pubDate>Fri, 28 Apr 2006 06:07:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5567</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5567</wfw:commentRss><description>Sorry if this has already been discussed. I did a search and found info, but didnt help me.  This should be easy for the pros tho :)&lt;br /&gt;&lt;br /&gt;I have a field in a repeating section (a checkbox) in which I used an onload to try and change the value of 2 fields. Code below:&lt;br /&gt;&lt;br /&gt;Sub XDocument_OnLoad(eventObj)&lt;br /&gt;XDocument.Query&lt;br /&gt;&lt;br /&gt;Set OC = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tbl_Project/d:tbl_Outcome/@Outcome_Changed")&lt;br /&gt;Set OCN = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tbl_Project/d:tbl_Outcome/@Outcome_Changed_Note")&lt;br /&gt;If OC.Text = "Y" Then&lt;br /&gt;	OC.Text = "N"&lt;br /&gt;	OCN.Text = ""&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Now this works a treat only for the first value, ignoring subsuquent ones.  I tried to get my head around selectNodes but cant seem to get it to work.  Can someone please show me what changes I need to make.&lt;br /&gt;&lt;br /&gt;Sorry for the lame post.&lt;br /&gt;&lt;br /&gt;Cheers,</description></item></channel></rss>