-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set List View when provisioning client side page List View webpart #414
Comments
I have experienced same issue.
Clientside pages and list web parts on the page were created properly, but view settings were incorrect.They all get back to default view.
It may be hard to correct view settings one by one if you have many web parts. |
I have experienced this issue in maybe a different way. <pnp:CanvasControl WebPartType="List" JsonControlData="{ "serverProcessedContent": {"htmlStrings":{},"searchablePlainTexts":{},"imageSources":{},"links":{}}, "properties": {"isDocumentLibrary":true,"selectedListId":"{listid:Documenten}","listTitle":"Documenten","selectedListUrl":"{listurl:Documenten}","webRelativeListUrl":"/Gedeelde documenten","webpartHeightKey":2,"selectedViewId":"{viewid:Documenten,Documenten overview}"}}" ControlId="f92bf067-bc19-489e-a556-7fe95f508720" Order="1" Column="2" /> |
Hi, has this issue already been resolved? |
@wspelt I am not sure if the issue was addressed with a version release. I was on a timeline when I posted this so I set it manually and moved one. I appreciate the response though. |
I am attempting to provision a client side page with multiple list view webparts. I extracted the provisioning template and then moved it to a another file that will be used for the site provisioning. I am able to get all the webparts on the page, but they all have the default view and the ViewID is not set correctly. Below shows both ways that I have attempted to reference the list view.
` pnp:ClientSidePages
<pnp:ClientSidePage PageName="My-Page.aspx" PromoteAsNewsArticle="false" Overwrite="true" Title="My Page" Layout="Article">
pnp:Sections
<pnp:Section Order="1" Type="TwoColumn">
pnp:Controls
<pnp:CanvasControl WebPartType="List" JsonControlData="{"id": "f92bf067-bc19-489e-a556-7fe95f508720", "instanceId": "8ac227a7-6928-4adb-8748-f7624c03031e", "properties": {"isDocumentLibrary":false,"selectedListId":"{listid:Pins}","selectedListUrl":"{site}/Lists/Pins","webRelativeListUrl":"/Lists/Pins","webpartHeightKey":1,"selectedViewId":"9438a1f3-b15d-40fe-955f-6aff47a9e001","hideCommandBar":true}, "serverProcessedContent": {"htmlStrings":{},"searchablePlainTexts":{"listTitle":"My Pins"},"imageSources":{},"links":{}}, "dynamicDataPaths": {}, "dynamicDataValues": {}}" ControlId="f92bf067-bc19-489e-a556-7fe95f508720" Order="1" Column="1" />
<pnp:CanvasControl WebPartType="List" JsonControlData="{"id": "f92bf067-bc19-489e-a556-7fe95f508720", "instanceId": "0c50b82a-d0de-424d-8502-a23252bdf42f", "title": "List", "description": "Add a list", "dataVersion": "1.0", "properties": {"isDocumentLibrary":false,"selectedListId":"{listid:Pins}","selectedListUrl":"{site}/Lists/Pins","webRelativeListUrl":"/Lists/Pins","webpartHeightKey":1,"selectedViewId":"{9438a1f3-b15d-40fe-955f-6aff47a9e002}","selectedFolderPath":"","hideCommandBar":true}, "serverProcessedContent": {"htmlStrings":{},"searchablePlainTexts":{"listTitle":"My Apps"},"imageSources":{},"links":{}}, "dynamicDataPaths": {}, "dynamicDataValues": {}}" ControlId="f92bf067-bc19-489e-a556-7fe95f508720" Order="1" Column="2" />
</pnp:Controls>
</pnp:Section>
<pnp:Section Order="2" Type="TwoColumn">
pnp:Controls
<pnp:CanvasControl WebPartType="List" JsonControlData="{"id": "f92bf067-bc19-489e-a556-7fe95f508720", "instanceId": "b5646250-06fb-4dcc-96e1-bfdf839b4686", "title": "List", "description": "Add a list", "dataVersion": "1.0", "properties": {"isDocumentLibrary":false,"selectedListId":"{listid:Districts & Divisions}","selectedListUrl":"{site}/Lists/DistrictsAndDivisions","webRelativeListUrl":"/Lists/DistrictsAndDivisions","webpartHeightKey":1,"selectedViewId":"{9438a1f3-b15d-40fe-955f-6aff47a9ea02}","showDefaultDocumentLibrary":false,"hideCommandBar":true}, "serverProcessedContent": {"htmlStrings":{},"searchablePlainTexts":{"listTitle":"Districts & Divisions"},"imageSources":{},"links":{}}, "dynamicDataPaths": {}, "dynamicDataValues": {}}" ControlId="f92bf067-bc19-489e-a556-7fe95f508720" Order="1" Column="1" />
<pnp:CanvasControl WebPartType="List" JsonControlData="{"id": "f92bf067-bc19-489e-a556-7fe95f508720", "instanceId": "bc535e48-f5b3-4af6-82df-9d55c305d7b9", "title": "List", "description": "Add a list", "dataVersion": "1.0", "properties": {"isDocumentLibrary":false,"selectedListId":"{listid:Communities}","selectedListUrl":"{site}/Lists/Communities","webRelativeListUrl":"/Lists/Communities","webpartHeightKey":1,"selectedViewId":"{9438a1f3-b15d-40fe-955f-6aff47a9ea02}","hideCommandBar":true}, "serverProcessedContent": {"htmlStrings":{},"searchablePlainTexts":{"listTitle":"Communities"},"imageSources":{},"links":{}}, "dynamicDataPaths": {}, "dynamicDataValues": {}}" ControlId="f92bf067-bc19-489e-a556-7fe95f508720" Order="1" Column="2" />
</pnp:Controls>
</pnp:Section>
<pnp:Section Order="3" Type="TwoColumn">
pnp:Controls
<pnp:CanvasControl WebPartType="Custom" ControlId="1b1daffd-427a-4da8-a6dd-823d62b5725a" Order="1" Column="1" />
</pnp:Controls>
</pnp:Section>
</pnp:Sections>
</pnp:ClientSidePages>`
The text was updated successfully, but these errors were encountered: