Stump the Panel Topic: Aggregating Data Sources featuring Cross List DataSourceMode http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Wed, 11 Feb 2009 16:03:57 +0000 pjcolbeck on "Aggregating Data Sources featuring Cross List DataSourceMode" http://www.endusersharepoint.com/STP/topic/aggregating-data-sources-featuring-cross-list-datasourcemode#post-4042 Mon, 09 Feb 2009 13:00:25 +0000 pjcolbeck 4042@http://www.endusersharepoint.com/STP/ <p>Thanks Laura!<br /> Good information. The CQWP would indeed make life easier...unfortunately I'm working in a WSS-only environment. Do you know if it is possible to join cross list SPDataSources to other SPDataSources in WSS 3.0?</p> <p>When you create a linked data source, SP Designer inserts the following script after the DVWP &lt;DataSources&gt; callout:</p> <p>&lt;SharePoint:AggregateDataSource runat="server" IsSynchronous="" SeparateRoot="true" RootName="" RowsName="" ID="Unique_Combo_ID"&gt;<br /> &lt;Sources&gt;<br /> &lt;SharePoint:SPDataSource runat="server" ...<br /> &lt;/SharePoint:SPDataSource&gt;<br /> &lt;SharePoint:SPDataSource runat="server" ....<br /> &lt;/SharePoint:SPDataSource&gt;<br /> &lt;/Sources&gt;<br /> &lt;aggregate&gt;<br /> &lt;concat name="data source"&gt;<br /> &lt;datasource name="List1" id="0" Type="SPList"/&gt;<br /> &lt;datasource name="List2" id="1" Type="SPList"/&gt;<br /> &lt;/concat&gt;<br /> &lt;/aggregate&gt;<br /> &lt;/SharePoint:AggregateDataSource&gt;<br /> &lt;/DataSources&gt;</p> <p>I'm assuming that it is pretty straightforward to swap out the SPDataSource script for a functioning "cross list" data source with the default "list" data source, but I don't know how to specify a dynamic list of datasources for the &lt;aggregate&gt; attribute. Any thoughts as to how to accomplish this? Are there any other concerns that I should be aware of when attempting to link cross list data sources?</p> <p>Curious,</p> <p>Pat </p> laura67 on "Aggregating Data Sources featuring Cross List DataSourceMode" http://www.endusersharepoint.com/STP/topic/aggregating-data-sources-featuring-cross-list-datasourcemode#post-4036 Mon, 09 Feb 2009 10:39:03 +0000 laura67 4036@http://www.endusersharepoint.com/STP/ <p>Not sure if this is what you're referring to, but I've got a blog post where I talk about merging data sources:</p> <p><a href="http://spinsiders.com/laurar/2009/01/29/ways-to-display-multiple-document-libraries/" rel="nofollow">http://spinsiders.com/laurar/2009/01/29/ways-to-display-multiple-document-libraries/</a> </p> pjcolbeck on "Aggregating Data Sources featuring Cross List DataSourceMode" http://www.endusersharepoint.com/STP/topic/aggregating-data-sources-featuring-cross-list-datasourcemode#post-4034 Sat, 07 Feb 2009 14:55:07 +0000 pjcolbeck 4034@http://www.endusersharepoint.com/STP/ <p>I am attempting to create a DVWP featuring aggregated data in a WSS-only environment. This is typically a pretty straightforward proposition using linked sources, but what do you do if you would like to include a list in CrossList DataSourceMode?</p> <p>The source for my example looks as follows:</p> <p> &lt;DataSources&gt;<br /> &lt;SharePoint:AggregateDataSource runat="server" IsSynchronous="false" SeparateRoot="true" id="ProjectRollup"&gt;&lt;sources&gt;<br /> &lt;SharePoint:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" selectcommand="&lt;View&gt;&lt;/View&gt;"&gt;<br /> &lt;SelectParameters&gt;&lt;asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/&gt;<br /> &lt;/SelectParameters&gt;&lt;DeleteParameters&gt;&lt;asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/&gt;<br /> &lt;/DeleteParameters&gt;&lt;UpdateParameters&gt;&lt;asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/&gt;<br /> &lt;/UpdateParameters&gt;&lt;InsertParameters&gt;&lt;asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/&gt;<br /> &lt;/InsertParameters&gt;<br /> &lt;/SharePoint:SPDataSource&gt;<br /> &lt;SharePoint:SPDataSource runat="server" DataSourceMode="CrossList" UseInternalName="true" selectcommand="&lt;View&gt;&lt;Webs Scope='Recursive'&gt;&lt;/Webs&gt;&lt;Lists ServerTemplate='106' BaseType='0'&gt;&lt;/Lists&gt;&lt;ViewFields&gt;&lt;FieldRef Name='_x0025__x0020_Allocation'/&gt;&lt;FieldRef Name='Estimated_x0020_Expense'/&gt;&lt;FieldRef Name='Assignment_x0020_Status'/&gt;&lt;FieldRef Name='Standard_x0020_Rate'/&gt;&lt;FieldRef Name='Actual_x0020_Rate'/&gt;&lt;/ViewFields&gt;&lt;/View&gt;"&gt;<br /> &lt;/SharePoint:SPDataSource&gt;<br /> &lt;/sources&gt;&lt;aggregate&gt;&lt;concat name="data source"&gt;<br /> &lt;datasource name="Projects" id="0" Type="SPList"/&gt;<br /> &lt;datasource name="Staffing" id="1" Type="SPList"/&gt;<br /> &lt;/concat&gt;<br /> &lt;/aggregate&gt;<br /> &lt;/SharePoint:AggregateDataSource&gt;<br /> &lt;/DataSources&gt;</p> <p>I've worked with cross list rollups quite a bit, but never aggregated them with other lists. When I look at the script that is generated, the following fragment jumps out as the potential source of my "non-specific error" source:</p> <p> &lt;aggregate&gt;&lt;concat name="data source"&gt;<br /> &lt;datasource name="Projects" id="0" Type="SPList"/&gt;<br /> &lt;datasource name="Staffing" id="1" Type="SPList"/&gt;<br /> &lt;/concat&gt;<br /> &lt;/aggregate&gt;</p> <p>What modifications to the code are necessary to ensure that all of the lists in the cross list rollup are aggregated into the data source definition?</p> <p>Curious,<br /> Patrick </p>