Find object in Feature layer with Id

1028
4
01-17-2014 04:36 AM
BeakalGobena
New Contributor II
Assume I have some some records in my database and this records are rendered as buttons in my page next to ARC GIS map.
Within the map there is a feature layer is rendered from a Map server containing objects which relate with the my db records.

So the requirement is when the user clicks the buttons I want to find an object within the feature layer that is related with the id of my record and display an infoWindow around it. Mainly I want to trigger some event from my pages using Javascript or something that will find a specific object in the layer and center and display extra info.

Is this possible?
0 Kudos
4 Replies
RobertoPepato
Occasional Contributor II
0 Kudos
JonathanUihlein
Esri Regular Contributor
Absolutely possible.
Check out the SDK and API, there should be some samples and tutorials.
https://developers.arcgis.com/en/javascript/

Like pepatosp said, check out FindTask as well as Query (and maybe even QueryTask)
https://developers.arcgis.com/en/javascript/jsapi/query.html
0 Kudos
BeakalGobena
New Contributor II
interesting topic, and works perfectly, Thanks guys for the quick reply.
0 Kudos
RobertoPepato
Occasional Contributor II
interesting topic, and works perfectly, Thanks guys for the quick reply.


Good to hear beakal. Could you mark the thread as solved, so it can help other people with doubts on the same topic?

Regards.

Roberto Pepato.
0 Kudos