<?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: Alternating text value in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/41092.aspx</link><pubDate>Wed, 29 Apr 2009 16:11:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41092</guid><dc:creator>Tethibogz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41092.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41092</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy!&amp;nbsp;I used the simple method that you gave. It works great.&lt;/p&gt;</description></item><item><title>Re: Alternating text value in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/41091.aspx</link><pubDate>Wed, 29 Apr 2009 15:41:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41091</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41091.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41091</wfw:commentRss><description>&lt;p&gt;If you don&amp;#39;t need the &amp;quot;Agent&amp;quot; and &amp;quot;Guest&amp;quot; labels actually stored in the XML (i.e. their meaning is assumed based on their order in the list), you could try something like in the attached template.&amp;nbsp; I&amp;#39;ve simply used conditional formatting (right click the &amp;quot;Agent&amp;quot; and &amp;quot;Guest&amp;quot; expression boxes and click Conditional formatting... to see what I&amp;#39;ve done) to hide one label or the other in each row.&lt;/p&gt;
&lt;p&gt;If you want &amp;quot;Agent&amp;quot; or &amp;quot;Guest&amp;quot; to be stored in a field, you could try a technique described on this page:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.tkachenko.com/blog/archives/000156.html"&gt;http://www.tkachenko.com/blog/archives/000156.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Basically you would set the default value of the field to:&lt;/p&gt;
&lt;p&gt;concat(substring(&amp;quot;Agent&amp;quot;, number(count(../preceding-sibling::&lt;strong&gt;&lt;u&gt;my:group2&lt;/u&gt;&lt;/strong&gt;) mod 2 = 1) * string-length(&amp;quot;Agent&amp;quot;) + 1), substring(&amp;quot;Guest&amp;quot;, number(count(../preceding-sibling::&lt;strong&gt;&lt;u&gt;my:group2&lt;/u&gt;&lt;/strong&gt;) mod 2 = 0) * string-length(&amp;quot;Guest&amp;quot;) + 1))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It looks complicated, but you can use it as-is, just replacing the &lt;strong&gt;&lt;u&gt;my:group2&lt;/u&gt;&lt;/strong&gt; part with the actual name of the repeating node.&lt;/p&gt;</description></item><item><title>Alternating text value in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/41089.aspx</link><pubDate>Wed, 29 Apr 2009 15:15:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41089</guid><dc:creator>Tethibogz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41089.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41089</wfw:commentRss><description>&lt;p&gt;Hi to all,&lt;/p&gt;
&lt;p&gt;My boss just introduced Infopath to me and his requirements is to have a conversation table for our agent and guest. the first field shows an alternate text between Agent and Guest everytime the insert item will be pressed. The second field will be the conversation details. Is it easy? Please help... thanks&lt;/p&gt;
&lt;p&gt;Agent&lt;/p&gt;
&lt;p&gt;Guest&lt;/p&gt;
&lt;p&gt;Agent&lt;/p&gt;
&lt;p&gt;Guest&lt;/p&gt;
&lt;p&gt;and so on...&lt;/p&gt;</description></item></channel></rss>