<?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: Time - Recording Hours and Minutes &amp; best practice</title><link>https://www.infopathdev.com:443/forums/thread/71991.aspx</link><pubDate>Fri, 11 Nov 2011 21:48:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71991</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71991.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71991</wfw:commentRss><description>&lt;p&gt;For simplicity sake, I would do as Jimmy suggest and use two fields, with the hidden calculated field.&lt;br /&gt;The fields themselves could be regular text or numerals, since you will have to validate them if they change anyways.&lt;/p&gt;
&lt;p&gt;EX:&lt;/p&gt;
&lt;p&gt;2 Fields: HoursTB, MinutesTB&lt;br /&gt;Both are default set to 0&lt;br /&gt;Both&amp;nbsp;have at least this&amp;nbsp;data validation: This Field (HoursTB or MinutesTB) is&amp;nbsp;not equal to&amp;nbsp;0 AND This Field (HoursTB or MinutesTB) does not match pattern Custom Pattern: 0 (See below)&lt;br /&gt;How to get the pattern:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;From the drop down, select Custom Pattern&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the Custom pattern field, clear the field&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Type in the Custom pattern field: \d+&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Hit the OK button&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Add your screen tip to say something along the lines of &amp;quot;This field can only be a number&amp;quot;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;What does this one data validation do?&lt;br /&gt;It makes sure of two things: First, your field will always be a number and Second, it will always be a number.&lt;/p&gt;
&lt;p&gt;From here you can do like Jimmy suggested and convert this into a decimal hour to figure out what you need.&lt;/p&gt;</description></item><item><title>Re: Time - Recording Hours and Minutes &amp; best practice</title><link>https://www.infopathdev.com:443/forums/thread/71990.aspx</link><pubDate>Fri, 11 Nov 2011 20:28:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71990</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71990</wfw:commentRss><description>&lt;p&gt;How about providing separate fields for hours and minutes, and then a calculated read-only or hidden field for the hours + fractional hours (hours + minutes div 60)?&lt;/p&gt;</description></item><item><title>Time - Recording Hours and Minutes &amp; best practice</title><link>https://www.infopathdev.com:443/forums/thread/71982.aspx</link><pubDate>Fri, 11 Nov 2011 17:52:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71982</guid><dc:creator>jtownson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71982.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71982</wfw:commentRss><description>&lt;p&gt;Grrrr I am really pulling my hair out with this one&amp;nbsp; - cant work out the best way to do it!&lt;/p&gt;
&lt;p&gt;I am creating an Overtime submission form for staff to submit hours worked overtime.&amp;nbsp; There is a field which allows the user to put in how many hours and minutes they have worked over for a particular month.&amp;nbsp; I was going to use a time field but then realised i am limited to 24 hours, we may have some people that do say 36hrs 30mins overtime in a month&amp;nbsp;so they would enter&amp;nbsp;36:30.&amp;nbsp; What Data type would you use for this?&amp;nbsp; and how would you validate / restrict it?&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am also&amp;nbsp;then going to put the figure into a SQL database for reporting purposes - ie to calculate&amp;nbsp;amount of&amp;nbsp;over time over a certain period ie 3 month.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am struggling with the concept and I would be grateful&amp;nbsp;for some help on this one&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank&amp;nbsp;you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>