Solved

Connecting webparts in SharePoint 2010 using the web UI

Posted on 2013-01-28
2
522 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

628 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