keyongtech


  keyongtech > sharepoint.* > sharepoint.development_and_programming

 #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:
[url down]

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://vspug.com/chadclarkesmossblog/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
Thread Thread Starter
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...

Paul Kelly
WSS 3.0 - Web Part Connections

Is there a way to clear a web part connection filter after making a selection? I am using a web part form that contains a drop down of values. Selecting a value filters the...

Brian Gough
Web Part Connections?

I understand that there is a way to make web part connections on a site. However, is it possible to make the connection between different team sites? The problem I have is...

leewhitbeck
Web Part Connections

I'm trying to model a web part connection relationship between an Event Calendar and a Task List. The specific scenario is that the customer has created an Events Calendar...

Dan
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...

David Remillard

Privacy Policy | All times are GMT. The time now is 06:47 PM.

Merging Information Logo
[Deutschland] [Espaņa] [France] [Italia] [Nederland] [Polska] [United Kingdom]