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

We are creating a ClientWebPart that we want to be present on the Default Display Form for items on a custom list view that's part of our application.

I can't work out how to pass the Id of the selected ListItem to the WebPart so that it can adjust it's behaviour. I'm assuming it can be passed with the URL to the WebPart.

I've considered using properties on the WebPart but they seem to be hard coded when the WebPart is placed on the form.

The built in controls seem to allow this. We can display a list of related ListItems to this ListItem. That seems to use something called "Connections" which I've been unable to re-create.

share|improve this question
    
This walkthrough might help on creating connected webparts... msdn.microsoft.com/en-us/library/ms469765(v=office.14).aspx –  BlueBird Sep 3 '13 at 19:18
    
Hi @BlueBird, the only problem is that's for 2010 and doesn't fit in with SharePoint 2013's new App Model –  Matthew Steeples Sep 3 '13 at 21:02
    
@MatthewSteeples, Can you use SharePoint 2010: Get Selected Items from List View in Visual Web Part.. I am not sure if it will work with SharePoint 2013's App Model –  Arsalan Adam Khatri Sep 4 '13 at 7:00
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.