This project is read-only.

View List vote Report erroring out

Jul 8, 2009 at 8:10 PM

Hi,

 I have two questions related to 'View List Vote Report' link in all list settings page.

 

1. Can we stop this appearing in all lists. i need only in the document library in which the I am basing document rating as parent for custom content type.

2. I have document librarry associated with custom content type derived from document rating as base content type. Everything is working except when I click on this link from list settings page, it is throwing following error. Any idea?

This list isn't ratable since it is not supported by the rating system!   at HighLight.ApplicationPages.ListRatingReport.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Nov 21, 2009 at 12:13 AM
Edited Nov 21, 2009 at 1:24 AM

2.

I think the error is due to the GUID of the list content type ID that is different from the content type id. (Google Translate)

..00RatingSystemCtypeID 00 YourCustomContentTypeID

.00RatingSystemCtypeID 00 YourCustomContentTypeID 00 ListContentTypeID

 

Ct.Parent.Id <> CtId

 

public static bool IsValidList(SPContentTypeCollection Cts)
            {
                FillContentTypes();

                foreach (SPContentTypeId CtId in CtIds)
                {
                    foreach (SPContentType Ct in Cts)
                    {
                        if (Ct.Parent.Id == CtId)
                        {
                            return true;
                        }
                    }

                }
                return false;
            }