btfou

Alternate query code 400 error with feature layer created from MapService

Discussion created by btfou on May 23, 2013
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.

Outcomes