I am using the template example in appstudio to test downloading a geodatabase. Its working as it seems it should but I have a question that maybe someone can help answer
In the example it is setting up some Geodatabase Parameters. One of these is the Bounding box that the user specifies and as such all features within this box are downloaded to the Geodatabase.
My question. Can I add w where clause anywhere in there?
<SPAN class="comment token">// create the generate geodatabase parameters</SPAN>
GenerateGeodatabaseParameters <SPAN class="punctuation token">{</SPAN>
id<SPAN class="punctuation token">:</SPAN> generateParameters
extent<SPAN class="punctuation token">:</SPAN> generateExtent
outSpatialReference<SPAN class="punctuation token">:</SPAN> SpatialReference<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createWebMercator</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
returnAttachments<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">false</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>I tried this but getting errors...
QueryParameters {
id: params
whereClause: "created_user = 'Law'"
}
// create the generate geodatabase parameters
GenerateGeodatabaseParameters {
id: generateParameters
extent: generateExtent
outSpatialReference: SpatialReference.createWebMercator()
returnAttachments: false
QueryParameters: params
}<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>