<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to use optional formatting in repeating section to show only current record?</title><link>https://www.infopathdev.com:443/forums/thread/61748.aspx</link><pubDate>Mon, 29 Nov 2010 16:52:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61748</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=61748</wfw:commentRss><description>&lt;p&gt;You have to work around the limitations by using conditional formatting to 
hide all but the row number selected from your button click:&lt;/p&gt;
&lt;p&gt;count(preceding-sibling::ns1:Row) != [SELECTED_ROW_NUMBER_HERE]&lt;/p&gt;
&lt;p&gt;Depending on how you have it set up, the count might be 1 less than the 
number you have selected, so you would add one to make them match:&lt;/p&gt;
&lt;p&gt;count(preceding-sibling::ns1:Row) + 1&amp;nbsp;!= [SELECTED_ROW_NUMBER_HERE]&lt;/p&gt;</description></item><item><title>How to use optional formatting in repeating section to show only current record?</title><link>https://www.infopathdev.com:443/forums/thread/61682.aspx</link><pubDate>Thu, 25 Nov 2010 15:52:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61682</guid><dc:creator>slava</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=61682</wfw:commentRss><description>Hello!

My form is web-browsable.I use InfoPath2010
I have a repeating table in first view with fields  PointType,Date1,Date2 etc and one expression control which shows current row number.
In each row I have a button. Clicking by this button opens a new second view with the same data but more detailed in repeating section.
I would like to use optional formating in a rule of the repeating section in the second view to show current record (on which button is clicked)
I can save the number of selected record in the first view in an additional field( selectedId) in secondary datasource.

How to show only this selected record if you know its number using conditional formatting in repeating section?

smth like this ns1:Rows/ns1:Row[selectedId] -? or ns1:Row = current() I dont know how to write it correctly in an expression window when you set a rule.</description></item></channel></rss>