Guest User

Untitled

a guest
Feb 18th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. util.js:189 FIREBASE WARNING: Exception was thrown by user callback. TypeError: Cannot set property '_aData' of undefined
  2. at _Api.<anonymous> (file:///home/sanya/Documents/FFG/inventory_featurebranch/india-ffg-2018-sanisa/shramik-nari-sangh-sanisa/adminpanel-web/plugins/jquery-datatable/jquery.dataTables.js:8066:35)
  3. at _Api.data (file:///home/sanya/Documents/FFG/inventory_featurebranch/india-ffg-2018-sanisa/shramik-nari-sangh-sanisa/adminpanel-web/plugins/jquery-datatable/jquery.dataTables.js:7141:19)
  4. at file:///home/sanya/Documents/FFG/inventory_featurebranch/india-ffg-2018-sanisa/shramik-nari-sangh-sanisa/adminpanel-web/inventory/js/inventory.js:191:44
  5. at https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:120314
  6. at Object.t.exceptionGuard (https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:5424)
  7. at e.raise (https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:154608)
  8. at e.si (https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:154261)
  9. at e.raiseEventsForChangedPath (https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:154083)
  10. at e.update (https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:40282)
  11. at t.update (https://www.gstatic.com/firebasejs/4.8.1/firebase.js:20:46076)
  12. t.warn @ util.js:189
  13. (anonymous) @ util.js:566
  14. setTimeout (async)
  15. t.exceptionGuard @ util.js:560
  16. e.raise @ EventQueue.js:158
  17. e.si @ EventQueue.js:111
  18. e.raiseEventsForChangedPath @ EventQueue.js:95
  19. e.update @ Repo.js:321
  20. t.update @ Reference.js:143
  21. (anonymous) @ inventory.js:280
  22. dispatch @ jquery.min.js:3
  23. r.handle @ jquery.min.js:3
  24. util.js:567 Uncaught TypeError: Cannot set property '_aData' of undefined
  25. at _Api.<anonymous> (jquery.dataTables.js:8066)
  26. at _Api.data (jquery.dataTables.js:7141)
  27. at inventory.js:191
  28. at EventRegistration.js:169
  29. at Object.t.exceptionGuard (util.js:556)
  30. at e.raise (EventQueue.js:158)
  31. at e.si (EventQueue.js:111)
  32. at e.raiseEventsForChangedPath (EventQueue.js:95)
  33. at e.update (Repo.js:321)
  34. at t.update (Reference.js:143)
  35.  
  36. This is the js file tat is using the on change method
  37.  
  38.  
  39. inventoryRef.on('child_changed',function(snapshot) {
  40. var dataSet={};
  41. dataSet["DT_InventoryRowId"] = snapshot.key
  42. dataSet["DATE"] = snapshot.val().DATE;
  43. dataSet["CategoryCode"] = snapshot.val().CategoryCode;
  44. dataSet["ProductCode"] = snapshot.val().ProductCode;
  45. dataSet["ProductSubTypeCode"] = snapshot.val().ProductSubTypeCode;
  46. dataSet["NoofPackets"] = snapshot.val().NoofPackets;
  47. dataSet["Quantity"] = snapshot.val().Quantity;
  48. dataSet["Metrics"] = snapshot.val().Metrics;
  49. dataSet["Shelflife"] = snapshot.val().Shelflife;
  50. dataSet["Total"] = snapshot.val().Total;
  51. dataSet["BatchID"] = snapshot.val().BatchID;
  52. dataSet["inventory_isActive"] = snapshot.val().isActive;
  53. InventoryTable.row('#';+snapshot.key).data(dataSet).draw();
  54. });
Add Comment
Please, Sign In to add comment