Forum Discussion
How do I connect a List webpart to a document library webpart in modern pages?
Hi,
I have 2 lists (A and B) and a document library. The document library has multiple documents and each document has a property A and B (relationship towards the 2 lists A and B).
I would like to add a page with 2 webparts where in the first webpart I can select an item from list A and the second webpart (the document library) gets filtered based on the selection.
I can find several tutorials that seem to have much more options than I do (including a ribbon and several more connection options on the webparts) (for example: https://kalmstrom.com/Tips/SharePoint-Online-Course/Connect-Web-Parts-Click-to-Filter.htm )
I believe that I have a modern page as described in this forum post: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_sharepoint-mso_win10/office-365-team-site-home-page-missing-edit-ribbon/29bd72e6-2a02-4b1c-bd22-e65b8e4f81a1
Is it possible to get the same options in SharePoint online site as the classic view?
If not, how can I achieve a filtering connection between webparts?
Thank you very much for your feedback !
Hi again!
You can try use the "Classic" web parts on the web part page (which is a Classic page on a Modern Site).
Go to Site Settings and "Site Collection Features".
Activate "SharePoint Server Enterprise Site Collection Features"
Now the classic web parts should be available and you can try to configure the webparts and filters that you have used before.
Hope this can lead you in the right direction.
Regards, Magnus
6 Replies
- MagnusGoksoyrOLDProfileBronze Contributor
Though You have a Modern Team site you can:
- Create a Web part page.
- On that page You can add two webparts showing the same Document library
- Create two different views, one filtered on Property A and one filtered on Property B
- Modify Page and Edit each of the webparts so that they show each view.
That should solve your problem.
Regards, Magnus
- ErdYarCopper Contributor
Thanks for your reply but I think you misunderstood my question.
The first webpart should show the contents of List A and the second webpart has the contents of the document library. The document library has a property refering to List A.
When I select an Item in the first webpart (List A), I want the second webpart (document library) to automatically filter based on the selection in the first webpart (List A).
- MagnusGoksoyrOLDProfileBronze Contributor
Hi again!
You can try use the "Classic" web parts on the web part page (which is a Classic page on a Modern Site).
Go to Site Settings and "Site Collection Features".
Activate "SharePoint Server Enterprise Site Collection Features"
Now the classic web parts should be available and you can try to configure the webparts and filters that you have used before.
Hope this can lead you in the right direction.
Regards, Magnus
- Ability to connect modern WebParts is not available Today in SPO, but it's coming (no ETA about when we will have it)
- ErdYarCopper Contributor
Thanks for your reply.
Is there a way to switch to classic webparts so that I can connect (Inside SPO). It does not matter if I have to make a new site for this.
Thank you,