well the repeating table contains three columns, only two are shown, The third column contains the row number, on the repeating table i have set conditional formatting to show only, the row, whose rowno = field4, and on the buttons i set the value of field4,
right click the repeating table -> conditional formatting. you will see the condtions that governs what is to be hidden.
do post back if you need more explanation