Skip to content
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

Add support to set document list view scope #874

Closed
matsla opened this issue Jun 8, 2022 · 1 comment
Closed

Add support to set document list view scope #874

matsla opened this issue Jun 8, 2022 · 1 comment
Assignees
Labels
area: framework ⚙ Changes in the SDK core framework code

Comments

@matsla
Copy link

matsla commented Jun 8, 2022

The Scope property is readonly for a document list view. I need to create a view with scope = Recursive.

// Get Documents list with views via title
var myList = await context.Web.Lists.GetByTitleAsync("Documents", p => p.Views);

// Get the view to update
var viewToUpdate = myList.Views.AsRequested().FirstOrDefault(p => p.Title == "All Documents");

// Update the view
viewToUpdate.Title = "All";
viewToUpdate.Scope = ViewScope:Recursive => Not supported (read only)
await viewToUpdate.UpdateAsync();

@jansenbe jansenbe self-assigned this Jun 8, 2022
@jansenbe jansenbe added the area: framework ⚙ Changes in the SDK core framework code label Jun 8, 2022
@jansenbe
Copy link
Contributor

jansenbe commented Jun 8, 2022

Hi @matsla , there indeed were some IView properties read-only while they could be set. This is fixed, will appear in next nightly build.

As such, I'm closing this issue now, but feel free to re-open or create a new one in case it still does not work.

Note that we plan to release 1.7 before end of the month

@jansenbe jansenbe closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: framework ⚙ Changes in the SDK core framework code
Projects
None yet
Development

No branches or pull requests

2 participants