Select to view content in your preferred language

Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js

2201
10
Jump to solution
10-14-2016 07:46 PM
RolandoFlorez
Occasional Contributor

rscheitlin

I need to ask you one more thing... The class @XxxFeatureAction derive from BaseFeatureAction.
Can you explain me about isFeatureSupported and onExecute function?

How can I send data ( a featureSet.fields.values() ) from this class to Widget.js.

 

This line make that:

myWidget.showVertexCount(featureSet.fields.values());

 

in Widget.js 

showVertexCount: function(count){
this.vertexCount.innerHTML = 'The vertex count is: ' + count;
}

this method receives that information.

I've been trying to print that but it shows me null. I don't know why. 

Do you understand me?

Thanks a lot

0 Kudos
10 Replies
RolandoFlorez
Occasional Contributor

I did it

you are right
the showVertextCount doesn't work

0 Kudos