esri.tasks.Query outfields

2942
2
01-29-2013 11:51 AM
BobMolnar
New Contributor
Hi
With server 10.1 sp1 and javascript api 3.3 does .outFields = ["*"]; work?


I'm getting this message returned to the onerror function

"Unable to get value of the property 'substring': object is null or undefined"

Thanks
0 Kudos
2 Replies
DianaBenedict
Occasional Contributor III
Have not tested this ... theoretically it should but the new documentation does not include any information about the outFields["*"] being an option. 

Have you tried not specifying the outFields? According to the documentation below, this is not a required param.

From ESRI JS API documentation:

"The query definition requires one of the following properties: queryGeometry, text, or where. Optional properties include outFields, outSpatialReference, and returnGeometry"
0 Kudos
BobMolnar
New Contributor
Yes I tried not specifying the outFields.

The older docs said that you could use ['*'] right?
0 Kudos