I would like to know if there is a more elegant way of finding the attribute field types when using a QueryTask. The problem we are having is that if the feature layer is dynamic, we do not know the field types within the layer on the server--we basically have to return all 500 records with a query such as SELECT * From Dataset Where OBJECTID > 0. Is there a method where we can SELECT Top 1 from dataset, or something similar?
Thanks,