Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Best practice needed: Creating an operationBinding to update only certain fields

    Hi Isomorphic,

    I have a DataSource with many fields. Now I want to create a new operationBinding with requiresRole, but where many users will have the role.
    The operationBinding is of type "update". I want that this operationBinding - regardless of values in the request - will only be able to update some fields.
    If there are more fields in the request, I'm fine with this (request can run), as long as their content is discarded.

    How do I do this best?

    Additionally this question:
    How can I enforce that some field must be present in criteria?
    This works, but is it really the best way?
    Code:
    <criteria fieldName="name" operator="equals" value="$values.name" />
    Thank you & Best regards
    Blama

    #2
    For restricting to certain fields, we would simply recommend a DMI that interrogates and modifies the DSRequest before execution.

    A DMI could also check for present of a criteria field, or hardcode it. In terms of security, your declaration above is only safe if you have already ensured that "name" is present in values.

    Comment


      #3
      Hi Isomorphic,

      OK, thanks. I'll do this then.

      Best regards
      Blama

      Comment

      Working...
      X