KeyTable tabbing does not submit data to server side script.

KeyTable tabbing does not submit data to server side script.

bbrindzabbrindza Posts: 300Questions: 69Answers: 1

I have 2 column defined to use keys for tabbing.

          keys: {
                           columns: [9, 10 ],
                           keys: [ 9 ],
                           editor: editor,
                           editOnFocus: true
                   },

However when I tab from column 9 to column 10 the editor does not submit all front end data.

Notice: Undefined index: HRYREG

file_put_contents( '/tmp/a', json_encode( $values )."\n", FILE_APPEND );

{"HRWPER":"4.00","HRWMNA":"","HRWMDT":"","HRWMTM":"","HRWDNA":"","HRWDDT":"","HRWDTM":"","HRWVNA":"","HRWVDT":"","HRWVTM":"","HRWHNA":"","HRWHDT":"","HRWHTM":""}

This question has an accepted answers - jump to answer

Answers

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

    Hi @bbrindza ,

    Have you enabled the submit on blur option - see this example.

    Cheers,

    Colin

  • bbrindzabbrindza Posts: 300Questions: 69Answers: 1

    I have my editor submit conditioned.

     // Activate an inline edit on click of a table cell
      $('#approvalTable').on( 'click', 'tbody td:not(:first-child):not(\'.live\')', function (e) {
               if ( userDepartment == '1214' || userDepartment == '1213' || userElementAccess =='Y') {
                    editor.inline( this , {onBlur: 'submit',
                                           submit: 'allIfChanged'} );
                  }
      });
    
  • bbrindzabbrindza Posts: 300Questions: 69Answers: 1

    As an aside these conditions also open up column 9,and 10 for editing

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

    You need to use the formOptions.inline object to set defaults for the form-options object if you are using KeyTable. The call to inline() that KeyTable makes will then use those defaults.

    Allan

  • bbrindzabbrindza Posts: 300Questions: 69Answers: 1

    That did the job . Thanks Allan

This discussion has been closed.