<?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: disable attribute table update when zoom in/out in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518200#M14452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Strange in my test application it did exactly what you asked for, prevented the zoom or pan from updating the table.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps, I inserted at the wrong location. Where did you inserted them? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 21:14:05 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2014-02-27T21:14:05Z</dc:date>
    <item>
      <title>disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518196#M14448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The attribute table is a tough nut to crack. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a duplicated attribute table, so when I perform a query it will show only the results of the query. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when you zoom in/out, the attribute table is updated to include any visible features that are not part of the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my goal is to develop a way to disable the updating process when you zoom in/out and have this duplicate table post only query results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attributetable has a property called updateEnabled but it didn't work. I think the process that updates the table must be buried in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So,&amp;nbsp; I am in the process to create an alternate process that is not very practical. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the init of the attribute table, I set a boonlean variable that is by default to false. If it is false, then it should exit the init and terminate further process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query process that it is originated from another widget sends a the boonlean variable (widget communication - Thanks Robert) to the attribute table as true and it opens the attribute table with the query results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you zoom in/out that boonlean variable will be false it will not alter the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, here are my two questions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an easier way to disable the updating the table when you zoom in out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, how can you exit the widget in runtime? If in the init of the attribute table the boonlean is false, how can it exit the widget.When I use vb.net it was easy to do so, but how it's done in flex?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 02:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518196#M14448</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-02-27T02:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518197#M14449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This might have some unforeseen consequences but try this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The yourFeatureLayer is the id of your feature layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;yourFeatureLayer.removeEventListeners(LayerEvent.UPDATE_END);
&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; yourFeatureLayer.removeEventListeners(LayerEvent.UPDATE_START);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518197#M14449</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T22:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518198#M14450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; This might have some unforeseen consequences but try this&lt;BR /&gt;The yourFeatureLayer is the id of your feature layers&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;yourFeatureLayer.removeEventListeners(LayerEvent.UPDATE_END);
&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; yourFeatureLayer.removeEventListeners(LayerEvent.UPDATE_START);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Robert. This function takes two arguments, but anyway I tried it and it doesn't prevent the attribute table from refreshing. Do you know where in the api when you zoom in/out, it updates the attribute table entries?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518198#M14450</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-12-11T22:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518199#M14451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Strange in my test application it did exactly what you asked for, prevented the zoom or pan from updating the table.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518199#M14451</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-02-27T21:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518200#M14452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Strange in my test application it did exactly what you asked for, prevented the zoom or pan from updating the table.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps, I inserted at the wrong location. Where did you inserted them? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518200#M14452</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-02-27T21:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518201#M14453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I will have to check on this, as I now am thinking that the reason I have a removeEventListeners is because of some custom work I was doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518201#M14453</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-02-27T21:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518202#M14454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have to take back my suggestion as when I did my test app it was not using the AttributeTable widget, but just a Flex API app that was using an AttributeTable component, and I did have a Monkey Patch applied that gives me the removeEventListeners (which normally would not be there). I have now tried to duplicate my success in the test API app, but this time using viewer and the widget, and I have been unsuccessful. Oh, well I thought I had an easier route for you, but I didn't.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518202#M14454</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-02-28T15:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518203#M14455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; I have to take back my suggestion as when I did my test app it was not using the AttributeTable widget, but just a Flex API app that was using an AttributeTable component, and I did have a Monkey Patch applied that gives me the removeEventListeners (which normally would not be there). I have now tried to duplicate my success in the test API app, but this time using viewer and the widget, and I have been unsuccessful. Oh, well I thought I had an easier route for you, but I didn't.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for checking it out for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know what the triggers the attribute table refresh when you zoom in out (changing the extent of the map)? I was unable to find that and it would be a big help for me to take it from there...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518203#M14455</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-02-28T15:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518204#M14456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lefteris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That is the problem... The LayerEvent.UPDATE_START and&amp;nbsp; LayerEvent.UPDATE_END that are attached to the feature layer, are added by the AttributeTable Flex API component, and thus they are not exposed to you as a developer. The LayerEvent.UPDATE_START and&amp;nbsp; LayerEvent.UPDATE_END both call CommitProperties function inside the component. The only reason I know this is by using a customized version of FlexSpy to see the eventListeners that are added by the AttributeTable component. The only possibility I can think of is to extend the AttributeTable component and override the CommitProperties function, but I don't know what all the function is doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518204#M14456</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-02-28T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: disable attribute table update when zoom in/out</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518205#M14457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lefteris,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; That is the problem... The LayerEvent.UPDATE_START and&amp;nbsp; LayerEvent.UPDATE_END that are attached to the feature layer, are added by the AttributeTable Flex API component, and thus they are not exposed to you as a developer. The LayerEvent.UPDATE_START and&amp;nbsp; LayerEvent.UPDATE_END both call CommitProperties function inside the component. The only reason I know this is by using a customized version of FlexSpy to see the eventListeners that are added by the AttributeTable component. The only possibility I can think of is to extend the AttributeTable component and override the CommitProperties function, but I don't know what all the function is doing.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are correct. After it first opens, any refresh is through the api. I am hesitant to spend time and effort to override the CommitProperties function since I don't know the implications I do so. Bummer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 21:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/disable-attribute-table-update-when-zoom-in-out/m-p/518205#M14457</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2014-02-28T21:04:40Z</dc:date>
    </item>
  </channel>
</rss>

