We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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();
The text was updated successfully, but these errors were encountered:
Made additional IView properties settable #874
IView
d343b82
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
Sorry, something went wrong.
jansenbe
No branches or pull requests
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();
The text was updated successfully, but these errors were encountered: