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?
The source for my example looks as follows:
<DataSources>
<SharePoint:AggregateDataSource runat="server" IsSynchronous="false" SeparateRoot="true" id="ProjectRollup"><sources>
<SharePoint:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" selectcommand="<View></View>">
<SelectParameters><asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/>
</SelectParameters><DeleteParameters><asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/>
</DeleteParameters><UpdateParameters><asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/>
</UpdateParameters><InsertParameters><asp:Parameter Name="ListID" DefaultValue="49A9155F-4590-494B-B667-76EAC5710CAB"/>
</InsertParameters>
</SharePoint:SPDataSource>
<SharePoint:SPDataSource runat="server" DataSourceMode="CrossList" UseInternalName="true" selectcommand="<View><Webs Scope='Recursive'></Webs><Lists ServerTemplate='106' BaseType='0'></Lists><ViewFields><FieldRef Name='_x0025__x0020_Allocation'/><FieldRef Name='Estimated_x0020_Expense'/><FieldRef Name='Assignment_x0020_Status'/><FieldRef Name='Standard_x0020_Rate'/><FieldRef Name='Actual_x0020_Rate'/></ViewFields></View>">
</SharePoint:SPDataSource>
</sources><aggregate><concat name="data source">
<datasource name="Projects" id="0" Type="SPList"/>
<datasource name="Staffing" id="1" Type="SPList"/>
</concat>
</aggregate>
</SharePoint:AggregateDataSource>
</DataSources>
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:
<aggregate><concat name="data source">
<datasource name="Projects" id="0" Type="SPList"/>
<datasource name="Staffing" id="1" Type="SPList"/>
</concat>
</aggregate>
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?
Curious,
Patrick