<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: TextBox Data type "Time" fails validation on concat() assembled hh:mm string</title><link>https://www.infopathdev.com:443/forums/thread/85990.aspx</link><pubDate>Fri, 11 Jan 2013 23:55:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85990</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=85990</wfw:commentRss><description>&lt;p&gt;The time format is actually hh:mm:ss. Save an XML file from your form and open in a text editor to see the real value of the field, or right click your text box (in design mode), select properties, click the format button, and select the &lt;em&gt;None (display XML value) &lt;/em&gt;so you can see the actual value... When you retype it, IP is adding the :00 for the seconds...&lt;/p&gt;</description></item><item><title>TextBox Data type "Time" fails validation on concat() assembled hh:mm string</title><link>https://www.infopathdev.com:443/forums/thread/85988.aspx</link><pubDate>Fri, 11 Jan 2013 21:14:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85988</guid><dc:creator>jazaddict</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=85988</wfw:commentRss><description>&lt;p&gt;IP 2010. Text Box with a data type of &amp;quot;time&amp;quot; .&lt;/p&gt;
&lt;p&gt;If user types 945 the box sits there &amp;quot;red&amp;quot; because it needs a colon.&amp;nbsp;&amp;nbsp; OK, customer says, can you &amp;quot;stick&amp;quot; a colon in for my lazy users?&amp;nbsp; Sure I say.&amp;nbsp;&amp;nbsp; Why not?&lt;/p&gt;
&lt;p&gt;Well, I put a couple of&amp;nbsp;rules together that run when a colon is missing (one for 3 digit and one for 4 digit using regex pattern&amp;nbsp;matches&amp;nbsp;\d\d\d or \d\d\d\d respectively).&amp;nbsp; Great, no problem so far, the rule absolutely fires on 0345, for example.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the Set Field&amp;#39;s Value &lt;em&gt;fx&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;concat(0, substring(., 1, string-length(.) - 2), &amp;quot;:&amp;quot;, substring(., string-length(.) - 1, 2))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Turns 345 into 03:45.&amp;nbsp; But the datatype validation&amp;nbsp;is failing; leaves it &amp;quot;red&amp;quot;.&amp;nbsp;&amp;nbsp; If I type in the box, backspace over the last digit &amp;amp; retype it effectively not changing the string ONE LITTLE BIT the datatype validation passes muster. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve tried number() around all the substrings, no joy.&amp;nbsp; I don&amp;#39;t see any &amp;quot;time()&amp;quot; converter.....very annoying.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Suggestions? (besides &amp;quot;no, your lazy users are just gonna have to type a colon you unreasonable customer you&amp;quot;) ;-)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>