<?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: xdXDocument:get-DOM() doesn't give the current nod</title><link>https://www.infopathdev.com:443/forums/thread/7787.aspx</link><pubDate>Tue, 15 Nov 2005 08:21:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7787</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7787</wfw:commentRss><description>Hi abs(Ming),&lt;br /&gt;You can do this with rules. In the Designer, double click on the button and click on Rules. Add a rule to set a fields' value and then add an xpath that refers to the pre-existing checkbox value. Should be straightforward.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: xdXDocument:get-DOM() doesn't give the current nod</title><link>https://www.infopathdev.com:443/forums/thread/7786.aspx</link><pubDate>Mon, 14 Nov 2005 05:35:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7786</guid><dc:creator>absMing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7786</wfw:commentRss><description>Hi There,&lt;br /&gt;&lt;br /&gt;Okay, here is my problem.  I have a repeating table and a single button at the top of the form.  When the user clicks on the SINGLE button I want the current selected row containing a checkbox to be flagged as TRUE/False depending on its previous state and then submitted to the dB.  This sounds really simple but i dont know where to start.  Im using JScript.&lt;br /&gt;&lt;br /&gt;Cheers</description></item><item><title>Re: xdXDocument:get-DOM() doesn't give the current nod</title><link>https://www.infopathdev.com:443/forums/thread/7785.aspx</link><pubDate>Tue, 04 Oct 2005 19:03:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7785</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7785</wfw:commentRss><description>I believe that current() usually represents the node to which the control is bound.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: xdXDocument:get-DOM() doesn't give the current nod</title><link>https://www.infopathdev.com:443/forums/thread/7784.aspx</link><pubDate>Tue, 04 Oct 2005 02:57:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7784</guid><dc:creator>IceT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7784</wfw:commentRss><description>Man that did the trick! I trully don't know much about DOM programming, and anyways, I also didn't know nor where I was, nor that I could use the current() function to "find myself"! I believed to be in the secondary data source, and so the DOM function would be necessary.&lt;br /&gt;&lt;br /&gt;Thanks a lot!</description></item><item><title>Re: xdXDocument:get-DOM() doesn't give the current nod</title><link>https://www.infopathdev.com:443/forums/thread/7783.aspx</link><pubDate>Mon, 03 Oct 2005 16:55:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7783</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7783</wfw:commentRss><description>You need to use the current() function in place of get-DOM().&lt;br /&gt;&lt;br /&gt;When you use get-DOM() you are always starting over from the beginning. current() picks up where you currently are at.&lt;br /&gt;&lt;br /&gt;So you expression (and you'd need to correct it according to your schema) would maybe look more like this:&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("events")/events/action/@category[../type = current()/../my:action]&lt;br /&gt;&lt;br /&gt;The XPath following the current() function needs to make sense according to the node you are "currently" on. The above assumes current() is equal to @category in the main DOM.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>xdXDocument:get-DOM() doesn't give the current nod</title><link>https://www.infopathdev.com:443/forums/thread/4950.aspx</link><pubDate>Sun, 02 Oct 2005 20:50:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4950</guid><dc:creator>IceT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4950</wfw:commentRss><description>I believe tha my problem is basically this:&lt;br /&gt;"xdXDocument:get-DOM()/my:expensesReport/my:events/my:event/my:action" gives always the value of the first event in the repeating table. I tried to use the "[count(preceding-sibling::my:evento) +1]" after "my:event" in that expression, but it didn't work.&lt;br /&gt;&lt;br /&gt;This is my XML&lt;br /&gt;&lt;br /&gt;&amp;lt;events&amp;gt;&lt;br /&gt;   &amp;lt;action category="Transport"&amp;gt;&lt;br /&gt;      &amp;lt;type&amp;gt;Expense&amp;lt;/type&amp;gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;I have the folowing expression&lt;br /&gt;xdXDocument:GetDOM("events")/events/action/@category[../type= xdXDocument:get-DOM()/my:expensesReport/my:events/my:events/my:action]&lt;br /&gt;&lt;br /&gt;This is what it is supposed to do: when my listbox ("my:action") says "Expense", I want to put the string "Transport" in a text field.&lt;br /&gt;&lt;br /&gt;If the expression were to be used like this: xdXDocument:GetDOM("events")/events/action/@category[../type = my:action]&lt;br /&gt;it would work.&lt;br /&gt;&lt;br /&gt;Can anyone help me? (have I explained enough the problem?)&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;</description></item></channel></rss>