Hi.
Thanks for the examples. The first sample did help us to get things working by waiting until the layer loads and then specifying all poential outFields when the featureLayer was constructed since those override the query outFields later.
However, I guess ultimately what we were looking for was a way for the query.outFields to also be used for restricting the fields so that the returned featureSet can be minimized for multiple queries with different field requests. So in your second example, be able to specify perhaps five fields when the featureLayer was constructed and then only query for 1 or 2 fields in the query.outFields statement. That doesn't seem to be possible right now though.
Thanks.