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
svonweller
Posts: 12Questions: 3Answers: 0
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);
});
This discussion has been closed.
Answers
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