Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Adding AdditionalGroupAndSortFields in Content Query Web Part (CQWP) Creates Error When Importing

$
0
0

I am trying to add an additional choice to group the items in my Content Query Web Part, specifically a site column I created called "ProductRollup", which is a choice of products. I had already modified the ItemStyle.xsl so that the column displayed when the query was run. The column shows up in DataMappings in the web part code, due to this. Now I just want it to be the field that the Grouping is driven by.

I exported the web part and tried to add the column to the "AdditionalGroupAndSortFields", but when I import the web part back, it gives me an error that the web part is not valid. I am only addingProductRollup</property> to the web part. If I remove that code it imports fine. Is there something wrong with my syntax? I've tried variations, but can't get anything to work.

Excerpt:

<property name="AdditionalGroupAndSortFields" type="string" />ProductRollup</property><property name="UseSQLDataSourcePaging" type="bool">True</property><property name="Height" type="string" /><property name="DataMappings" type="string">productrollup:{ceafdfc9-1857-45a2-8aaa-f13c347c63d2},ProductRollup,Choice;

I am using SharePoint 2013 Online.


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>