<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Auto Complete Attribute Query in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-attribute-query/m-p/175969#M1204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a landmark(point)&amp;nbsp; feature layer. I query this layer with a WhereClause so that it brings a single value (name)&amp;nbsp; from the attributes of each feature. I put this featureset into a&amp;nbsp; graphics array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On postexecute,&amp;nbsp; I get the attribute value from the graphics array&amp;nbsp; and put it in an adapter. This data adapter is set to an&amp;nbsp; autocomplete text view. When the user key in any 2&amp;nbsp; letters,&amp;nbsp; the attribute values that 'contain' these letters display as drop down so that the user can select and query again for the location to see it in the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is working fine except that not all the data that "contains" these letters are displayed but only few. It seems there is a limit&amp;nbsp; set some where. how can i over come this? Any Idea? Please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the Code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

private class RunQueryForArray extends AsyncTask&amp;lt;String, Void, Graphic[]&amp;gt;{
 @Override
 protected void onPreExecute() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; progress = ProgressDialog.show(SearchLandmarkActivity.this, "Landmark Search","Please wait....");
&amp;nbsp; }
 @Override
 protected Graphic[] doInBackground(String... params) {
&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp; String WhereClause = "NAME &amp;lt;&amp;gt; '0'" ;
&amp;nbsp; Query query = new Query();
&amp;nbsp; query.setWhere(WhereClause);
&amp;nbsp; query.setReturnGeometry(true);
&amp;nbsp; query.setOutFields(new String[] {"NAME"});
&amp;nbsp; 
&amp;nbsp; QueryTask qTask = new QueryTask(featureServiceURL);
&amp;nbsp; FeatureSet fs = null;
 try{ 
&amp;nbsp; fs = qTask.execute(query);
&amp;nbsp; Graphic[] grs = fs.getGraphics();
&amp;nbsp;&amp;nbsp; return grs;
&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception e) {
&amp;nbsp;&amp;nbsp; e.printStackTrace(); 
&amp;nbsp; }
&amp;nbsp; return null;
 }
 @Override
 protected void onPostExecute(Graphic[] graphics) {
&amp;nbsp; List&amp;lt;String&amp;gt; mArray = new ArrayList&amp;lt;String&amp;gt;();
 for (Graphic gr : graphics) {
&amp;nbsp;&amp;nbsp; String mName = (String)gr.getAttributeValue("NAME");
&amp;nbsp;&amp;nbsp; mArray.add(mName);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; progress.dismiss();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrayAdapter&amp;lt;String&amp;gt; adapter = new ArrayAdapter&amp;lt;String&amp;gt;(getApplicationContext(), android.R.layout.simple_dropdown_item_1line, mArray);
&amp;nbsp;&amp;nbsp;&amp;nbsp; AcTv.setThreshold(2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcTv.setAdapter(adapter);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; 



&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 05:09:32 GMT</pubDate>
    <dc:creator>cadgism</dc:creator>
    <dc:date>2013-11-12T05:09:32Z</dc:date>
    <item>
      <title>Auto Complete Attribute Query</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-attribute-query/m-p/175969#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a landmark(point)&amp;nbsp; feature layer. I query this layer with a WhereClause so that it brings a single value (name)&amp;nbsp; from the attributes of each feature. I put this featureset into a&amp;nbsp; graphics array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On postexecute,&amp;nbsp; I get the attribute value from the graphics array&amp;nbsp; and put it in an adapter. This data adapter is set to an&amp;nbsp; autocomplete text view. When the user key in any 2&amp;nbsp; letters,&amp;nbsp; the attribute values that 'contain' these letters display as drop down so that the user can select and query again for the location to see it in the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything is working fine except that not all the data that "contains" these letters are displayed but only few. It seems there is a limit&amp;nbsp; set some where. how can i over come this? Any Idea? Please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the Code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

private class RunQueryForArray extends AsyncTask&amp;lt;String, Void, Graphic[]&amp;gt;{
 @Override
 protected void onPreExecute() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; progress = ProgressDialog.show(SearchLandmarkActivity.this, "Landmark Search","Please wait....");
&amp;nbsp; }
 @Override
 protected Graphic[] doInBackground(String... params) {
&amp;nbsp; // TODO Auto-generated method stub
&amp;nbsp; String WhereClause = "NAME &amp;lt;&amp;gt; '0'" ;
&amp;nbsp; Query query = new Query();
&amp;nbsp; query.setWhere(WhereClause);
&amp;nbsp; query.setReturnGeometry(true);
&amp;nbsp; query.setOutFields(new String[] {"NAME"});
&amp;nbsp; 
&amp;nbsp; QueryTask qTask = new QueryTask(featureServiceURL);
&amp;nbsp; FeatureSet fs = null;
 try{ 
&amp;nbsp; fs = qTask.execute(query);
&amp;nbsp; Graphic[] grs = fs.getGraphics();
&amp;nbsp;&amp;nbsp; return grs;
&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception e) {
&amp;nbsp;&amp;nbsp; e.printStackTrace(); 
&amp;nbsp; }
&amp;nbsp; return null;
 }
 @Override
 protected void onPostExecute(Graphic[] graphics) {
&amp;nbsp; List&amp;lt;String&amp;gt; mArray = new ArrayList&amp;lt;String&amp;gt;();
 for (Graphic gr : graphics) {
&amp;nbsp;&amp;nbsp; String mName = (String)gr.getAttributeValue("NAME");
&amp;nbsp;&amp;nbsp; mArray.add(mName);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; progress.dismiss();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrayAdapter&amp;lt;String&amp;gt; adapter = new ArrayAdapter&amp;lt;String&amp;gt;(getApplicationContext(), android.R.layout.simple_dropdown_item_1line, mArray);
&amp;nbsp;&amp;nbsp;&amp;nbsp; AcTv.setThreshold(2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcTv.setAdapter(adapter);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; 



&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 05:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-attribute-query/m-p/175969#M1204</guid>
      <dc:creator>cadgism</dc:creator>
      <dc:date>2013-11-12T05:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Complete Attribute Query</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-attribute-query/m-p/175970#M1205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure, there is not limit set to the arcgis server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 03:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/auto-complete-attribute-query/m-p/175970#M1205</guid>
      <dc:creator>ThomasBinu</dc:creator>
      <dc:date>2013-11-26T03:15:06Z</dc:date>
    </item>
  </channel>
</rss>

