<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Detecting master/detail row index via FormEvents_ContextChanged</title><link>https://www.infopathdev.com:443/forums/thread/64462.aspx</link><pubDate>Tue, 22 Feb 2011 17:10:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64462</guid><dc:creator>silentoption</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=64462</wfw:commentRss><description>&lt;p&gt;Thanks for the direction Patrick.&amp;nbsp; I&amp;#39;ll have a look at Greg&amp;#39;s posts...&lt;/p&gt;</description></item><item><title>Re: Detecting master/detail row index via FormEvents_ContextChanged</title><link>https://www.infopathdev.com:443/forums/thread/64366.aspx</link><pubDate>Mon, 21 Feb 2011 08:21:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64366</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=64366</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m guessing you have InfoPath 2010 browser running on SharePoint 2010. You should be able to do this - that&amp;#39;s what the event was created for. We do this in the rich client all the time but not for master-detail. Doing it for a repeating table is easy and it&amp;#39;s relatively straightforward to set up a master/detail that does not use the master/detail control (rather two repeating tables or sections). &lt;/p&gt;
&lt;p&gt;I believe Greg Collins has some blog posts and samples that show how to get the current context. Please search around for that. If you can&amp;#39;t find anything, please send me email.&lt;/p&gt;</description></item><item><title>Detecting master/detail row index via FormEvents_ContextChanged</title><link>https://www.infopathdev.com:443/forums/thread/64193.aspx</link><pubDate>Tue, 15 Feb 2011 03:27:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64193</guid><dc:creator>silentoption</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=64193</wfw:commentRss><description>&lt;p&gt;Using the 2010 C# object model, I need to detect which row of a master repeating table was clicked via the FormEvents_ContextChanged Event.&amp;nbsp; Is this possible?&amp;nbsp; I cannot find any specific examples on the web.&amp;nbsp; Any help would appreciated.&lt;/p&gt;
&lt;p&gt;What I was thinking:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_ContextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ContextChangedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;switch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.ChangeType)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;case&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ContextNode&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.Context.LocalName == &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;grpScorecard&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//root of repeating table&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//DETECT ROW ID HERE...&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;break&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you in advance!&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>