<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/28940.aspx</link><pubDate>Mon, 26 May 2008 09:18:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28940</guid><dc:creator>smaus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28940.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=28940</wfw:commentRss><description>&lt;p&gt;Don&amp;#39;t know if you&amp;#39;re still working on this but here&amp;#39;s what I used:&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;rowColor = (count(preceding-sibling::myRepeatingSection) + 1) mod 2&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Then,&amp;nbsp;set the conditional formatting for the repeating section to&amp;nbsp;color if rowColor&amp;nbsp;&amp;lt;&amp;gt; 0&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;count(&amp;nbsp;preceding-sibling::myRepeatingSection)+1&lt;/em&gt; &lt;/strong&gt;returns the rowNumber&lt;br /&gt;&lt;em&gt;&lt;strong&gt;x mod y&lt;/strong&gt;&lt;/em&gt; returns the remainder of x/y.&amp;nbsp; When y=2, odd numbers will&amp;nbsp;return&amp;nbsp;a remainder &amp;gt;0.&amp;nbsp; Even numbers will return&amp;nbsp;a 0.&lt;/p&gt;
&lt;p&gt;You have to use a repeating section with the &amp;quot;header&amp;quot; outside of the section.&amp;nbsp; Repeating tables don&amp;#39;t work; I can only guess&amp;nbsp;because the conditional formatting property applies to the entire control, a repeating table doesn&amp;#39;t know what to do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-smaus&lt;/p&gt;
&lt;p&gt;***UPDATE:&amp;nbsp; Tested and you can use a Repeating table but you cannot have headers or footers in it.&lt;/p&gt;</description></item><item><title>Re: Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/26917.aspx</link><pubDate>Sun, 02 Mar 2008 17:29:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26917</guid><dc:creator>bharvey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26917</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;thanks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;The formula method I would normally use in my web development (php, cold fusion, lasso) would be to do a&amp;nbsp; row_number() mod 2.&amp;nbsp;&amp;nbsp; But, we don&amp;#39;t have the operator &amp;quot;mod&amp;quot; available it seems.&amp;nbsp; That makes it difficult.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/26912.aspx</link><pubDate>Sun, 02 Mar 2008 14:32:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26912</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26912</wfw:commentRss><description>&lt;p&gt;OK I thought there was already something on this specifically but I did not find it either.&lt;/p&gt;
&lt;p&gt;Here is one &lt;a href="http://www.infopathdev.com/blogs/greg/archive/2004/11/18/Assign-an-Autogenerated-Row-Number-to-a-Repeating-Field.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2004/11/18/Assign-an-Autogenerated-Row-Number-to-a-Repeating-Field.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Which talks about how to use position() to get the row number.&lt;/p&gt;
&lt;p&gt;Here is another &lt;a href="http://www.infopathdev.com/files/folders/examples/entry277.aspx"&gt;http://www.infopathdev.com/files/folders/examples/entry277.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2004/07/08/Identify-the-Current-Table-Row.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2004/07/08/Identify-the-Current-Table-Row.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have a row number then you just need conditional formatting to be true for each odd or even.&amp;nbsp; I am not sure what the method would be here, it will probably take some trial and error.&lt;/p&gt;
&lt;p&gt;Worst case would be to make a seperate list of odd numbers up to the amount you think you would have displayed in your form table and then have where these matched highlight but I think there should be a formula solution but do not have time at the moment to experiment.&lt;/p&gt;
&lt;p&gt;Good Luck&lt;/p&gt;</description></item><item><title>Re: Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/26910.aspx</link><pubDate>Sat, 01 Mar 2008 20:52:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26910</guid><dc:creator>bharvey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26910</wfw:commentRss><description>&lt;p&gt;anyone have a link to this?&amp;nbsp; I&amp;#39;ve searched and can&amp;#39;t find it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/26624.aspx</link><pubDate>Wed, 20 Feb 2008 16:01:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26624</guid><dc:creator>todd_ingr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26624</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks, Clay.&amp;nbsp; Could you point me to their blogs?&amp;nbsp; I tried a user search, but their names were not found.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/26623.aspx</link><pubDate>Wed, 20 Feb 2008 15:53:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26623</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26623</wfw:commentRss><description>&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;I believe Greg or Matt might have a blog post on this.&lt;/p&gt;
&lt;p&gt;I believe you use row number and make odds or even a&amp;nbsp;color with conditional formating.&lt;/p&gt;</description></item><item><title>Alternate line shading in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/26618.aspx</link><pubDate>Wed, 20 Feb 2008 15:12:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26618</guid><dc:creator>todd_ingr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26618.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26618</wfw:commentRss><description>&lt;p&gt;Greetings!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is it possible to alternate line shading in a repeating table?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Todd&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>