<?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: Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72606.aspx</link><pubDate>Fri, 02 Dec 2011 22:37:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72606</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72606.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72606</wfw:commentRss><description>&lt;p&gt;It seems like if there were a way to use a default value, that might behave better than a rule - in the case of merging, at least.&lt;/p&gt;&lt;p&gt;But the default calc would be pretty tricky, since you sort of need a condition.&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a blog post that explains a way to create a type of conditional default that I&amp;#39;ve used before.&lt;/p&gt;&lt;p&gt;But I think first I&amp;#39;d verify that the behavior was what I wanted when merging if I use default values - so set it up to use a default (like a Sum function or someting) and see if you still have unexpected behavior like you&amp;#39;ve had in your rules based version. No reason to work through the complicated logic for a conditional default if it isn&amp;#39;t going to resolve the issue.&lt;/p&gt;</description></item><item><title>Re: Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72578.aspx</link><pubDate>Thu, 01 Dec 2011 19:12:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72578</guid><dc:creator>christian84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72578.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72578</wfw:commentRss><description>&lt;p&gt;I had the same thoughs so I created a repeating table with 1 column with a default value of &amp;quot;1&amp;quot; in the field. I used a Sum() of that row in the footer field and set the rules to only run when that field was &amp;lt;2 since when the tables merge the footer row would sum the default fields. I got some pretty strange results.... I also though of multipling by the number of days since i have the master sheet injected with the DateDiff qRule that pulls start and end dates from a different view in the complete template. This works great provided that the employees all work 8 or more hours per day. This became an issue when on the same day emplyee &amp;quot;A&amp;quot; worked 9 hours and was relived by employee &amp;quot;B&amp;quot; who only worked 6 hours. So there should be 8 hours of Regular time and 7 hours overtime. When I use the multiply by date method, it turns employee &amp;quot;B&amp;quot;&amp;#39;s time to 8 hours resulting in 16 hours of charges when only 15 were worked. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have also tried nesting the tables in repeating sections but this resulted in more strange results....&lt;/p&gt;</description></item><item><title>Re: Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72561.aspx</link><pubDate>Thu, 01 Dec 2011 17:36:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72561</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72561</wfw:commentRss><description>&lt;p&gt;Well - the issue is with your rules, I think.&lt;/p&gt;&lt;p&gt;The field /my:Liaison_Time/my:Liaison_Total_Daily_Regular_Time_For_Billing is being set based on the idea that the form will only have a single, 8 hour day. When you merge the forms, you have multiple days.&lt;/p&gt;&lt;p&gt;Same with this field: /my:Liaison_Time/my:Liaison_Total_Daily_Overtime_For_Billing&lt;/p&gt;&lt;p&gt;But I wonder - I guess, the expectation of merging behavior would be that these fields would just be added, right? Not that the rules would fire again....&lt;/p&gt;&lt;p&gt;So I think what you are saying is that the merge behavior is not&amp;nbsp;working as you&amp;#39;d anticipate. &lt;/p&gt;&lt;p&gt;You could test this, I think. Add a condition to the rules so that you can control whether they fire (like &amp;quot;FieldA = true&amp;quot; then put a control bound to that field on your form so you can toggle it). And then try merging in a scenario where the rules won&amp;#39;t fire - see if the fields are added instead of the rules firing....&lt;/p&gt;&lt;p&gt;I guess it seems like your rule conditions may need to be the distinct number of dates * 8 to determine whether there is overtime or not - does that make sense?&lt;/p&gt;</description></item><item><title>Re: Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72553.aspx</link><pubDate>Thu, 01 Dec 2011 15:55:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72553</guid><dc:creator>christian84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72553</wfw:commentRss><description>&lt;p&gt;The screenshots zip files&lt;/p&gt;</description></item><item><title>Re: Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72552.aspx</link><pubDate>Thu, 01 Dec 2011 15:52:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72552</guid><dc:creator>christian84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72552.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72552</wfw:commentRss><description>&lt;p&gt;OK I&amp;#39;ve attached the files, seems Firefox wasnt up to date and Internet Explorer worked :)&lt;/p&gt;
&lt;p&gt;There are 2 ip files:&lt;/p&gt;
&lt;p&gt;Screenshots.zip includes 2 files; 1.bmp is a screenshot of a form preview where I entered time for one day. This is showing the correct calculations. The seecond, 2.bmp shows two forms which have been merged and the calculations are not showing up correctly.&lt;/p&gt;
&lt;p&gt;The second zip file contains the template that I created. It is one of my earlier creations so it is a little rough when it comes to data sources.&lt;/p&gt;</description></item><item><title>Re: Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72534.aspx</link><pubDate>Thu, 01 Dec 2011 00:58:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72534</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72534</wfw:commentRss><description>You should be able to attach files under the Options tab - just one per post, so you can either zip &amp;#39;em up, or add 3 posts....</description></item><item><title>Manipulating repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/72414.aspx</link><pubDate>Mon, 28 Nov 2011 20:42:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72414</guid><dc:creator>christian84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72414.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72414</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Well I had a great post but then I tried to add images and all my words were deleted, so, round 2 :)&lt;/p&gt;
&lt;p&gt;I am working on a template part to calculate the time of one or multiple emplyees providing a single service which is billed on an 8 hour day. In essence, the cost to the customer is the same if 1 employee works 15 hours (they would be charged 8 regular and 7 at the overtime rate) or if 2 employees work the same 15 hour day by I only pay the employee regular hours. The customer would still be charged for the service (8 regular and 7 overtime hours)&lt;/p&gt;
&lt;p&gt;My template works, although it is a bit crude so long as forms are not merged. If the forms are merged, then all hours over 8 go into overtime (which is ok on a day to day basis but not for a summary)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have attached 3 documents: The template part, a screen shot of one day and a screen shot of a merged form. Any ideas?&lt;/p&gt;
&lt;p&gt;Ok, so it did not allow me to attach files :( Help??????&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>