<?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: Command Button on expense report template</title><link>https://www.infopathdev.com:443/forums/thread/57435.aspx</link><pubDate>Thu, 29 Jul 2010 06:44:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57435</guid><dc:creator>expense report</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57435</wfw:commentRss><description>Great information. It&amp;#39;s very interesting a lot.&lt;br /&gt;&lt;table style="border-collapse:collapse;" cellpadding="0" cellspacing="0"&gt;&lt;tr style="height:12.75pt;"&gt;&lt;td style="height:12.75pt;width:48pt;" align="left"&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;</description></item><item><title>Re: Command Button on expense report template</title><link>https://www.infopathdev.com:443/forums/thread/55363.aspx</link><pubDate>Thu, 27 May 2010 13:57:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55363</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=55363</wfw:commentRss><description>&lt;p&gt;the &lt;font color="#5f5e62" face="Arial"&gt;&lt;strong&gt;Itemized Expenses&lt;/strong&gt;&lt;/font&gt; is a repeating table&lt;/p&gt;&lt;p&gt;and the &lt;font color="#5f5e62" face="Arial"&gt;&lt;strong&gt;Item Details &lt;/strong&gt;&lt;/font&gt;is a repeating section.&lt;/p&gt;&lt;p&gt;item details has a conditional formatting that forces it to show only the section number that equals the number in the itemposition.&lt;/p&gt;&lt;p&gt;when you click the button, it sets the value of itemposition to the previous row # of the repeating table you are in &lt;br /&gt;&lt;/p&gt;&lt;p&gt;function count(preceding-sibling::*) gives the previous row/section #&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Command Button on expense report template</title><link>https://www.infopathdev.com:443/forums/thread/55357.aspx</link><pubDate>Thu, 27 May 2010 08:11:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55357</guid><dc:creator>B-Rad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55357.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=55357</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The expense report template for Infopath that can be downloaded from Microsoft has a command button at the end of each line item. Upon clicking this button it displays an optional section for the line item based on the category chosen.&lt;/p&gt;&lt;p&gt;&amp;nbsp;There is a rule on the button that i cant work out what it does&lt;/p&gt;&lt;p&gt;Action - Set a fields value&lt;/p&gt;&lt;p&gt;Field - itemPosition&lt;/p&gt;&lt;p&gt;Value: count(preceding-sibling::*)&lt;/p&gt;&lt;p&gt;The part that i haven&amp;#39;t encountered before is the preceding and sibling functions mentioned in the value section.&lt;/p&gt;&lt;p&gt;&amp;nbsp;What does this mean and how does it enable the optional section on the form when the button is clicked? There isn&amp;#39;t any code anywhere that i can find&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>