Need to call an event whenever a value in a column changes, after the initial load

Need to call an event whenever a value in a column changes, after the initial load

svonwellersvonweller Posts: 12Questions: 3Answers: 0
edited January 2019 in Free community support

I have a faculty scheduler app that has a header column that shows how many classes an instructor has signed up for. When a new class is assigned to an instructor, or a different instructor is assigned to an existing class, I need to update the instructor counts in the header. Have tried this code, but only works the first time thru:

editor.field('event.instructor1_id').input().on('change', function (e, d) {
    alert('instr');
    if ( d && d.editorSet ) return;
    getThisYearCounts(true);
}); 

Answers

  • allanallan Posts: 61,635Questions: 1Answers: 10,092 Site admin

    Could you give me a link to your page please? I don't see why that would only work once.

    That said, I wonder if submitComplete might be a better event for this kind of action since it would update only once the data has been submitted to the server, rather than when the user is typing and hasn't yet submitted.

    Allan

This discussion has been closed.