Filtering by approval status in ContentByQueryWebPart

July 25, 2008

If you need to programmatically set properties on ContentByQueryWebPart to filter the data by approval status than FilterField is _ModerationStatus FilterType is ModState

webPart.FilterField1 = "_ModerationStatus";
webPart.FilterType1 = "ModStat";
webPart.FilterValue1 = "Approved";

Entry Filed under: MOSS. Tags: , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

Tags

Add new tag Commerce Server JavaScript jQuery MOSS MOSS Search WebParts Workflow WPF/E

KWitty

Blogroll

Feeds

Add to Technorati Favorites

del.icio.us

Categories