Hi Robert,
Is there functionality within the popup widget to disable the exporting of results? I'm using v2.5. Any info would be great.
cheers
Rod
Solved! Go to Solution.
Rod,
In the Widget.js make this change to the _initPopupMenu (lines 3-5 added):
_initPopupMenu: function(){
this.featureActionManager.getSupportedActions(this.selectedFeature).then(lang.hitch(this, function(actions){
actions = array.filter(actions, function(action) {
return action.name.indexOf('Export') !== 0 && action.name !== 'SaveToMyContent';
});
var popupActions = actions.filter(lang.hitch(this, function(action){
return ['ZoomTo', 'ShowPopup', 'Flash'].indexOf(action.name) < 0 ;
}));
Rod,
Are you talking about the Popup Panel Widget?
yep
Rod,
In the Widget.js make this change to the _initPopupMenu (lines 3-5 added):
_initPopupMenu: function(){
this.featureActionManager.getSupportedActions(this.selectedFeature).then(lang.hitch(this, function(actions){
actions = array.filter(actions, function(action) {
return action.name.indexOf('Export') !== 0 && action.name !== 'SaveToMyContent';
});
var popupActions = actions.filter(lang.hitch(this, function(action){
return ['ZoomTo', 'ShowPopup', 'Flash'].indexOf(action.name) < 0 ;
}));
Thanks Robert, that works really well. Would it be possbile for you to include this functionality into the next release. My reasoning is, we have some datasets that can be viewed but not exported into other formats due to licensing issues.
cheers
Absolutely I have already made a configuration setting in the widget for 2.6 version.
Version 2.6 release with this enhancement.
Thank you very much for the prompt service Robert.
cheers
Rod