Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm using a custom webpart to display a list item. The item id is passed to this webpart through a query string. I have added this webpart and a noteboard webpart on a page. I would like to capture the noteboard comments entered against the list item being viewed. Is it possible to display the noteboard comments based on the itemid passed in the query string?

Currently I can see comments entered for other list items too and not filtered based on query string.

Thanks

share|improve this question
    
The noteboard webpart stores the comment based on the page url. It does consider the query string parameters. So my comments about query string parameters not being considered is not correct. Thanks –  user11081 Oct 2 '12 at 9:59
add comment

1 Answer 1

I don't think it supports filtering, but you could do this with JavaScript if you try to disable paging and hide/show elements based on query string, like this (using hash for simplicity):

$('.ms-socialCommentItem').hide();
$('.ms-socialCommentItem:has(.socialcomment-contents:contains("' + 
    window.location.hash.slice(1) + '"))').show();
share|improve this answer
    
Here is an example using input element: gist.github.com/3792439 –  eirikb Sep 27 '12 at 6:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.