<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Accessing parent row inside a nested repeating table</title><link>https://www.infopathdev.com:443/forums/thread/82811.aspx</link><pubDate>Tue, 18 Sep 2012 20:40:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82811</guid><dc:creator>SPUser</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82811.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=82811</wfw:commentRss><description>I am currently using SP 2010 and Infopath 2010. Here is my case: I have three sharepoint lists and the relationship between them being GrandParent --&amp;gt; Parent --&amp;gt; Child. And the fields

GrandParent {ID} = parent  {grandParentRefID}
Parent {ID } = Child {ParentRefID}

In the Infopath form for the grandparent list, I need to show the parent and child records. I am able to get the parent+child records using data connections. The issue is with grouping the parent and child records.

I need to filter child records to show like this  :

GrandParent Record: GPID

Parent1  -  Child 1
                  Child 2

Parent2 -    Child 3
                   Child 4


I tried using current() to filter the child records but the current() becomes the value of the innermost repeating table&amp;#39;s current row and not the parent current row. 
I really appreciate any help to group the records as I want.

Right now, I get like this:

GrandParent Record: GPID

Parent1  -  Child 1
                  Child 2
                  Child 3
                  Child 4

Parent2 -    Child 1
                   Child 2
                   Child 3
                   Child 4</description></item></channel></rss>