<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49810.aspx</link><pubDate>Wed, 09 Dec 2009 01:03:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49810</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49810</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;http://msdn.microsoft.com/en-us/library/bb509311.aspx#InfoPath2007XPathNavigatorClassFormTemplates_WorkingWithCurrentNode&lt;/p&gt;</description></item><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49809.aspx</link><pubDate>Wed, 09 Dec 2009 00:48:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49809</guid><dc:creator>laflour</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49809</wfw:commentRss><description>Any samples/guidelines how to achieve this?!</description></item><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49808.aspx</link><pubDate>Wed, 09 Dec 2009 00:46:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49808</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49808</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You can&amp;#39;t access controls directly.&amp;nbsp; The only way to modify InfoPath data in code is to use the variety of XML manipulation methods made available by XPathNavigator.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49802.aspx</link><pubDate>Tue, 08 Dec 2009 21:49:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49802</guid><dc:creator>laflour</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49802.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49802</wfw:commentRss><description>&lt;p&gt;It gives the reference to the current row, right, but not to the DataSource of the actual controls in this&amp;nbsp;row&amp;nbsp;:( And I have not idea how to access the control&amp;#39;s items for the row&lt;/p&gt;
&lt;p&gt;For example, I&amp;#39;m using item_changed event, that is fired when we add/remove new row in repeating table. One of the parameters provide access to the XmlNavigation elements of the current row, so I&amp;#39;m using e.Site.&lt;font size="2"&gt;SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:sections&amp;quot;, &lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#000000"&gt;NamespaceManager) to read the selected value from that control.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#000000"&gt;But how to access the actual control to populate its values?! Somehow I need to get the access to the DataSource of control in the curren row. *_change events don&amp;#39;t provide the access to dataSourcea&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49792.aspx</link><pubDate>Tue, 08 Dec 2009 15:15:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49792</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49792.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49792</wfw:commentRss><description>&lt;p&gt;One of the properties of the event object (eventObj.Source, or something along those lines) should give you a reference to the node or row where the event occurred.&amp;nbsp; From there you can use relative XPath to get at the node you want. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49783.aspx</link><pubDate>Tue, 08 Dec 2009 12:02:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49783</guid><dc:creator>laflour</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49783</wfw:commentRss><description>I would expect that current() returns me the row where I operate.

If it can&amp;#39;t be used in this content, what is the solution to access the elements in the nearby column for the current row?!</description></item><item><title>Re: Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49782.aspx</link><pubDate>Tue, 08 Dec 2009 11:48:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49782</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49782</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The current() function can&amp;#39;t be used in code like this, and there is no concept of a &amp;quot;current&amp;quot; row when you&amp;#39;re accessing the XML from code.&amp;nbsp; What would you expect current() to indicate in this situation?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Getting the current row and "XsltContext is needed for this query because of an unknown function"</title><link>https://www.infopathdev.com:443/forums/thread/49779.aspx</link><pubDate>Tue, 08 Dec 2009 09:56:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49779</guid><dc:creator>laflour</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49779</wfw:commentRss><description>I&amp;#39;m trying to get the current row in the repeating table programmatically,  to update the rows&amp;#39; elements for InfoPath 2007

To do this I&amp;#39;m using the following code:

MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;my:myFields/my:timesheetEntries/my:item/my:project[current()]&amp;quot;, NamespaceManager).SetValue(firstItemName);

This will select the current element and set the value. But, I get the following error 

&amp;quot;XsltContext is needed for this query because of an unknown function&amp;quot;

The issue in &amp;quot;current()&amp;quot; statement. I  tried to google but from all posts I seen there are no workarounds how to make it working.</description></item></channel></rss>