Sharing Information Between Web Parts

SharePoint Services Web Parts can communicate with other Web Parts. Web Parts can be connected and synchronized to each other and to external data sources. The SharePoint architecture supports connection interfaces that allow you to configure one Web Part to provide information and another to consume it.

For example, at your company's human resources team site, each employee's file might contain the scheduled dates for performance reviews. The Employee File document library would pass the scheduled dates to the announcement Web Part. The announcement list would automatically retrieve new review dates from the Employee File document library and update itself accordingly.

Providing Information to a Web Part

To provide information to a Web Part:

  1. In the design mode of your team site, click on the down arrow of the Web Part that will provide the information (for example, the Employee File Web Part).

  2. In the pop-up menu, select Connections → Provide Row To and select the Web Part that will consume the information.

Figure 3-6 shows how you can configure a Web Part to provide information to another Web Part without writing any configuration code.

Configuring the Employee File Web Part to provide information to the Announcements Web Part

Figure 3-6. Configuring the Employee File Web Part to provide information to the Announcements Web Part

Tip

The actual code that sends and receives events is beyond the scope of this book. However, you can work with ...

Get SharePoint User's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.