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 have some custom html/jquery form stuff on a page, and I would like to update a LVWP on another part of the page if a user adds something. So for example, the list view web part just shows items on a list, but I need them to go through my form to add a new item since there are numerous relational lists that get updated. Not a big deal that all works. But I do want to use a LVWP to show all requests currently being worked per the userID of the person submitting. So this is quite the overall parent list, and there may be multiple items that need shown.

Bottomline is I have all this worked out except, how can I pass a parameter/variable to a LVWP that is one a page using javascript/jquery? Each time the user adds an item, I would like to refresh the view and pass new ID for the LVWP to use as a filter like a query string or something?

Does this make sense? All help is always appreciated!

share|improve this question
    
Could it be you are looking for something like this: sharepoint.stackexchange.com/questions/45944/… ? –  eirikb Sep 25 '12 at 18:55
    
lol. perhaps but i get how you call that in a dialog, how can i use that if its a static webpart on the page? the idea is exactly what I need, I just don't know how to use it in that way. thanks –  Justin Sep 25 '12 at 19:03
    
Any XSLTListViewWebPart will pick up the querystring and filter based on it. I use this to enable simple "search" functionality over a set of XSLTListViewWebParts with different views. A simple input and some JS setting window.location.href –  eirikb Sep 25 '12 at 19:24
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.