Connections between Web Parts

I've searched and searched and found nothing about it.

I have SharePoint Designer 2007. I have a SharePoint website, here what I need to do.

I have a DataFormWebPart showing a DataBase Connections, but I guess it could show any data, that's not the point. I have that WebPart.

What I need now, is another WebPart that is a filter and for the user to show specific row in the DataFormWebPart. I know I can put something like a SimpleFormWebPart that can have a TextBox or a DropDownList with value in it to filter my list.

But, what I want is:

A DropDownList that contain all the differents rows of my list. I need to do that programmaticly, not enter manually each one because I want to re-use that WebPart. Then, an associated TextBox that will be used by the user to enter a value depending of the DropDownList value he chose.

Exemple:

I have my list with ID, Name, Age. My DropDownList will need to contain those.

The user will be able to chose let say, Age and then in the text box put 19. Click then on the Go button. It will show then only the row of the people who got 19 in the Age column.

P.S: If you got not idea how to do it, if you know how to populate a DropDownList form a WebPart that contain the value of a certain Row of my list in the DataFormWebPart, like all the differents Age.

Conclusion: I need a WebPart that take the value of the row form a DataFOrmWebPart containing a list and put them in a DropDownList, there is also in that WebPart a TextBox and a Go button. When I send the filter with the Go button, it take the chosen DropDownList value as the row to check and in that row check the value that the user put in the TextBox.

[1742 byte] By [Fred33] at [2008-1-3]
# 1
nobody got an idea.. still havent been abe to figure it out
Fred33 at 2007-9-25 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 2
is it possible to do that only with WSS 3.0 or I need MOSS 2007 and Visual Studio?
Fred33 at 2007-9-25 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 3

Your not going to be able to do using only SharePoint Designer, if thats your question.

Programatically it's not very difficult at all, Make two custom webparts and you just need to setup some web-part communications and pass the string from the primary webpart to the secondary webpart on the dropdownlist postback.

There are simple examples of web-part communication in the SDK.

StefanKeirGordon at 2007-9-25 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 4

With SharePoint Designer and SWW 3.0 I was able to

1. With Designer, I can take all the entry form a single column and put them in a dropdown list of another webpart and then select one and it will show only the row(s) of the selected elements.

2. With the HTML Editor form Edit Page create a text box and a sumbit button to enter a value and it would again return me differents row of the colum I selected durin the create connexion setup.

So I wasen't able to do more. So I need Visual Studio and create a WebPart. Isent there any way to acess to the value of the differents rows with xpath? Like you can acess to the differents value of a single row with @name, but I can't do @rows, right something like that?

Oh and also saw that with MOSS, you have what its called Business Data Catalog, that seem to have some WebParts useful to filter your list. Would that be the easiest method to do it? Is there an good alternative if my compagny don't want to spend for MOSS 2007?

Fred33 at 2007-9-25 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...

SharePoint Products and Technologies

Site Classified