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

Remove 'Editing' Worry From 'Custom Charts' - view-samples/custom-charts #815

Open
influential-eliot opened this issue Jun 28, 2024 · 1 comment
Labels
💡 Enhancement Idea for enhancing a sample

Comments

@influential-eliot
Copy link

Very tiny suggestion, and you can close this off as soon as it is seen, I'm sure ... but could the concern about data integrity for custom charts and their inherent 'editability' be waylaid by sending a PATCH request with the following settings to make it read only?
URI:

https://YOUR_DOMAIN.sharepoint.com/_api/web/lists/GetById(guid'YOUR_LIST_ID')/Views/GetById(guid'YOUR_LIST_VIEW_ID')

Method:

PATCH

Header:

{
    "Content-Type": "application/json;odata=nometadata",
    "Accept": "application/json;odata=nometadata"
}

Body:

{
  "ReadOnlyView": true
}

( I performed my tests in Power Automate, hence the generous header setup allowing minimal fuss )


Obviously I could be way off, maybe you need the 'edit' ability in order for them to work ... but it's just a thought.


@'ing @Fedes365 as it's their amazing looking view sample

@influential-eliot influential-eliot added the 💡 Enhancement Idea for enhancing a sample label Jun 28, 2024
@Fedes365
Copy link
Contributor

Hello @influential-eliot

Thanks for your very interesting contribution! I will take it into consideration for sure and will perform a test with Power Automate.

You can find me in LinkedIn too, so we can keep in touch.

Thanks again and see you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement Idea for enhancing a sample
Projects
None yet
Development

No branches or pull requests

2 participants