Added in LCWP version 4.2.0.0 is the ability to connect two Lightning Conductor Web Part instances via a Web Part connection, using a one to many relationship between fields. Previously, we discussed how you can use web part connections to select views. We can also now have one to many relationships between two LCWP instances, where selecting an item in one LCWP will filter the results in a separate LCWP instance.

For example, let’s say you have a Task List where each task may have one or more supporting documents associated with each task. By using a web part connection, users can select a task from a LCWP Task rollup instance in order to display all task related documents in a separate LCWP instance. Follow the steps below to see how this can be accomplished.

Before continuing, the following pre-requisites must first exist:

Steps for configuring a one to many web part connection between two LCWP instances

Part 1: Configuring the Provider

  1. Click the EDIT option from the SharePoint menu.

    Adding a Web Part to a wiki page

  2. Add a LCWP instance for the aforementioned Task List to a page, per the steps listed under Adding Web Parts to a page. Follow the appropriate steps for adding the LCWP to a Wiki or Web Part page, whichever is applicable. (Either page type is sufficient)

  3. From the Web Part drop-down menu on the Task List LCWP instance, click Configure Lightning Conductor.

    Click here to configure the Lightning Conductor

    If Views are enabled, then select Configure View

    Configure Lightning Conductor View

  4. On the Data Source tab, configure the rollup source to display the Task List.

  5. Under Filtering Settings, select Use Both Persistent and Dynamic Filters



  6. Under the Columns tab, select and configure the columns that you want to display for the Task List.

  7. Under the Display tab, click the Configure Filter Providing Columns link.

    Configure Filter Providing Column

  8. Choose the column[s] that will provide a filter to the Document Library LCWP instance, in this case, the Title field.

    Select the filter providing columns and arrange them in order

  9. Next, in the Grouping and Linking section, use the Linking Column drop-down menu to select the matching column from the previous step.

    Display Tab Linking Column

  10. Click Save at the bottom of the Configure LCWP dialog box.

Part 2: Configuring the Consumer

  1. Click the EDIT option from the SharePoint menu (if not already in Edit mode)

  2. Add a LCWP instance for the aforementioned Document Library to a page, per the steps listed under Adding Web Parts to a page. Follow the appropriate steps for adding the LCWP to a Wiki or Web Part page, whichever is applicable. (Either page type is sufficient)

  3. From the Web Part drop-down menu on the Document Library LCWP instance, click Configure Lightning Conductor.

    Click here to configure the Lightning Conductor

    If Views are enabled, then select Configure View

    Configure Lightning Conductor View

  4. On the Data Source tab, configure the rollup source to display the Document Library.

  5. Under Filtering Settings, select Use Both Persistent and Dynamic Filters



  6. Under the Columns tab, select and configure the columns that you want to display for the Task List.

  7. Next, click Configure Filter Consuming Columns from the bottom of the Columns tab.

  8. Select the Lookup Column that was created in the Document Library, which in this example is the name of the Task List.

    Configure Filter Consuming Column dialog

  9. Click Save at the bottom of the Configure LCWP dialog.

Part 3: Configuring the Web Part Connection

  1. From the Web Part drop-down menu on the Task List LCWP instance, select Edit Web Part.

    LCWP Edit Web Part Menu option

  2. Click the Web Part drop-down menu on the Task LIst LCWP instance again, and choose Connections > Send Filter Values To >Document Library LCWP Instance

    Web Part Connections Send Filter Values To

  3. From the Web Part drop-down menu on the Document Library LCWP instance, confirm Connections > Get Filter Values From >Task List LCWP Instance is already selected. (This is done automatically when the Send To connection is selected in the previous step).

    Web Part Connections Get Filter Values From

  4. Click Cancel to exit Edit Web Part settings.

  5. If still in Wiki or Web Part Page Edit Mode, click Save.

    Save changes to Wiki or Web Part Page

Testing the Web Part Connection Configuration

If the above steps have been completed successfully, you should now be able to select a task item from the Task List LCWP instance, and the associated documents from the Document Library will be displayed in the Document Library LCWP instance.

Example Web Part Connection Filter

In the above image, the Gross Sales Task has been selected, thus filtering the documents in the LCWP instance below to only display those documents that are assigned to the Gross Sales Task. In other words, the Task List Lookup Column in the Document Library has Gross Sales Task assigned to each of the displayed documents. The Contracts Task list column has been added to the Document Library LCWP instance in order to show the connection between the items.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Please do not use this for support questions.
For customer support, please contact us here.

Post Comment