<?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: Aggregated Sums</title><link>https://www.infopathdev.com:443/forums/thread/69059.aspx</link><pubDate>Mon, 08 Aug 2011 06:35:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69059</guid><dc:creator>Yesurbius</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69059</wfw:commentRss><description>So here&amp;#39;s where I&amp;#39;m at now.&lt;br /&gt;&lt;br /&gt;

I&amp;#39;ve created an XSLT.  I *think* its correct.   I&amp;#39;ve added it as a resource and updated the manifest.xcf, telling it to use it for merges.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ve worked through most of the errors - but am getting the following error now:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Applying the following merge XSLT file to the data created invalid XML: ReportMerge.xsl.&lt;br /&gt;
Invalid at the top level of the document.&lt;br /&gt;
&lt;br /&gt;
Line 1, Position 40&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-16&amp;quot;?&amp;gt;&lt;br /&gt;
---------------------------------------^&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I read that I needed to add the following line in the Stylesheet section of my XSLT .. I did that - no effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:output method=&amp;quot;xml&amp;quot; version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; indent=&amp;quot;no&amp;quot; omit-xml-declaration=&amp;quot;yes&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Will continue researching it.</description></item><item><title>Re: Aggregated Sums</title><link>https://www.infopathdev.com:443/forums/thread/68930.aspx</link><pubDate>Tue, 02 Aug 2011 22:09:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68930</guid><dc:creator>Yesurbius</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68930</wfw:commentRss><description>&lt;p&gt;Okay - an Update.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve still been unable to find a solution through the User Interface.&lt;br /&gt;The view XSL files that I seen, were simply describing my Expressions - not the actual transformation.&lt;br /&gt;I found &lt;a class="" title="MSDN article" href="http://msdn.microsoft.com/en-us/library/ee526363.aspx"&gt;this MSDN article&lt;/a&gt; and it sounds like it may be key.&amp;nbsp; It looks like I may have to modify / recreate the merge.xsl - thus doing a custom merge.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;So I&amp;#39;m giving myself a crash course in XSLT - and going through the source files trying to figure out how infopath works with the files.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Aggregated Sums</title><link>https://www.infopathdev.com:443/forums/thread/68808.aspx</link><pubDate>Thu, 28 Jul 2011 16:11:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68808</guid><dc:creator>Yesurbius</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68808</wfw:commentRss><description>&lt;p&gt;Okay my head is hurting.&amp;nbsp; Been reading up on XSL / XSLT.&amp;nbsp;&amp;nbsp; I saved my Infopath file as source files, then I went in and looked at the XSL for my &amp;quot;Monthly Rollup&amp;quot; view.&amp;nbsp;&amp;nbsp; I noticed that it had:&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:for-each select=&amp;quot;../my:Item/my:Name&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;for the group, and for the counts it had:&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:value-of select=&amp;quot;sum(xdMath:Nz(my:SoldCount))&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;From what I read on XSL/XSLT groupings - that&amp;#39;s right on the money..&amp;nbsp; that&amp;#39;s what it should say in order to sum the Sold&lt;em&gt;Count &lt;/em&gt;field, based on unique product &lt;em&gt;Name &lt;/em&gt;values.&lt;/p&gt;
&lt;p&gt;Doesn&amp;#39;t seem to be&amp;nbsp;merging when I enable those options however.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recreated&amp;nbsp;a simpler project from scratch just to see if it was something else causing the issue - and I&amp;#39;m getting the same results.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My Data Source looks like this:&lt;/p&gt;
&lt;p&gt;Sales&lt;br /&gt;&amp;nbsp; SampleDate (Date)&lt;br /&gt;&amp;nbsp; Item (Group, Repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name (Text)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SoldCount (Whole&amp;nbsp;Number)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaleValue (Double Number)&lt;/p&gt;
&lt;p&gt;On the Item Group, I went Properties -&amp;gt; Rules and Merge -&amp;gt; Merge Settings and selected &lt;strong&gt;Insert the groups from the source forms into the target form (default)&lt;/strong&gt; and checked off the option &lt;strong&gt;Combine groups with the same field value&lt;/strong&gt;, setting the field to &lt;strong&gt;&lt;em&gt;my:Name&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Despite re-creating it - I am still getting the same behaviour - it doesn&amp;#39;t seem to merge any data in (or maybe it does, but it does not put it anywhere).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Aggregated Sums</title><link>https://www.infopathdev.com:443/forums/thread/68800.aspx</link><pubDate>Thu, 28 Jul 2011 13:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68800</guid><dc:creator>Yesurbius</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68800</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I just starting to play around with merging outside of Sharepoint.&amp;nbsp;&amp;nbsp; I have a regular offline form that records sales counts each day.&amp;nbsp; Each form is saved as an XML file.&amp;nbsp; Once a month, I&amp;#39;d like to do a merge of all that month&amp;#39;s XML files, and report the totals for each position.&lt;/p&gt;
&lt;p&gt;From what I&amp;#39;ve been able to tell - I would need to create a &amp;quot;Monthly Rollup&amp;quot; view, which hard codes each product, and then uses the SUM() function, in conjunction with a hard-coded filter, filtering for each product.&lt;/p&gt;
&lt;p&gt;That would normally be fine - except new products are added seemingly daily and older ones are dropped off.&amp;nbsp;&amp;nbsp;&amp;nbsp; When I merge the form, I notice that it doesn&amp;#39;t roll them up - it just mashes them all together.&amp;nbsp;&amp;nbsp; So if I have three forms that have &lt;strong&gt;Apples &lt;/strong&gt;listed, the merged form would simply have &lt;strong&gt;Apples &lt;/strong&gt;listed three times as opposed to being listed once with a SUM() performed.&lt;/p&gt;
&lt;p&gt;In the Merge Settings (Properties of my repeating&amp;nbsp;Product Group), I see an option: &lt;em&gt;Combine groups with the same field value&lt;/em&gt;.. but&amp;nbsp;when that is enabled the merge doesn&amp;#39;t&amp;nbsp;happen.&amp;nbsp; I checked the sales count field to see if there is a merge option to specify an aggregate - but it gives me &amp;quot;The merge action cannot be changed because no additional merge actions are available for the data type of this field.&amp;quot;&amp;nbsp;(its a Whole Number field).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am using Infopath 2007.&amp;nbsp; I also cannot access any custom coding functions - disabled by the IT department :P&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;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>