Hi Guys, some on can help me give me some idea how i can get and attribute from layer with event on click on the feature and then in alert window appear one specific attribute ? Thank you for your help !
This sample has all you need:
Is the layer added to the map as a feature layer or is it a layer from a whole map service layer?
Hi Robert, its add to the map as feature layer, i want to get the id of the feature and then with the id i want to query another layer, do you understand what i mean ?
-- OnClick get the id of the layer that is add as feature layer on the map and then in the funciont query other layer with the Id i get with the event.
So when using a FeatureLayer you can add a event listener for "click" and in the the event response is the graphic that you clicked on that has an attributes property and in the attributes you will find the Id and then can do your query from that.
Thats Great, thank you for the help !
Retrieving data ...