<?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: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121981.aspx</link><pubDate>Fri, 15 Nov 2019 19:05:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121981</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121981.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121981</wfw:commentRss><description>Here&amp;#39;s a post that might help you - I&amp;#39;ve not tried it, however: https://social.msdn.microsoft.com/Forums/en-US/b72c47ad-4f83-49db-8372-3e336c2e1cde/infopath-rule-for-calculating-business-days?forum=sharepointcustomizationlegacy</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121980.aspx</link><pubDate>Fri, 15 Nov 2019 19:02:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121980</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121980</wfw:commentRss><description>So this is working across all of the fields but I just realized it is not excluding weekends....any idea how to get that working in this?</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121979.aspx</link><pubDate>Fri, 15 Nov 2019 17:53:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121979</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121979</wfw:commentRss><description>Thanks appreciate you guidance as always!!</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121978.aspx</link><pubDate>Fri, 15 Nov 2019 17:31:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121978</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121978</wfw:commentRss><description>I&amp;#39;ve not used this style of calculation before, so I&amp;#39;m not super familiar with it - but I do know it makes use of some helper fields. You may need different helper fields for each set of calculations.</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121977.aspx</link><pubDate>Fri, 15 Nov 2019 17:26:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121977</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121977</wfw:commentRss><description>ok so one more issue with this date to hours issue.  I am doing the hours between submitted and masterdata then masterdata to credit then credit to tax.   i should be able to apply multiple rules to fields shouldnt i ?  It seems to be duplicating the number...just want to make sure it is possible</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121976.aspx</link><pubDate>Fri, 15 Nov 2019 17:22:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121976</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121976</wfw:commentRss><description>There isn&amp;#39;t. If you copy the view by selecting everything and pasting it into your new form, you&amp;#39;ll have to rebind all the controls to the new form&amp;#39;s schema. Generally it is just simpler to recreate it.</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121975.aspx</link><pubDate>Fri, 15 Nov 2019 16:52:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121975</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121975</wfw:commentRss><description>THANK YOU !!! that fixed it....i don&amp;#39;t suppose you know a quick way to copy a view from one form to another...completely separate form....any help would be appreciated.</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121974.aspx</link><pubDate>Fri, 15 Nov 2019 16:45:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121974</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121974.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121974</wfw:commentRss><description>Sorry - I was looking for default values instead of at rules! Your XPath is incorrect. The correct condition for Rule 1 on HoursNewStatus would be: substring-before(xdDate:AddSeconds(xdDate:AddDays(../my:SubmitDate, substring-before(., &amp;quot;;&amp;quot;)), 0), &amp;quot;T&amp;quot;) != substring-before(../../my:Credit/my:CreditOwnerAssignedDate, &amp;quot;T&amp;quot;)</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121973.aspx</link><pubDate>Fri, 15 Nov 2019 16:15:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121973</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121973</wfw:commentRss><description>I just attached it to my response but here it is again.</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121972.aspx</link><pubDate>Fri, 15 Nov 2019 16:09:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121972</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121972.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121972</wfw:commentRss><description>Do you have a copy of this form where you&amp;#39;ve tried to implement the logic you&amp;#39;ve linked to? You originally posted a screenshot that showed a rule inspector issue.</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121971.aspx</link><pubDate>Fri, 15 Nov 2019 15:45:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121971</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121971</wfw:commentRss><description>my fields are SubmitDate and CreditOwnerAssignedDate so you wont exactly see those and I am attaching my form for you as well if it lets me.</description></item><item><title>Re: Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121970.aspx</link><pubDate>Fri, 15 Nov 2019 15:39:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121970</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121970</wfw:commentRss><description>I&amp;#39;m looking at the HourDifference file you attached - and I don&amp;#39;t see the field in your screenshot. I don&amp;#39;t know how to help you figure out the issue when the screenshot doesn&amp;#39;t match the provided form? Or is it a different form? When you say the forum won&amp;#39;t &amp;quot;let&amp;quot; you attach your form - can you tell me what error you receive? Is the form too big?</description></item><item><title>Re: Covert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121969.aspx</link><pubDate>Fri, 15 Nov 2019 15:10:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121969</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121969</wfw:commentRss><description>Its not allowing me to add my form so i guess I wait</description></item><item><title>Re: Covert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121966.aspx</link><pubDate>Fri, 15 Nov 2019 15:07:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121966</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121966</wfw:commentRss><description>Wouldnt let me add all of the files so here is the example</description></item><item><title>Convert Days to hours rules</title><link>https://www.infopathdev.com:443/forums/thread/121965.aspx</link><pubDate>Fri, 15 Nov 2019 15:06:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121965</guid><dc:creator>Ruenells</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=121965</wfw:commentRss><description>So I had this working then I messed with it.

I am following the attached example i got from https://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/?unapproved=9269&amp;amp;moderation-hash=ab0e755ed616146be7e0401f7d59da01#comment-9269 and it does work, however because I messed with it I am now getting this weird error saying that the field is not valid in the rule inspector and another error regarding the AddSeconds

InfoPath
InfoPath has encountered an error. The operation failed.
The form&amp;#39;s code contains an error. 

The following call in the form&amp;#39;s code failed: Date.AddSeconds
Unspecified error


I have attached to example which is the HoursDifference and my form SoldTo.

Please help me figure out what I am doing wrong</description></item></channel></rss>