<?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: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106799.aspx</link><pubDate>Thu, 26 May 2016 15:56:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106799</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106799.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106799</wfw:commentRss><description>Thanks for the update. I have removed the getuserbyprofilename, instead just setting the value from the username() to the accountid on a list. I can pull the required data filtering on username. It appears to work with no errors. I will make the changes suggested. 
Thanks</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106798.aspx</link><pubDate>Thu, 26 May 2016 15:21:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106798</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106798.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106798</wfw:commentRss><description>When you add qRules to a form, you are adding code. This then puts the form in the SharePoint Sandbox, which can cause a variety of different behaviors than seen in the same form previously. Are you running the data connection on load? If so, change that (walk through the data connection again, deselect the checkbox that indicates you want the data to load when the form opens). On the QdabraRules finishedLoading node, add a rule with the condition finishedLoading = true. Set the query username field in your data connection to the userName() function in InfoPath, then execute the query and see if that resolves the issue. Attach a copy of your form if you need a hand with this (under the Options tab in a reply).</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106797.aspx</link><pubDate>Thu, 26 May 2016 15:15:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106797</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106797</wfw:commentRss><description>Meant to say its in the browser</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106796.aspx</link><pubDate>Thu, 26 May 2016 15:13:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106796</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106796</wfw:commentRss><description>Hi
In preview it works fine no problems. After publishing and opening the form it comes up with the error.</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106794.aspx</link><pubDate>Thu, 26 May 2016 15:06:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106794</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106794</wfw:commentRss><description>Is this in the browser? Or in preview / filler?</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106793.aspx</link><pubDate>Thu, 26 May 2016 15:04:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106793</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106793</wfw:commentRss><description>Yeah, you&amp;#39;ll have to get the first value, then the second value and add them together.</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106790.aspx</link><pubDate>Thu, 26 May 2016 12:01:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106790</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106790.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106790</wfw:commentRss><description>Hilary

I&amp;#39;ve noticed a strange behaviour. My form with Qrules and a secondary data connection (GetProfileByUsername) errors on opening. 
The following query failed: GetUserProfileByName (User: , Form Name: tf1, IP: , Connection Target: , Request: , Form ID: urn:schemas-microsoft-com:office:infopath:tf1:-myXSD-2016-05-26T11-51-03 Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.
A user with the account name  could not be found. ---&amp;gt; 

However the same form without Qrules works with no issue.</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106786.aspx</link><pubDate>Thu, 26 May 2016 06:43:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106786</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106786</wfw:commentRss><description>HI Hilary 

I did see a similar example from the webinar. In regards to a half day using Qrules DateDiff command, It would be relatively straight forward to calculate the minutes and then convert to hours. Doing it this way though you lose the weekdays component.
pity we cant have /component=weekdays, /totalminutes

Thanks for your input.</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106784.aspx</link><pubDate>Thu, 26 May 2016 00:03:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106784</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106784</wfw:commentRss><description>Attaching a sample that at least shows an hours calc excluding weekends based on an 8 hour day.... sorry, I didn&amp;#39;t have a chance today to do much more than this, but hopefully it gives you a jump start. Save the file locally, right click &amp;amp; select design, from there you can preview &amp;amp; look at the logic.</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106779.aspx</link><pubDate>Wed, 25 May 2016 15:09:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106779</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106779</wfw:commentRss><description>I&amp;#39;ll try to put together a little sample later today and attach it to a reply. :)</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106774.aspx</link><pubDate>Wed, 25 May 2016 06:31:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106774</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106774.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106774</wfw:commentRss><description>Hello Hilary

Our half day is 4 hours.
for the leave request  user enters start date and end date, with time as an option. I had a thought about just using option of morning or afternoon.

Thanks for any advise you can give

J</description></item><item><title>Re: QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106769.aspx</link><pubDate>Wed, 25 May 2016 00:40:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106769</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106769.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106769</wfw:commentRss><description>What is a half day for you? 4 hours? 12 hours? :) Can you give me a little more info about what you might enter &amp;amp; what you&amp;#39;d expect for an outcome?</description></item><item><title>QRules DateDiff Calculate half day</title><link>https://www.infopathdev.com:443/forums/thread/106760.aspx</link><pubDate>Tue, 24 May 2016 13:54:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106760</guid><dc:creator>joegood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106760</wfw:commentRss><description>Hello 

I am evaluating qrules for a leave request form. However we also need to calculate half days. I specified the controls as date time. I also want to exclude weekends. can some one point me in right direction to achieve the outcome.
Thanks in advance</description></item></channel></rss>