Disable update all field

Disable update all field

GigilinEGigilinE Posts: 5Questions: 0Answers: 0
edited January 2021 in Editor

Hello, i use a database view, i have a problem when i edit a field, if i use inline editor (edit only one field in table) problem is not present, if i click on EDIT button and edit field in popup windows, i have error to update a field because is not editable, how can solve?

Replies

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    This thread here might help - it's saying not to update that field. Could you give that a try please and let us know how you get on?

    Colin

  • GigilinEGigilinE Posts: 5Questions: 0Answers: 0

    no working :(

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    If you don’t want the field to be shown in the Editor view, then don’t add it to the fields array on initialisation.

    However, if you do want it displayed, but not submitted, then use fields.submit to tell the field not to submit.

    You should also disable the set ability for those fields on the server-side. If you are using our PHP libraries for example, then adding ->set(false) would do it.

    Allan

  • GigilinEGigilinE Posts: 5Questions: 0Answers: 0
    edited January 2021

    i want show this fields but not update or edit

    EDIT: perfect! now working, i have updated submit: false in Editor, many many thx for support, i love datatable <3

This discussion has been closed.