Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connecting webparts in SharePoint 2010 using the web UI

Posted on 2013-01-28
2
Medium Priority
?
530 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:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Loops Section Overview
Suggested Courses

879 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