You can develop your own Web Parts for connecting to Microsoft Dynamics NAV Web Parts to introduce new and meaningful ways to view data. You build a custom Web Part on the ASP.NET Web Parts control set or the Microsoft SharePoint Web Parts class library. We recommend that you use the ASP.NET Web Parts control set because it is more robust than Microsoft SharePoint Web Parts class library.

Microsoft Dynamics NAV Web Parts support connections to Form Web Parts, SharePoint Server Filter Web Parts, or any Web Part that implements a compatible interface interfaces. You connect to a Microsoft Dynamics NAV Web Part by implementing an interface. The interface type that you implement in a custom Web Part depends on whether the custom Web Part is a Form Web Part or Filter Web Part and whether the custom Web Part will be a provider of data to or consumer of data from a Microsoft Dynamics NAV Web Part.

For an overview of Microsoft Dynamics NAV Web Part connections, see Understanding Microsoft Dynamics NAV Web Part Connections.

Creating a Web Part for Connecting to a Microsoft Dynamics NAV Web Part as a Provider

As a consumer of data, a Microsoft Dynamics NAV Web Part implements the IWebPartParameters interface. To create a custom Web Part that can provide data to a Microsoft Dynamics NAV Web Part, you create a compatible connection point by doing one of the following:

  • Implement the IWebPartParameters interface.
  • If the custom Web Part is a Microsoft SharePoint Filter Web Part, then implement the ITransformableFilterValues interface.
  • Implement a custom interface, and then use a transformer to make a compatible connection point. You must apply the interface to the ConnectionProviderAttribute class.

Creating a Web Part for Connecting to a Microsoft Dynamics NAV Web Part as a Consumer

As a provider of data, a Microsoft Dynamics NAV Web Part implements the IWebPartRow interface. To create a custom Web Part that can consume data from a Microsoft Dynamics NAV Web Part, then you create a compatible connection point by doing one of the following:

  • Implement the IWebPartRow interface.
  • Implement a custom interface, and then use a transformer to make a compatible connection point. You must apply the interface to the ConnectionConsumerAttribute class.

Additional Information

The following table includes links to additional information about Web Parts and Web Part connections.

For more information about See

Web parts control set

Web Parts Control Set Overview

Creating Web Part connections and using transformer

Web Parts Connections Overview

Filter Web Parts

Filter Web Parts Overview

Creating a basic Web Part

Walkthrough: Creating a Basic Web Part

Microsoft SharePoint Web Parts class library

Microsoft.SharePoint.WebPartPages

See Also