<?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: FeatureLayer with ServiceFeatureTable notification when finish to load in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212263#M4734</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The LoadStatusChanged event tells you when the object has fetched it's metadata, e.g. in the case of a ServiceFeatureTable that means it's made the initial request to the service to get the JSON definition of the table/layer. After than, once the ServiceFeatureTable is the source for a FeatureLayer in a MapView, then it starts requesting features based on the visible extent and/or queries (depending on what functionality you write in your app).&lt;/P&gt;&lt;P&gt;There are additional events on the GeoView (MapView/SceneView) that you can listen to if you'd like to know:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The display status of the layer (i.e. if it loaded and should be rendering), then try:&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview.html#layerViewStateChangedEvent" target="_blank" rel="noopener"&gt;GeoView::layerViewStateChangedEvent(Esri::ArcGISRuntime::Layer *layer, const Esri::ArcGISRuntime::LayerViewState &amp;amp;layerViewState)&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When the map view has finished rendering data, then try:&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview.html#drawStatusChangedEvent" target="_self"&gt;GeoView::drawStatusChangedEvent(Esri::ArcGISRuntime::DrawStatus drawStatus)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 14 Sep 2022 01:12:33 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2022-09-14T01:12:33Z</dc:date>
    <item>
      <title>FeatureLayer with ServiceFeatureTable notification when finish to load</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212217#M4732</link>
      <description>&lt;P&gt;Hi, How can I have a notification or signal when a service feature table loads finish?&lt;/P&gt;&lt;P&gt;&amp;nbsp;I test with signals&lt;/P&gt;&lt;PRE&gt;loadStatusChanged&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;LoadOrRefreshFeaturesStatusChanged&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but with the first, returns Ok immediately, and with the second one I haven't answer.&lt;/P&gt;&lt;P&gt;The service feature table delays about 15-30 secs to gather all the data.&lt;/P&gt;&lt;P&gt;Maybe I missed something...&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 22:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212217#M4732</guid>
      <dc:creator>HomeroOriaAguilera</dc:creator>
      <dc:date>2022-09-13T22:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer with ServiceFeatureTable notification when finish to load</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212240#M4733</link>
      <description>&lt;P&gt;Are there any particular reasons you are using&amp;nbsp;LoadOrRefreshFeaturesStatusChanged?&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to listen to the load status of the service feature table using the following:&lt;/P&gt;&lt;PRE&gt;serviceFeatureTable.loadStatusChanged.connect(()=&amp;gt; {&lt;BR /&gt;if (serviceFeatureTable.loadStatus !== Enums.LoadStatusLoaded)&lt;BR /&gt;return;&lt;BR /&gt;&lt;BR /&gt;//Perform other operations if the service feature table is loaded...&lt;BR /&gt;});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are set on using the second signal, you can see why it is erroring out by connecting an error changed listener and getting the exact error:&lt;/P&gt;&lt;PRE&gt;serviceFeatureTable.errorChanged.connect(()=&amp;gt;{&lt;BR /&gt;    console.log(serviceFeatureTable.error.message + serviceFeatureTable&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;additionalMessage&lt;/SPAN&gt;);&lt;BR /&gt;});&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 23:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212240#M4733</guid>
      <dc:creator>Gela</dc:creator>
      <dc:date>2022-09-13T23:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer with ServiceFeatureTable notification when finish to load</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212263#M4734</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The LoadStatusChanged event tells you when the object has fetched it's metadata, e.g. in the case of a ServiceFeatureTable that means it's made the initial request to the service to get the JSON definition of the table/layer. After than, once the ServiceFeatureTable is the source for a FeatureLayer in a MapView, then it starts requesting features based on the visible extent and/or queries (depending on what functionality you write in your app).&lt;/P&gt;&lt;P&gt;There are additional events on the GeoView (MapView/SceneView) that you can listen to if you'd like to know:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The display status of the layer (i.e. if it loaded and should be rendering), then try:&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview.html#layerViewStateChangedEvent" target="_blank" rel="noopener"&gt;GeoView::layerViewStateChangedEvent(Esri::ArcGISRuntime::Layer *layer, const Esri::ArcGISRuntime::LayerViewState &amp;amp;layerViewState)&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When the map view has finished rendering data, then try:&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-geoview.html#drawStatusChangedEvent" target="_self"&gt;GeoView::drawStatusChangedEvent(Esri::ArcGISRuntime::DrawStatus drawStatus)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 14 Sep 2022 01:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/featurelayer-with-servicefeaturetable-notification/m-p/1212263#M4734</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-09-14T01:12:33Z</dc:date>
    </item>
  </channel>
</rss>

