My ultimate goal is to run a geoprocessing service from a link in a popup but at the moment am trying to retrieve an attribute value to use as a input parameter from the selected attribute. I have added the following code to the PopupManager.js
line 99 onwards:
var link = html.create("a",{
"class": "action",
"id": "statsLink",
"innerHTML": "Bridge Report", //text that appears in the popup for the link
"href": "javascript: void(0);"
}, query(".actionList", this.popupUnion.bigScreen.domNode)[0]);
//when the link is clicked register a function that will run
on(link, "click", this.calculateBridgeReport);
},
calculateBridgeReport: function(){
var feature = this.popupUnion.getSelectedFeatures();