<?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: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99599.aspx</link><pubDate>Wed, 15 Oct 2014 18:04:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99599</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99599</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;As you have advsied we need to write a code to get the total shift hours hence I have added a current time feild on form which will reflect once shift status is selected.&lt;/p&gt;
&lt;p&gt;Once shift status selected it will reflect the current time on current time feild and total shift hour feild will get it value from current time - logged out date and time and it is fruitfull.&lt;/p&gt;
&lt;p&gt;I have tried to get total of 01st break total + 02nd Break total + 03rd Break total however no sucess.&lt;/p&gt;
&lt;p&gt;Could you please explain how to sum up the total break function.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99595.aspx</link><pubDate>Wed, 15 Oct 2014 16:41:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99595</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99595</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;Thank you for your support provided to get the&amp;nbsp;query resolved.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99593.aspx</link><pubDate>Wed, 15 Oct 2014 16:36:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99593</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99593</wfw:commentRss><description>&lt;p&gt;You&amp;#39;d probably have to write code for that.&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99591.aspx</link><pubDate>Wed, 15 Oct 2014 16:28:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99591</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99591</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;One more thing I would like to know.&lt;/p&gt;
&lt;p&gt;Yes as you have got it correct. I first created the database and while creating the form directly connected it and design the form.&lt;/p&gt;
&lt;p&gt;Earlier I tried to create a blank form and then connect it to database but it not allowing me dont know the exact cause but i think might be because of one field which require more than 255 character.&lt;/p&gt;
&lt;p&gt;As you have seen the form there is a field Login Date and Time and at the end of the form one field with Total Shift hours.&lt;/p&gt;
&lt;p&gt;Is there is any function which will start timer or clock on total shift time once login Date and time entered.&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99589.aspx</link><pubDate>Wed, 15 Oct 2014 16:21:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99589</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99589.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99589</wfw:commentRss><description>&lt;p&gt;Your form is bound to your Access database - I don&amp;#39;t know if Access has time only column types. :)&lt;/p&gt;
&lt;p&gt;If you started your form as a new, blank template (not bound to a DB) you can have time data types. Of course, then you wouldn&amp;#39;t be able to out of the box submit to Access, so that probably means that won&amp;#39;t work for you.&lt;/p&gt;
&lt;p&gt;Glad this helped.&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99588.aspx</link><pubDate>Wed, 15 Oct 2014 16:17:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99588</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99588.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99588</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s wonderfull, you made my day.&lt;/p&gt;
&lt;p&gt;I have checked the file and understand the validation part.&lt;/p&gt;
&lt;p&gt;I added the&amp;nbsp;same function on other fields and giving me the desired result but yes as you confirmed it will&amp;nbsp;give a validation of T if start and end time is blank.&lt;/p&gt;
&lt;p&gt;I do not have knowledge about it but what I have learnt&amp;nbsp;on infopath is from web and lots of functions from your&amp;nbsp;post so that is the reason I tried to contact you at first instance to get help and I&amp;nbsp;appreciate it.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have also searched on website and found as they advise to pick Time feild only instead of&amp;nbsp;date and time but I do not get&amp;nbsp;time feild option on infopath. Is it related to access database which it is connected to?&lt;/p&gt;
&lt;p&gt;Anyhow my query is resolved&amp;nbsp;and will contact you if&amp;nbsp;I need any further help.&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99586.aspx</link><pubDate>Wed, 15 Oct 2014 16:01:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99586</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99586</wfw:commentRss><description>&lt;p&gt;This one is close - save the file locally and then right click and select Design to open in design mode so you can look at the default value for the time spent coaching.&lt;/p&gt;
&lt;p&gt;I used the formula from the BrainTrove post - the thing is, in that formula you have to have Time fields and your fields are all date / time. So, I added an additional substring-after to the fields to only get the data after the &amp;quot;T&amp;quot; in the date time. However, that gave me a validation error since your field for the time spent is also a date time, and I was populating it with time only. So, I added a concat to include the date - and also a &amp;quot;T&amp;quot;, so the XML would be valid. The issue there is that when there is no start or end time, the default is &amp;quot;T&amp;quot;, which is an invalid date time. So - you may want to use this formula or something similar in a rule on your start and end time to set the value of the total time instead of using a default - then you have more control over when the rule runs (only when there is both a start and an end time, for example). At any rate, hopefully this will give you some ideas and something you can work from. &lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99583.aspx</link><pubDate>Wed, 15 Oct 2014 15:45:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99583</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99583</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you for your prompt response.&lt;/p&gt;
&lt;p&gt;In the meantime I have tried two other function but getting NaN on one and on&amp;nbsp;another it shows false.&lt;/p&gt;
&lt;p&gt;both formula on below page.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.formsonfire.com/infopath/calculating-time-differences-in-infopath-without-custom-code/"&gt;http://www.formsonfire.com/infopath/calculating-time-differences-in-infopath-without-custom-code/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for letting me know as how we can attach the form.&lt;/p&gt;
&lt;p&gt;I have also tried to query the details from access database as done a calculation steps but no use as it quering data once form submitted to database.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99579.aspx</link><pubDate>Wed, 15 Oct 2014 15:22:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99579</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99579.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99579</wfw:commentRss><description>&lt;p&gt;Can you attach a copy of your form under the Options tab in a reply? I&amp;#39;ll take a look at your formula.&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99577.aspx</link><pubDate>Wed, 15 Oct 2014 15:16:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99577</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99577.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99577</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;Thank you for your prompt response.&lt;/p&gt;
&lt;p&gt;I have tried the&amp;nbsp;function given on&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.braintrove.com/id/95"&gt;http://www.braintrove.com/id/95&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and below is the formula i created as given.&lt;/p&gt;
&lt;p&gt;translate(addSeconds(@Coaching_Out_Time, -1 * (substring(@Coaching_In_Time, 1, 2) * 3600 + substring(@Coaching_In_Time, 4, 2) * 60 + substring(@Coaching_In_Time, 7, 2))), &amp;quot;ER?&amp;quot;, &amp;quot;&amp;quot;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Below function is given on webpage:&lt;/p&gt;
&lt;div class="codeBlock"&gt;
&lt;div&gt;translate(xdDate:AddSeconds(../my:EndTime, -1 * (substring(../my:StartTime, 1, 2) * 3600 + substring(../my:StartTime, 4, 2) * 60 + substring(../my:StartTime, 7, 2))), &amp;quot;ER?&amp;quot;, &amp;quot;&amp;quot;)&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I typed the formula and once I clciked to check formula the (xdDate) gets vanished and no data is updated on total time feild.&lt;/p&gt;
&lt;p&gt;All my fields are time format to 09:46:15 hence I tried other format as well but no use.&lt;/p&gt;
&lt;p&gt;I tried to add the form image today as well but no get through.&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99556.aspx</link><pubDate>Tue, 14 Oct 2014 16:51:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99556</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99556</wfw:commentRss><description>&lt;p&gt;Try this post and see if it helps:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.braintrove.com/id/95"&gt;http://www.braintrove.com/id/95&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Need Help for Infopath form functions to subtract time</title><link>https://www.infopathdev.com:443/forums/thread/99554.aspx</link><pubDate>Tue, 14 Oct 2014 16:36:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99554</guid><dc:creator>Upender Singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=99554</wfw:commentRss><description>&lt;p&gt;Hello Hilary,&lt;/p&gt;
&lt;p&gt;First of&amp;nbsp;all&amp;nbsp;I would&amp;nbsp;like to&amp;nbsp;thank you for your posts.&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;gone through it and already resolved most of my concern.&lt;/p&gt;
&lt;p&gt;Currently I am working on a Infopath form which I love to attach it however not getting an option to add it.&lt;/p&gt;
&lt;p&gt;I am working on a form which is connected to Access database in backgroud to submit the data.&lt;/p&gt;
&lt;p&gt;I added a break&amp;nbsp;start time and end&amp;nbsp;time but not able to get a total break time or total time.&lt;/p&gt;
&lt;p&gt;Please help me to get the total&amp;nbsp;break time and balance break time.&lt;/p&gt;
&lt;p&gt;You can see there is&amp;nbsp; field with total shift hours so we can&amp;nbsp;get this as well.&lt;/p&gt;
&lt;p&gt;I have searched the net but not able to understand it.&lt;/p&gt;
&lt;p&gt;Please do&amp;nbsp;let me know if i need to amend the form in order to get the desired results.&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;for your support in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards,&lt;/p&gt;
&lt;p&gt;Upender Singh&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;
&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>