When I change my js reference from 3.9 to 3.10 I get an error in my code that creates a print button in the attributeInspector. Does anybody know what the new syntax change should be or where to look? I think its in the new dojo dijt but I am not sure. I get an error of :
"JavaScript runtime error: Unable to get property 'editButtons' of undefined or null reference"
var printButton = new Button({
label: "Print", onClick: function () {
var workIDtoPrint = myEditor.attributeInspector.layerInfos[0].fieldInfos[0].dijit.value
print(workIDtoPrint)
}
}, domConstruct.create("div", null, myEditor.attributeInspector.editButtons, "first"));
domClass.add(printButton.domNode, "atiMyButton");
Solved! Go to Solution.
Hi Shane,
Apparently you need to call Editor.startup() before you can access attributeInspector in 3.10 in 3.9 it was the case, attributeInspector was available before startup.
Refer image below on the left is myEditor after startup() is called. Used this sample for testing Edit rivers and waterbodies.
Hi Shane,
Apparently you need to call Editor.startup() before you can access attributeInspector in 3.10 in 3.9 it was the case, attributeInspector was available before startup.
Refer image below on the left is myEditor after startup() is called. Used this sample for testing Edit rivers and waterbodies.