TypeError when adding sample custom widget (TableWidget)

2027
2
Jump to solution
03-03-2016 03:01 PM
AlexKoval
New Contributor

hi, all! After adding my first custom widget to the View (the TableWidget from the tutorial) I got  this error.

TypeError {} "TypeError: Cannot set property 'innerHTML' of undefined
    at declare.updateDataSourceInfoLabel (http://localhost:5001/extensions/tableWidget/TableWidget.js:83:32)
    at null.<anonymous> (http://localhost:5001/extensions/tableWidget/TableWidget.js:67:14)
    at k (http://js.arcgis.com/3.15/init.js:189:431)
    at q (http://js.arcgis.com/3.15/init.js:189:357)
    at resolve (http://js.arcgis.com/3.15/init.js:191:441)
    at a (http://js.arcgis.com/3.15/init.js:190:311)
    at k (http://js.arcgis.com/3.15/init.js:190:70)
    at q (http://js.arcgis.com/3.15/init.js:189:357)
    at resolve (http://js.arcgis.com/3.15/init.js:191:441)
    at a (http://js.arcgis.com/3.15/init.js:190:311)
    ----------------------------------------

I followed steps from https://developers.arcgis.com/javascript/jshelp/operations-dashboard-extensibility-create-ext-widget...

just in case, see all my widget files attached.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Alex,

   No where in your tableWidget.js or your empty tableWidgetTemplate.html does the infoLabel var exist... Normally in the tableWidgetTemplate.html html code there would be a div or some other html element that would have a  data-dojo-attach-point="infoLabel" property on it.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Alex,

   No where in your tableWidget.js or your empty tableWidgetTemplate.html does the infoLabel var exist... Normally in the tableWidgetTemplate.html html code there would be a div or some other html element that would have a  data-dojo-attach-point="infoLabel" property on it.

0 Kudos
AlexKoval
New Contributor

I knew there was some stupid error on my end. Thank you!

0 Kudos