For the first page, you would have your button in the repeating table and do the following:
Create a simple .xml file such as the following:
<?xml version="1.0" encoding="UTF-8"?>
<FormData>
<SelectedRow></SelectedRow>
</FormData>
and save it as
FormData.xmlThen, in the InfoPath designer:
1. Select Data Connections from the Tools menu, and then click Add.
2. Add the FormData.xml file as a Receive connection.
In your button's rules, set the value of SelectedRow field using an XPath similar to the following:
SelectedRow = count(preceding-sibling::my:RepeatingGroup)+1
In your other view, filter the repeating section based on:
position() = SelectedRow
Then setup your other navigation buttons to increment/decrement SelectedRow.
Greg Collins [InfoPath MVP]
InfoPath Dev