Welcome to MSDN Blogs Sign in | Join | Help

Share Points

Development on the SharePoint Platform
Cell Connections, Row Connections and Filter Connections Samples

I said previously that I would post the sample web parts that show the ICellProvider, ICellConsumer, IRowProvider, IRowConsumer, IFilterProvider and IFilterConsumer in action so here they are.  Just click below for the appropriate Visual Studio Porject files.

Please note that these samples are written in VB.net

There is a bit of setup that you will have to go through that I will try to explain here.

  • Firstly, install the CAB files from the CellConnections.ZIP and/or the RowConnections.ZIP 
    • If you only want to use the CellConnections sample, skip the rest of the setup instructions.
  • If you also want to see the Row and Filter connections working:
    • Download ConnectionResources.ZIP  This is 5MB but is due to the .WMVs that are in there. (PLEASE NOTE: I have just copied the same smallish WMV with apprpriate names. So they are all the same.  Just download the correct WMV from a site and replace this template - The file was just too big for me to be able to host otherwise) 
    • Create a folder, I created mine at C:\XBox
    • Drop the contents of XBox from ConnectionResources.ZIP into the new folder
    • Create a new virtual server in IIS that points to that folder as the root.  To get the parts working without having to tweak the code, I would put the Virtual Server on port 801, so you can refer the http://localhost:801 and get to the resource files.  (Just a few images)  
    • Next, navigate to C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RowConnections\1.0.0.0__38a6d1a988993080 because the web parts are strongly named and in the Global Assembly Cache, this folder should already be there.
    • Drop the contents of 1.0.0.0_38a6d1a988993080 from the ConnectionResources.ZIP into that directory

With the CABS installed, you should be already to go!

CellConnections Sample

Go to the site you want to use and then select to add web parts.  From the Virtual Server Gallery, arrange the web parts Demo21: Cell Provider, Demo22: Cell Consumer (Summary), Demo23: Cell Consumer (Fields) and Demo24: Cell Connections (Script) onto the page and arrange as below:

Wire them up and then when you click on the Cell Provider List and then CellReady, you will see the other parts change appropriately.

RowConnections Sample

Go to the site you want to use and then select to add web parts.  From the Virtual Server Gallery, arrange the web parts Demo41: Filter Provider, Demo31: Row Provider, Demo32: Row Consumer (Summary), Demo33: Row Consumer (Video), Demo34: Row Consumer (Details) and Demo35: Row Consumer (Box Artwork) onto the page and arrange as below:

Wire them up and then when you click on the button on the Row Provider part, the others should respond appropriately.

Posted: Wednesday, July 06, 2005 10:34 AM by NigelBridport

Comments

No Comments

Anonymous comments are disabled
Page view tracker