Embed token as URL parameter in QueryTask

1210
2
Jump to solution
05-08-2013 07:16 AM
JeffPace
MVP Alum
I have a query that is hitting a secure service.  My app is already validated and has a token.  I would like to append the token in the query so when i execute the task it works.

Bit I cant seeem to

If i add it as
var q = new esri.tasks.Query();                           q.maxAllowableOffset = 0;                 q.returnGeometry = true;                 q.token = mytoken;

it just gets ignored.

any ideas?
thanks
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
got it using esri.setRequestPreCallback

View solution in original post

0 Kudos
2 Replies
JeffPace
MVP Alum
got it using esri.setRequestPreCallback
0 Kudos
DavidColey
Frequent Contributor
Hi Jeff-

I'm working with a FeatureLayer for Sarasota County Evacuation Zones app, and am curious about the maxAllowableOffset parameter at 3.6.  I'm having some performance issues with the surge layer, and I believe that at 3.6 this value is auto-calculated upon an extent change.  Is there a better way to set it explicitly?

Thanks
David
0 Kudos