Thanks manish it worked.now i can query the map server.But if i try to get specific outfields filter from query it fails.<br><br>when i put <em> query.outFields = ["*"]; </em> it retrieve all the attributes from the layer according to the query.<br><br>but if i put <em>query.outFields = ["VantageDB.DBO.%populated_places.ogr_fid "];</em> the query fails .but it is the way my layer fields exists.Can u give a answer for this and really appreciate ur support on this <br><br>Thank you.
hi all ,i m facing Unable to complete operationhere is my function to query the map server service.function queryRetailers() { var random = (new Date()).getTime(); var query = new Query(); var queryTask = new QueryTask("........../rest/services/Places/MapServer/0"); queryTask.DisableClientCaching = true; query.outSpatialReference = { wkid: 4326 }; query.returnGeometry = true; query.outFields = ["*"]; query.where = " [RetName] = 'Lesley' AND " + random + "=" + random; queryTask.execute(query, featureSetAddToMapSucess, featureSetAddToMapError); }when query execute it always throw Unable to complete operation. 400 here i have tried 1. doing dirty the query.2. disable client cashing .and still no luck.i went through the forum and doing query in post was mentioned in some answers and i have no idea on that. Can some one explain me the solution for this bcz it wasted my two days of work now
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.