Solved

Connecting webparts in SharePoint 2010 using the web UI

Posted on 2013-01-28
2
514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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