Alternate query code 400 error with feature layer created from MapService

497
0
05-23-2013 03:23 PM
BenFousek
Occasional Contributor III
The alternate query bug (http://support.esri.com/en/bugs/nimbus/TklNMDg2MzQ5) is causing problems with feature layer created from MapService with both snapshot and ondemand modes. This does not happen with a FeatureService.

Snapshot mode can be worked around by setting the definition expression like:
var time = new Date().getTime();
parks.setDefinitionExpression(time + '=' + time);


Ondemand cannot be "tricked" in this manner because it often makes more than one request call.

My question is can a feature layer in some way be set to usePost like esri.request?

Thanks.
0 Kudos
0 Replies