Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

CQWP FilterValue , FilterCriteria becomes empty after web part is edited on the page.

$
0
0

We are using CQWP as shown below

<property name="FilterOperator1"type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">ContainsAny</property>
<property name="FilterDisplayValue2" type="string">1</property>
<property name="FilterDisplayValue1" type="string">[PageFieldValue: Page Type]</property>
<property name="FilterValue1" type="string">[PageFieldValue:cd14228d-3437-4f91-9edf-89c0bc48a6bb:PageType:TaxonomyFieldTypeMulti]</property>
<property name="ItemLimit" type="int">10</property>
This works fine the first time (the items are filtered based on pageFieldValue),however when web part (on page click edit web part) is edited and then saved theproperties "FilterDisplayValue1" , FilterValue1 becomes empty.

The new exported .web part looks as below

<property name="FilterOperator1"type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="FilterDisplayValue2" type="string">1</property>
<property name="FilterDisplayValue1" type="string"/>
<property name="FilterValue1" type="string"/>
<property name="ItemLimit" type="int">10</property>

Any idea on how this can be fixed ?


Regards, Parag


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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