Question

On my SharePoint 2010 site I have a list of items (Document Library). This library contains xml files.

Also, I have a Visual Web Part which displays data from these xml files.

Is there a way to somehow bind the web part to this document library so that the items will be opened via the web part?

Note: At this point the list item has a hyperlink field which points to the web part page and provides the location of xml file as query string. When the link is accessed, the web part gets provided xml data and parses it as it should.
The problem with this approach is that an absolute url is saved in item's field, which will result into problems when server is changed.

Thank You!

Was it helpful?

Solution

Look into the Sharepoint 2010 "Related List" feature. Sharepoint 2010 allows to send and receive data between webparts, so even your custom webpart.

See the following link for a how-to: SP 2010: How To - Relational lists in SharePoint 2010

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top