You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
If SharePoint on-premises, what's exact CU version:
September 2020 CU for SP 2016
Expected Behavior
List views that use the grid / data sheet / quick edit mode should be correctly provisioned when applying a PnP provisioning template to a site. These list views should be visible in the view selection menu in the toolbar of the list view.
Observed Behavior
List views with grid mode enabled are provisioned to the list when applying the template. They can be seen in the list settings page and can be selected in the view selection dropdown in the ribbon bar. They are not visible in the view selection menu in the toolbar of the list, whereas all "normal" (non-grid views) are listed there.
Steps to Reproduce
Create a basic custom list
Add a list view (lets name it "TestView") with the grid type (i.e. quick edit mode enabled per default)
Export the site structure as a PnP template
Import the PnP template into an empty site
The list view "TestView" can be seen in the settings page of the imported list and the view selector in the ribbon bar. It is missing from the view selector in the toolbar.
Underlying issue / Steps to Fix
The schemas of the original and imported list views are similar. The actual issue seems to be with the XsltListViewWebPart that is used to show the view.
Comparing the properties of the webpart of the source and target views, the ViewFlags property is set to a different value (TabularView, Grid instead of Html, TabularView, Grid). Tests showed that setting that property to the correct value for the list view webpart lets it reappear in the view selector in the toolbar.
The calendar views seem to have had an issue that was fixed by adjusting the view type (see
Environment
[ ] Office 365 / SharePoint Online
[x] SharePoint 2016
[ ] SharePoint 2013
If SharePoint on-premises, what's exact CU version:
September 2020 CU for SP 2016
Expected Behavior
List views that use the grid / data sheet / quick edit mode should be correctly provisioned when applying a PnP provisioning template to a site. These list views should be visible in the view selection menu in the toolbar of the list view.
Observed Behavior
List views with grid mode enabled are provisioned to the list when applying the template. They can be seen in the list settings page and can be selected in the view selection dropdown in the ribbon bar. They are not visible in the view selection menu in the toolbar of the list, whereas all "normal" (non-grid views) are listed there.
Steps to Reproduce
Underlying issue / Steps to Fix
The schemas of the original and imported list views are similar. The actual issue seems to be with the XsltListViewWebPart that is used to show the view.
Comparing the properties of the webpart of the source and target views, the ViewFlags property is set to a different value (
TabularView, Grid
instead ofHtml, TabularView, Grid
). Tests showed that setting that property to the correct value for the list view webpart lets it reappear in the view selector in the toolbar.The calendar views seem to have had an issue that was fixed by adjusting the view type (see
PnP-Sites-Core/Core/OfficeDevPnP.Core/Framework/Provisioning/ObjectHandlers/ObjectListInstance.cs
Line 661 in 3255343
ViewType.Html
to the view type would fix the issue in the list view webpart.Related issue
The issue pnp/PnP-Provisioning-Schema#320 seems to describe the same problem, but was closed because it was filed in the wrong repo.
The text was updated successfully, but these errors were encountered: