Hi All,
I am trying to use Robert Scheitlin, GISP's Popup Panel Widget Version 2.4 to auto-populate a field in the Smart Editor widget. Using a button click, I am able to retrieve the feature's value, as seen on line 16:
_onLoadCreateBoringClick: function(){
var widgets = this.appConfig.getConfigElementsByName('SmartEditor');
if(widgets.length === 0){
this.loadSmartEditorInfoNode.innerText = 'Smart Editor is not configured.';
return;
}
var widgetId = widgets[0].id;
if(this.widgetManager.getWidgetById(widgetId)){
this.loadSmartEditorInfoNode.innerText = 'Smart Editor has been loaded.';
return;
}
this.openWidgetById(widgetId).then(lang.hitch(this, function(widget){
this.loadSmartEditorInfoNode.innerText = widget.name + ' is loaded';
console.log(this.selectedFeature.attributes.prPROJNO);
}));
},
Passing the value to the Smart Editor shouldn't be too difficult, but I am having trouble finding a way to then fill in one of the fields in the editor. Any ideas?
Any help is greatly appreciated!