querying mosaic dataset attribute  published as map service

Discussion created by suhanats on Aug 22, 2012
When I publish an image service as a time enabled map service, there are 4 layerids, 0 for parent layer, 1 for footprint, 2 for boundary and 3 for image. While all the user added attributes are in boundary (layer id 2), the shape is actually in image (layer 3)
If a querytask is done for an attribute value that is in boundary layer, how can I zoom to the extent of that image with the queried attribute?