Editor inline edit and checkbox do not behave the same wrt "submit allIfChanged"

Editor inline edit and checkbox do not behave the same wrt "submit allIfChanged"

gravstengravsten Posts: 17Questions: 5Answers: 0

Description of problem:
I configured the Editor with submit: 'allIfChanged' for a checkbox change and inline edit.
Yet, a checkbox change only results in sending the checkbox state, not the whole row as I had expected.

I worked around the problem (eliminating the requirement for complete row data to update a single field).
But I wanted to bring this up here in case it were a bug...
If it is a problem with my configuration (see below), I'll be relieved.

      .on('change', 'input.editor-ok', function () {
        editor.edit(this.closest('tr'), false, {
            onReturn: 'submit',
            submit: 'allIfChanged',
            onFieldError: 'focus',
            scope: 'row',
            drawType: 'page',
          })
          .set('ok', this.checked ? 1 : 0)
          .submit();
      })
      .on('click', 'tbody td.editable', function (e) {
        editor.inline(this, {
          onReturn: 'submit',
          submit: 'allIfChanged',
          onFieldError: 'focus',
          scope: 'row',
          drawType: 'page',
        });
      })

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Are you able to give me a link to the page so I can attempt to trace it through? I'm not immediately aware of a bug in this area, but also I don't immediately see an error in the configuration.

    Allan

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    @gravsten This example may help you reproduce the issue. Currently the submission is sending the expected data, i.e. all of it, but you could possibly use that as a starting point.

    Colin

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    @gravsten Just to check, our accounts aren't showing that you have a license or on a trial. Is the license registered to another email address? Please can let us know so we can update our records and provide further support.

    Colin

  • gravstengravsten Posts: 17Questions: 5Answers: 0

    Sorry for the delay. I had to take a 2-week hiatus and just resumed yesterday working on this.

    On the problem discussed above, I can't reproduce it now. (And thanks for the example, I had not known how to create one.)
    So it's "resolved" for lack of a better word.

    On my license, I was on a trial that ended during the aforementioned hiatus.
    Yesterday I managed to derisk the last little thing I had to (use of a <select> element), so I am ready to purchase a license when I go back to the office.

Sign In or Register to comment.