<?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 Re: Can you add records to a Query's ExecuteLastResult? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495928#M11372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used a ArrayCollection to store the query results, then I could dynamically change records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 21:13:44 GMT</pubDate>
    <dc:creator>SiminYou</dc:creator>
    <dc:date>2010-06-02T21:13:44Z</dc:date>
    <item>
      <title>Can you add records to a Query's ExecuteLastResult?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495927#M11371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to add to the executeLastResult set? I want to perform a query and allow the user to add or remove from the returned set. I also have a datagrid that is bound to the executeLastResult set and want it to update as records are added or deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I somehow reference the graphics layer that I am adding and deleting graphics on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dataProvider="{myGraphicsLayer.graphicProvider}" .... or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or suggestions would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 16:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495927#M11371</guid>
      <dc:creator>BrendanLee</dc:creator>
      <dc:date>2010-06-02T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add records to a Query's ExecuteLastResult?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495928#M11372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used a ArrayCollection to store the query results, then I could dynamically change records.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 21:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495928#M11372</guid>
      <dc:creator>SiminYou</dc:creator>
      <dc:date>2010-06-02T21:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add records to a Query's ExecuteLastResult?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495929#M11373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:GraphicsLayer id="myGraphicsLayer" graphicRemove="updateGrid()" graphicAdd="updateGrid()"/&amp;gt;

private function updateGrid():void
 {
&amp;nbsp; // Clear grid
&amp;nbsp; dg.dataProvider.removeAll();&amp;nbsp; 
&amp;nbsp; results = new ArrayCollection;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; for (var i:int = myGraphicsLayer.numGraphics - 1; i &amp;gt;= 0; i--) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var g:Graphic = myGraphicsLayer.getChildAt(i) as Graphic;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; results.addItem({PARCEL:g.attributes.PARCEL, OWNER:g.attributes.OWNER, STRNO:g.attributes.STRNO, STRNAME:g.attributes.STRNAME, STRTYPE:g.attributes.STRTYPE})&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; } 
&amp;nbsp; lblParCount.text = results.length.toString(); 
&amp;nbsp; dg.dataProvider=results;&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;&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; 
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-you-add-records-to-a-query-s-executelastresult/m-p/495929#M11373</guid>
      <dc:creator>BrendanLee</dc:creator>
      <dc:date>2021-12-11T21:48:41Z</dc:date>
    </item>
  </channel>
</rss>

