<?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: Comparing Xpath function to a text box field.</title><link>https://www.infopathdev.com:443/forums/thread/71563.aspx</link><pubDate>Mon, 31 Oct 2011 23:10:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71563</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71563</wfw:commentRss><description>&lt;p&gt;Glad you found a way to do what you need - and thanks for updating the thread!&lt;/p&gt;</description></item><item><title>Re: Comparing Xpath function to a text box field.</title><link>https://www.infopathdev.com:443/forums/thread/71562.aspx</link><pubDate>Mon, 31 Oct 2011 22:41:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71562</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71562</wfw:commentRss><description>&lt;p&gt;Sometimes when things don&amp;#39;t work as you expect you have to rethink the problem.&amp;nbsp; In this case I decided to compare actual dates instead of date counts&amp;nbsp;aginst repeating row counts.&amp;nbsp; It&amp;#39;ll be more accurate this way and easier to write Rules for.&lt;/p&gt;&lt;p&gt;Doreen&lt;/p&gt;</description></item><item><title>Comparing Xpath function to a text box field.</title><link>https://www.infopathdev.com:443/forums/thread/71561.aspx</link><pubDate>Mon, 31 Oct 2011 19:24:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71561</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71561</wfw:commentRss><description>&lt;p&gt;I have an expression box in a repeating table that uses one function; postion() to number the rows in the table. Each row in the table represents one day of travel. There can be 1 or more rows in the table.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&amp;nbsp; I need to&amp;nbsp;determine which day is the first day of travel and which is the last day. Obviously the first day of travel is easy because that row always equals 1.&amp;nbsp; The last day of travel will equal the total number of travel days which is another textbox field that gets its value&amp;nbsp;from the difference between&amp;nbsp;2 dates using Alec Pojidaev&amp;#39;s method found here: &lt;a href="http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/"&gt;http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Therefore I want to compare the row # displayed in my expression box (formated as text)&amp;nbsp; to the &lt;strong&gt;travelDays&lt;/strong&gt; field (text/string data type). If they equal, I want to set a value to another field based on this rule.&lt;/p&gt;&lt;p&gt;How do I write a rule to compare an expression box to a text box field?&amp;nbsp; &lt;/p&gt;</description></item></channel></rss>