You need to sign in to do that
Don't have an account?
sridivya
how to get Chatter Feed comments on Vfpage?
hai,
i am getting Userfeed and i am displaying on Vfpage sucessfully.Now i want to display feed comments also .Can u any body please help me to display chatter feed comments.
i am using following query to get feeds
SELECT Id, Type, CreatedById, CreatedBy.FirstName, CreatedBy.LastName, ParentId, Parent.Name, Body, Title, LinkUrl, ContentData, ContentFileName,
(SELECT Id, FieldName, OldValue, NewValue
FROM FeedTrackedChanges ORDER BY Id DESC),
(SELECT Id, CommentBody, CreatedDate,
CreatedBy.FirstName, CreatedBy.LastName
FROM FeedComments ORDER BY CreatedDate LIMIT 10),
(SELECT CreatedBy.FirstName, CreatedBy.LastName
FROM FeedLikes)
FROM NewsFeed
ORDER BY CreatedDate DESC, Id DESC LIMIT 20.
i am getting feed on vfpage
<apex:pageBlockTable value="{!recentStatusUpdates}" var="update">
<apex:column headerValue="User Feeds">
{!update.body}
</apex:column>
<apex:column headerValue="Comments">
</apex:column>
<apex:column headerValue="Action">
<apex:commandLink onclick="getComment('{!update.id}')">AddComent</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
pls Suggest me
ThanksIn Advance
Sri
Firstly, check out the Intro to Chatter article for plenty of code samples:
http://wiki.developerforce.com/index.php/An_Introduction_to_Salesforce_Chatter
Secondly, in your case, I don't think you need to create a custom solution. You should be using the chatter visualforce components. Check out the Chatter code recipes article for examples:
http://wiki.developerforce.com/index.php/Chatter_Code_Recipes