using aaData in editor for comparison
using aaData in editor for comparison
Hi Allan,
I was trying to compare the form data with available data in table within "events": {"onPreSubmit":....}
and doing some comparison like this
if (aaData[i].id!==o.data.id){}
But I get error as " aaData is not defined". Let me know the reason please.
I was trying to compare the form data with available data in table within "events": {"onPreSubmit":....}
and doing some comparison like this
if (aaData[i].id!==o.data.id){}
But I get error as " aaData is not defined". Let me know the reason please.
This discussion has been closed.
Replies
Allan
As you told once i made it global and successfully accessed within preSubmit event. But I facing another issue now, aaData does not match with the edited/created/deleted values. What I can do to make a real time comparison?
At the moment independent copied of the data are used in DataTables which is likely the issue. That will not be the case in DataTables 1.10.
Allan