keyongtech


  keyongtech > sharepoint.* > sharepoint.development_and_programming > 08/2007

 #1  
08-17-07, 05:02 PM
mike seitz
I would like to create different text filter web parts that connect to the
same list web part, offering my users the ability to search on different
columns of the same list. However, it appears that only one active
connection per web part is allowed. Any creative ways around that ? Thx.
 #2  
08-20-07, 04:22 PM
Chad Clarke
If you are talking about custom web parts....

To build a consumer web part you are looking at a member and method similar
to below... If you notice there is an attribute to the method
"AllowMultipleConnections." Set that to true. There may be more to it, but
theres a start at least...

List<wsswebparts.IFilterValues> providers = new
List<wsswebparts.IFilterValues>();
[aspnetwebparts.ConnectionConsumer("NC_Number", "IFilterValues",
AllowsMultipleConnections = false)]
public void SetConnectionInterface(wsswebparts.IFilterValues provider)
{
this.providers.Add(provider);
if (provider != null)
{
List<wsswebparts.ConsumerParameter> l = new
List<wsswebparts.ConsumerParameter>();
l.Add(new wsswebparts.ConsumerParameter("NC_Number",
wsswebparts.ConsumerParameterCapabilities.Supports MultipleValues |
wsswebparts.ConsumerParameterCapabilities.Supports AllValue));
provider.SetConsumerParameters(new
ReadOnlyCollection<wsswebparts.ConsumerParameter>( l));
}
}

"mike seitz" wrote:
[..]
 #3  
08-20-07, 07:24 PM
mike seitz
Any way to do this without a custom web part ?

"Chad Clarke" wrote:
[..]
 #4  
08-21-07, 03:36 PM
Chad Clarke
Ok...

You could try a javascript method of doing so referenced here:
http://blog.u2u.info/DottextWeb/patr...icles/466.aspx

Or you could purchase a product that seems to do what you are looking for
here:
http://www.kwizcom.com/ProductPage.a...tSubNodeID=405

Or I outlined a solution that fairly limited, but may work for your
situation here:
http://www.sharepointblogs.com/chadc...g/default.aspx

Otherwise Microsofts Web Parts are limited to their default functionality.
If they don't allow for multiple connections, there is not much you can do...

Chad

"mike seitz" wrote:
[..]
 #5  
08-21-07, 07:12 PM
mike seitz
Thanks !

"Chad Clarke" wrote:
[..]
Similar Threads
MOSS 2007 Web Part Connections - no connections option?

hi, im new to Microsoft office Sharepoint server but seem to be having a problem with a basic issue. I want to use the Current User web part to filter a form library but when...

Web Part Connections in WSS 3.0

Do web part connections work in WSS v3.0 when the parts are on different pages? I'm using Sharepoint Designer and have been successful connection web parts when they are on...

Web Part connections

Hi all in ng, I have a web part page that has 2 web parts on it. The top webpart which I will call "TicketMaster" is now a converted web part into a data view list. The...

Web Part Connections!

Hi everyone, I'm using web part connections to tie a list of doctors to a web part image. Works great for the first two clicks, and then I get a runtime error:...

Many-To-Many Web Part Connections?

What are some options for creating a many-to-many relationship between two web parts? For example, I have a client list and a contact list. A client can have multiple...


All times are GMT. The time now is 11:59 AM. | Privacy Policy