Solved

Connecting webparts in SharePoint 2010 using the web UI

Posted on 2013-01-28
2
462 Views
Last Modified: 2013-02-05
Hi!

We have built two webparts for SharePoint 2007/WSS 3.0.
These two webparts use webparts connections to talk to each other. The providing webpart uses IWebPartRow, the consuming webpart uses IWebPartParameters.

To connect the webparts, the user simply enters "Modify Shared Webpart" mode, and goes through the connection wizard. In that wizard, SharePoint makes it possible to connect any of the parameters provided by the provider to any of the parameters consumed by the consumer.
Example: The provider webparts provides parameters "Param A", "Param B", and "Param C".
The consumer webparts consumes parameters "Param 1", "Param 2", and "Param 3".
With the UI, it is perfectly possible to create a connection like this:
Param A -> Param 2
Param B -> Param 1
Param C -> Param 3

(See attached file "Connecting SharePoint 2007.png" for a screen shot)
 Connecting in SharePoint 2007
In SharePoint 2010, the UI looks a little different, though. Most importantly, the UI doesn't seem to provide a way to connect multiple parameters from the provider, only one of the provided parameters can be connected.
(See attached file "Connecting SharePoint 2010.png" for a screen shot, note the lacking next/previous buttons)
Connecting in SharePoint 2010
I noticed that SharePoint designer seems to be handle this, but that is so much overkill for me - I only want to user to be able to re-configure the connections, nothing else.
Also, I would have to re-code parts of my webparts, since the lifecycle etc works completely different in the SharePoint design.

Is there any way to connect many-to-many using the web UI in SharePoint 2010, like it is in SharePoint 2007?

Thanks!
/Fredrik
0
Comment
Question by:gunman69
2 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 38829644
Hello,

SP 2010 can handle multiple connections, but it is not inuitive. Select the first connection and click Finish. Open the connection dialog again, select the second connection and click Finish. Open the connection dialog again, select the third connection and click Finish.

And so on.

Pray or do a magic dance.

Then test. It might actually work. But in many of my scenarios it did not. I had to go and do the connections in SP Designer so they would actually work.

Sorry.

Don't shoot the messenger.

cheers, teylyn
0
 

Author Closing Comment

by:gunman69
ID: 38854601
Unfortunately, it looks like you are right. What were they thinking, removing a feature like that? Hope it's back in a service pack or at least SharePoint 2013...
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Where to begin studying? 5 66
Problem to picture file 3 40
Backup of Sharepoint Online 3 33
C# Error - Add Failed 12 39
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now