Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nigel Wilson 945 posts 2077 karma points
    Aug 19, 2016 @ 03:32
    Nigel Wilson
    0

    Disable Create and Delete

    Hey Tim - this package is simply AWESOME - nice work...

    Just wondering if there's a way to disable just C & D of CRUD ?

    I note you can disable all editing but in my case, I am happy for admins to edit...

    Am happy to dig into code, but thought I'd ask here first (it's been a long week).

    Look forward to hearing from you.

    Cheers

    Nigel

  • Comment author was deleted

    Aug 19, 2016 @ 06:52

    Hi Nigel, yeah you'll need to dig into the code for that, there's only a readonly setting you can set currently (on the uiomatic attribute) https://github.com/TimGeyssens/UIOMatic/blob/master/src/UIOMatic/Attributes/UIOMaticAttribute.cs

    You'll see that in the tree code it checks for this attribute value and then adds the create/delete depending on that https://github.com/TimGeyssens/UIOMatic/blob/master/src/UIOMatic/Trees/UIOMaticTreeController.cs

  • Nigel Wilson 945 posts 2077 karma points
    Aug 19, 2016 @ 19:01
    Nigel Wilson
    0

    Thanks Tim - will have a play around with this and see what I can break. :-)

    Cheers

    Nigel

  • EV 36 posts 147 karma points
    Aug 23, 2019 @ 10:42
    EV
    0

    Hi! If you found out how to do this, can you please share it? Thanks a ton in advance!

  • Angel 54 posts 111 karma points
    Jun 26, 2023 @ 15:53
    Angel
    0

    So if i set the attribute to ReadOnly = true, The Create Button is hidden, The Delete Button is hidden, however the record can be edited but no Save button exists (user is warned if an edit it made and leaves the page).

    So setting ReadOnly seems to remove Create and Delete, but also Update..

    How do I configure to have Update available but hide Create and Delete?

  • Lillian 1 post 71 karma points
    Jun 27, 2023 @ 06:03
    Lillian
    0

    "Disable Create and Delete" refers to the action of preventing users from creating or deleting certain items or performing specific actions within a system or application. By disabling these functions, administrators can restrict user permissions and prevent unauthorized modifications or deletions, ensuring better control and security over the system's data and settings.

Please Sign in or register to post replies

Write your reply to:

Draft