<?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: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11309.aspx</link><pubDate>Wed, 21 Mar 2007 15:26:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11309</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11309.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11309</wfw:commentRss><description>Thanks I'll see what I can do...</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11308.aspx</link><pubDate>Tue, 20 Mar 2007 16:58:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11308</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11308</wfw:commentRss><description>That's the code I wrote earlier where it uses the "[]" filter. You make this selection into your other form's DOM (as per the example you already downloaded).</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11307.aspx</link><pubDate>Tue, 20 Mar 2007 14:32:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11307</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11307.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11307</wfw:commentRss><description>So I'm counting the rows now, how do I get the buttons to transmit the value of each row to the other form? This is really painful for me, thanks for your help....</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11306.aspx</link><pubDate>Mon, 19 Mar 2007 21:33:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11306</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11306</wfw:commentRss><description>No, no. Preceding-sibling doesn't work the way you are trying to use it. It needs to start from your current selection (i.e. eventObj.Source). You're trying to make it go all the way back to the root node, which has NO preceding siblings. And you need to also use it on a Repeating Node (i.e. the table row itself), not an Attribute.&lt;br /&gt;&lt;br /&gt;So it would be more like this:&lt;br /&gt;&lt;br /&gt;var rowNumber = eventObj.Source.selectNodes("preceding-sibling::d:ProductLinesValue").length + 1&lt;br /&gt;&lt;br /&gt;It selects rows ONLY to get the count. That's how you can figure out which row # you were on when you clicked the button. Notice the ".length + 1" This says to get the count of all the rows before the one you clicked the button on, PLUS count in the current row. That gives the accurate row number that you will need for selecting the same row number in the other form.</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11305.aspx</link><pubDate>Mon, 19 Mar 2007 19:24:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11305</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11305.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11305</wfw:commentRss><description>Yes this is very helpful, so I would use it like this then:&lt;br /&gt;&lt;br /&gt;var rowNumber = eventObj.Source.selectNodes("preceding-sibling::dfs:myFields/dfs:dataFields/d:ProductLinesValue/@ProductLineValue").length + 1&lt;br /&gt;&lt;br /&gt;but I don't know how many rows it will end-up  selecting...is there a way you can tell it to count through all the rows...?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11304.aspx</link><pubDate>Mon, 19 Mar 2007 18:51:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11304</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11304.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11304</wfw:commentRss><description>Ah, okay. So what you need to do is to get the current row of your current table, so that you know which row to update in your second form.&lt;br /&gt;&lt;br /&gt;You can do this using the preceding-sibling:: axis. This would be something like:&lt;br /&gt;&lt;br /&gt;var rowNumber = eventObj.Source.selectNodes("preceding-sibling::my:RowNodeName").length + 1&lt;br /&gt;&lt;br /&gt;Then use rowNumber to set the proper row in the other form using the xpath filter "[]"&lt;br /&gt;&lt;br /&gt;selectSingleNode("/Table/Row[" + rowNumber + "]/Field").text = Value&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;br /&gt;&lt;br /&gt;- - - - -&lt;br /&gt;&lt;br /&gt;P.S. I would also highly recommend updating to SP2. There were numerous bug fixes in SP2 and it has been proven stable.</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11303.aspx</link><pubDate>Mon, 19 Mar 2007 18:14:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11303</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11303</wfw:commentRss><description>I#%92m not trying to change the Label of a button; the label will stay static. &lt;br /&gt;&lt;br /&gt;I would like to use a button to open another form (which is easy to do with rules) but at the same time I would also like to pass some values from a specific row of the repeating table where you clicked the button to open that second form.&lt;br /&gt;&lt;br /&gt;I have it sort of working based on your previously downloaded samples, but the button is only passing the first row item from the repeating table. I would like each button to pass its equivalent row value...thanks</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11302.aspx</link><pubDate>Fri, 16 Mar 2007 16:30:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11302</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11302.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11302</wfw:commentRss><description>So if you have a single repeating table and want to set the value of another field within the same row, you can use rules for this... Rules work such that when a value changes on a field, the rules for that field get run. This lets you change the value of another field on that same row very easily.&lt;br /&gt;&lt;br /&gt;HOWEVER... you talk about buttons and setting values on buttons. I am not sure exactly what you mean by that. IF you mean that you want to change the button's label (i.e. the visible text on the button) then you will not be able to do this. InfoPath 2003 does not support dynamic button labels, while InfoPath 2007 does. This is why I asked you about which version you are using. If you have some other thing you want to do with the buttons and the values, please explain further.</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11301.aspx</link><pubDate>Fri, 16 Mar 2007 12:39:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11301</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11301.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11301</wfw:commentRss><description>Yes, I mean a button control and I'm using InfoPath 2003 SP1. I believe I don't want to copy values from one table to another. &lt;br /&gt;&lt;br /&gt;The concept I'm trying to implement is as follows:&lt;br /&gt;&lt;br /&gt;ProductLinesValue is a column in a table with lots of stuff in it. I wanted to display each row value in that column, which can easily be done using a repeating table. Next I want to place a button control next to each row item inside the repeating table (in another column) that is set to the value of that row. I will later use this button to open another form that lets you edit that selected row value and submit it back to the db it came from......thanks    &lt;br /&gt;&lt;br /&gt;So the end result for example would look like this on the form:&lt;br /&gt;&lt;br /&gt;Red Edit&lt;br /&gt;Blue Edit&lt;br /&gt;Green Edit &lt;br /&gt;Black Edit&lt;br /&gt;Yellow Edit&lt;br /&gt;</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11300.aspx</link><pubDate>Thu, 15 Mar 2007 21:10:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11300</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11300.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11300</wfw:commentRss><description>values is a collection of all @ProductLineValue attributes (the actual attributes, not just their values).&lt;br /&gt;&lt;br /&gt;value gets set to each item in the values collection, one-by-one, not "every value in values" -- just one value at a time.&lt;br /&gt;&lt;br /&gt;When you say assign to button, what do you mean? Are you talking about a Button Control?&lt;br /&gt;&lt;br /&gt;Also are you using InfoPath 2003 or 2007?&lt;br /&gt;&lt;br /&gt;So are you copying values within the same table, or from one table to another?</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11299.aspx</link><pubDate>Thu, 15 Mar 2007 20:21:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11299</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11299</wfw:commentRss><description>Thanks for the response, but I'm really bad with writing scripts...what would that something be?&lt;br /&gt;&lt;br /&gt;I'm trying to assign those node values to a button in each row of a repeating table. &lt;br /&gt;&lt;br /&gt;So the 'var value' would equal to every value in 'var values', but I'm not sure how to write the code for that.........thanks</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11298.aspx</link><pubDate>Thu, 15 Mar 2007 16:50:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11298</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11298.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11298</wfw:commentRss><description>selectNodes() will return a list of nodes... then you must step through them one by one.&lt;br /&gt;&lt;br /&gt;var value;&lt;br /&gt;var values = XDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/d:ProductLinesValu&lt;br /&gt;e/@ProductLineValue");&lt;br /&gt;&lt;br /&gt;while(value = values.nextNode())&lt;br /&gt;{&lt;br /&gt;    // do something with value node here...&lt;br /&gt;}</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11297.aspx</link><pubDate>Thu, 15 Mar 2007 14:51:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11297</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11297.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11297</wfw:commentRss><description>getting closer...the thing is I'm using a repeating table to display my values and when  I use: &lt;br /&gt;&lt;br /&gt;var value = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:ProductLinesValu&lt;br /&gt;e/@ProductLineValue");&lt;br /&gt;&lt;br /&gt;it populates all my Edit buttons with the first value of from the repeating table, so I tried using:&lt;br /&gt;&lt;br /&gt;var value = XDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/d:ProductLinesValu&lt;br /&gt;e/@ProductLineValue");&lt;br /&gt;&lt;br /&gt;which doesn't return any values, is there a different property I need to use for XDocument to get each row item read into it's own button....can I put current() in there somewhere, what is the syntax for that...thanks</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11296.aspx</link><pubDate>Thu, 15 Mar 2007 12:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11296</guid><dc:creator>ssaral</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11296</wfw:commentRss><description>Thanks I'll give this method a try</description></item><item><title>Re: Passing Values Between Forms</title><link>https://www.infopathdev.com:443/forums/thread/11295.aspx</link><pubDate>Wed, 14 Mar 2007 20:55:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11295</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11295.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11295</wfw:commentRss><description>Sorry - forgot to add the link. Here it is:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4451&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4451&lt;/a&gt;</description></item></channel></rss>