I have twwo webparts, one consumer and one producer. Consumer WebPart takes various ITransformableFilterValues connections. And Producer WebPart generates one ITransformableFilterValues connection.
Now, I need to send another filter field to the Consumer WebPart. I know consumer it is going to manage it well, but I don't know how to generate two different ITransformableFilterValues connections from the Producer WebPart. Could you help me?
The code I have to generate one connection is the next:
public System.Collections.ObjectModel.ReadOnlyCollection<string> ParameterValues
{
get
{
string[] values = new string[] { fieldToSend };
return new ReadOnlyCollection<string>(values);
}
}
[ConnectionProvider("People Picker Filter", "ITransformableFilterValues", AllowsMultipleConnections = true)]
public ITransformableFilterValues SetConnectionInterface()
{
return this;
}