AnsweredAssumed Answered

Filling a dgrid with the results of an IdentifyTask

Question asked by kenbuja Champion on May 31, 2013
Latest reply on May 31, 2013 by kenbuja
I'm building a data viewer application where a user can click on the map and see the attributes of all the features for the visible layers. This is a project I had originally built in Flex that I'm moving over to JavaScript. I would to put a dgrid into an InfoWindow that shows the results of an IdentifyTask for the visible layers in a map service. This would be similar to this sample, but using dgrids instead of tables.

I'm getting close, using this example from Derek Swingley, but I'm hitting a brick wall when it comes to creating the data store for the dgrid. While the dgrid sample shows how to do this using hardcoded field names, I have to do this dynamically. My application will be a template for several different projects, each with their own map service. Additionally, the map services may change over time, with new layers added or different fields being made visible.