TypeError: ids is undefined /TypeError: multiIds is undefined
TypeError: ids is undefined /TypeError: multiIds is undefined
KimvdLinde
Posts: 30Questions: 8Answers: 0
I use the following code:
$('#schedule').on('click', 'tbody td', function () {
var field = editor.field('totalCosts');
console.log(field);
console.log(field.isMultiValue()); //false
field.multiSet('totalCosts','test'); //error
console.log(field.isMultiValue());
editor.inline(this, {
submitOnBlur: true
});
});
And it throws this error: multiIds is undefined (dataTables.editor.js:382:4)
If I replace multiSet with set, it throws this error: ids is undefined(dataTables.editor.js:531:18)
When I only have editor.inline, it works fine.
Not sure what goes wrong
This discussion has been closed.
Replies
Hi,
The values can only be modified when Editor is in an editing mode. Prior to
inline()
being called in the above code it is not editing anything, so yes, an error would be thrown if trying to set a value.Try setting the value after calling the inline method.
Regards,
Allan
Okay, that explains.