Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Accessing properties of other web parts on the page

  Asked By: Noah    Date: Nov 29    Category: Sharepoint    Views: 1040

I have a need to create a web part that can read/write the properties
of other web parts on the same page.

First of all -- is this possible? and if so, anyone have an example
of this?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jaclyn Gordon     Answered On: Nov 29

Which version of Sharepoint?

If you are using v1 then you need to look at the DDSC - Digital
Dashboard Service Component which allows the web  parts to register
events. If you are using V2 then you need to implement interfaces such
as ICellProvider/ICellConsumer, IRowProvider/IRowConsumer or
IFilterProvider/IFilterConsumer and IParametersOutProvider/Consumer or
IParametersInProvider/Consumer. These interfaces allow the web part  to
communicate.

 
Answer #2    Answered By: Bhupendra Bajpai     Answered On: Nov 29

It is v2 -- I am using the communcation interfaces now, but this is
for a different purpose. Let me explain what our users want to do.

As we all know, each web  part has custom properties  that can be set.
Lets say I have 10 web parts  that returns data based on a users
search and custom properties they have set on specific web parts.

They want the ability to now save this is a "favoriate" query. My
idea was to create  a "Favoriates Web Parts" that will give them the
ability to quickly load and save custom properties on different web
parts so they can perform quick searches without going to each of the
10 web parts to set the custom properties.

Some people say I might have to use the sharepoint object model for
this, but the documentation is lacking.

Perhaps someone else has a different idea.

 
Didn't find what you were looking for? Find more on Accessing properties of other web parts on the page Or get search suggestion and latest updates.




Tagged: