<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Rule check for hours taken off - decimal check</title><link>https://www.infopathdev.com:443/forums/thread/43411.aspx</link><pubDate>Wed, 24 Jun 2009 17:58:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43411</guid><dc:creator>barmatt80</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43411</wfw:commentRss><description>&lt;p&gt;Thanks!&amp;nbsp; I lost my bookmark to here.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Rule check for hours taken off - decimal check</title><link>https://www.infopathdev.com:443/forums/thread/42794.aspx</link><pubDate>Thu, 11 Jun 2009 19:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42794</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=42794</wfw:commentRss><description>&lt;p&gt;Just add another ? at the end of the expression -- we have&amp;nbsp;a ? at the end of \. to show that it may or may not have a decimal. Adding a ? at the end says we may or may not have &amp;#39;25&amp;#39;, &amp;#39;5&amp;#39;, etc.&lt;/p&gt;
&lt;p&gt;So like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;\d*\.?((25)|(50)|(5)|(75)|(0)|(00))?&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Rule check for hours taken off - decimal check</title><link>https://www.infopathdev.com:443/forums/thread/42782.aspx</link><pubDate>Thu, 11 Jun 2009 16:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42782</guid><dc:creator>barmatt80</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=42782</wfw:commentRss><description>&lt;p&gt;this is awesome!&amp;nbsp; Your example worked perfect.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Data validation is probably one of the less used features I use in infopath.&amp;nbsp; I usually set rules, give an error message and reset the field.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I do have one question.&amp;nbsp;The number field in your example.&amp;nbsp; If i format to have 2 decimal places, it still works great.&amp;nbsp; What about if a user enters 5 instead of 5.00&amp;nbsp; or 5.0&amp;nbsp; ?&amp;nbsp; how would you get that to work when entering just full hours without specifying the decimal holders.&lt;/p&gt;
&lt;p&gt;I tried adding another pipe and then (&amp;quot; &amp;quot;) or ( ), but didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again, I greatly appreciate the help.&amp;nbsp; Now I need to learn more on the data validation and expressions in infopath.&lt;/p&gt;</description></item><item><title>Re: Rule check for hours taken off - decimal check</title><link>https://www.infopathdev.com:443/forums/thread/42737.aspx</link><pubDate>Wed, 10 Jun 2009 22:15:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42737</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42737.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=42737</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m also just taking a wild guess at what you want... but if want you want is data validation on the field they are entering hours on to prevent them putting in anything but numbers ending in .0, .00, .25, .5, .50, .75 you can add data validation to the field. Under the properties of the field, select Data Validation. For the first drop down select the field that you are concerned with. For the second, select &amp;#39;does not match the pattern&amp;#39;. For the third, paste a custom pattern in:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;\d*\.?((25)|(50)|(5)|(75)|(0)|(00))&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I&amp;#39;ve created a simple sample and attached it to this post. Right click the link in the header and select Save As to save the template locally. Right click the saved file and select Design to open the form in design mode. Preview the form and try typing different numbers into the box.&lt;/p&gt;</description></item><item><title>Re: Rule check for hours taken off - decimal check</title><link>https://www.infopathdev.com:443/forums/thread/42721.aspx</link><pubDate>Wed, 10 Jun 2009 19:12:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42721</guid><dc:creator>kminor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=42721</wfw:commentRss><description>&lt;p&gt;This is just a guess, so forgive me if I&amp;#39;m off base.&amp;nbsp; Do you need to convert hours to a string first?&amp;nbsp; When you say you can&amp;#39;t get it, what exactly is the result?&amp;nbsp; Are you getting an error, or is it just not catching errors?&amp;nbsp; Can you post exactly what your rule says?&lt;/p&gt;</description></item><item><title>Rule check for hours taken off - decimal check</title><link>https://www.infopathdev.com:443/forums/thread/42713.aspx</link><pubDate>Wed, 10 Jun 2009 18:03:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42713</guid><dc:creator>barmatt80</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42713.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=42713</wfw:commentRss><description>&lt;p&gt;I have a hours field that is a decimal data type, and users are only suppose to take hours in quarter hour increments.&amp;nbsp; so 4.00, 4.25, 4.50, and 4.75 are acceptable values (of course they can take more or less hours than 4).&amp;nbsp; I just need to check the 2 digits after the decimal place to be 0,00,25,5,50,75 ?&lt;/p&gt;
&lt;p&gt;I tried rules with the expression substring after(hours, &amp;quot;.&amp;quot;) but still can&amp;#39;t get it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Suggestions?&amp;nbsp; Thanks.&lt;/p&gt;</description></item></channel></rss>