Dynamically connect a TextFilterWebPart to a ListViewWebPart


Ever tried to dynamically connect two webparts together? for the standard webparts in Sharepoint: no problem. If you want to connect a Text Filter WebPart (Only Moss) to a List View WebPart you have a problem.
 
TransformableFilterValuesToParametersTransformer transformer = new TransformableFilterValuesToParametersTransformer();
wpManager.SPConnectWebParts(wpManager.WebParts[webPartProviderId],
                providerConnection["ITransformableFilterValues"],
                wpManager.WebParts[webPartConsumerId],
                consumerConnection["ListViewFilterConsumer_WPQ_"],
                transformer);
 
this causes always the error: "Web Part Error:  This page has exceeded its data fetch limit for connected Web Parts. Try disconnecting one or more Web Parts to correct the problem" on the side of the consumer WebPart.
 
 
It’s sometimes so strange, you ran into problems, search google and you find almost nothing about it and then you think by yourself: "It seems to me that only I am the only one programming in this area??" Glimlach
Advertisements
This entry was posted in Sharepoint. Bookmark the permalink.

6 Responses to Dynamically connect a TextFilterWebPart to a ListViewWebPart

  1. scott says:

    Heh, we found another way of achieving the same functionality today. Adam has added it to his previous post.

  2. scott says:

    Heh, we found another way of achieving the same functionality today. Adam has added it to his previous post.

  3. scott says:

    Heh, we found another way of achieving the same functionality today. Adam has added it to his previous post.

  4. scott says:

    Heh, we found another way of achieving the same functionality today. Adam has added it to his previous post.

  5. scott says:

    Heh, we found another way of achieving the same functionality today. Adam has added it to his previous post.

  6. scott says:

    Heh, we found another way of achieving the same functionality today. Adam has added it to his previous post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s