Is it possible to create connected web parts in Sharepoint that have multiple connections to the provider.
For example,
Web Part A and B are the provider, and Web Part C is the consumer.
A is the provider to consumer C, and B is also the provider to consumer C.
Thanks.
Rhys,
I tried this and doesn’t seem to work. The consumer web part only works with whatever the last provider it sets to.
[ConnectionConsumer("KeywordsConsumer", "KeywordsID", AllowsMultipleConnections=true)]
public void ProviderReceiver1(ICommunicationChannel p)
{
provider = p;
}
[ConnectionConsumer("NewEmployeeConsumer", "ID", AllowsMultipleConnections=true)]
public void ProviderReceiver2(ICommunicationChannel p)
{
provider = p;
}
I believe the problem is that your using the same variable (provider) to store both references – thus one will replace the other.
Use