How to associate multiple Web parts and how to obtain data from another Web part?

Source: Internet
Author: User
  1. Method 1: process a webpart eventProgramTo assign the information to another webpart attribute. The webpart receiving information is rendered by this attribute value. These two webparts must be added on the same page.
  2. Method 2: moss provides a special web part Connection Mechanism for transmitting data between WP.

    The WP for data transfer in Sharepoint is divided into two types:

    Provider WP: provides data

    Consumer WP: receive data

    The Web Part Connection Mechanism provides a loosely coupled data connection mechanism. Both provider WP and consumer WP only care about their own implementations, rather than the data receiving or provider, and how to use them.

    After deployment, we place provider WP and consumer WP on our page. At this time, the SharePoint mechanism will automatically detect all types of Web parts on the page, connect the two Web parts through the data channel ,. If the data provided by a provider WP can be used by another consumer WP, the administrator can directly connect them on the page. One provider WP can be used by multiple consumer WP. Through the data channel, data transmission between provider and consumer is realized.

The key to the 2nd method is to establish an interface, which is then used by both parties to provide and receive corresponding data. For example:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.