NoteBoard webpart not showing comments of all users


hi all,

in our portal, using social comment control for comments corresponding pages. code snippet given below,

<noteboard:socialcommentcontrolrunat="server"id="socialcommentwebpart1"chrometype="none"></noteboard:socialcommentcontrol>

its showing logged in user comments. but, not showing other users comments.  please let know way fix issue.

thanks in advance.

regards,

karthick babu t g


t g karthick babu

hi,

according description, understanding want show other users comments in noteboard web part.

as result, if search service has not crawled web page, socialcommentsmanager returns current user’s comments on page , not return comments added other users. if don’t have sharepoint search in environment, not able show comments users in custom web part. also, if search incremental crawl scheduled every night (which happens of cases), when new page created, users not able see other’s comments until page crawled in night.

to fix it, socialcommentsmanager has internal method overload getcomments takes boolean argument whether consider security trimming or not. oob web part uses method. can comments other users using method below:

internal socialcomment[] getcomments(uri url, int maximumitemstoreturn, int startindex, datetime excludeitemstime, bool needsecuritytrim) 

here detailed article reference:

custom note board web part, socialcommentmanager, social security trimming , search

here code demo reference:

comments reteieval in noteboard webpart

best regards


zhengyu guo
technet community support



SharePoint  ,  Apps for Office and SharePoint  >  Developing Apps for SharePoint 2013



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'