<?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 Mobile.Geodatabase Table as a featureTable for FeatureFenceParameters in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1183026#M4295</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to make a FeatureFenceParameters from a Mobile.Geodatabase for a Geotrigger. Everything loads however the trigger does not work as expected. Everything works fine if the featureTable for&amp;nbsp;&amp;nbsp;FeatureFenceParameters is built from a&amp;nbsp;ServiceFeatureTable.&lt;/P&gt;&lt;P&gt;I'm unsure how to correctly initiate a FeatureLayer from a Mobile.Geodatabase that will work for&amp;nbsp; FeatureFenceParameters featureTable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;//FeatureLayer {&lt;BR /&gt;// ServiceFeatureTable {&lt;BR /&gt;// id: fT&lt;BR /&gt;// url: "https://..."&lt;BR /&gt;// definitionExpression: "STATUS IN ('Exists')"&lt;BR /&gt;// }&lt;BR /&gt;//}&lt;/P&gt;&lt;P&gt;FeatureLayer {&lt;BR /&gt;id: ft&lt;BR /&gt;featureTable: gdb.geodatabaseFeatureTablesByTableName["ThisTable"] ? gdb.geodatabaseFeatureTablesByTableName["ThisTable"] : null&lt;BR /&gt;definitionExpression: "STATUS IN ('Exists')"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;FeatureFenceParameters {&lt;BR /&gt;id: fFP&lt;BR /&gt;featureTable: fT.featureTable&lt;BR /&gt;//featureTable: fT ---- Error: Unable to assign QmlFeatureLayer to QmlFeatureTable&lt;BR /&gt;//featureTable: gdb.geodatabaseFeatureTablesByTableName["ThisTable"] ? gdb.geodatabaseFeatureTablesByTableName["ThisTable"] : null ---- Does not produce anything&lt;BR /&gt;bufferDistance: 50&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;GeotriggerMonitor {&lt;BR /&gt;id: geotriggerMonitor&lt;BR /&gt;geotrigger: FenceGeotrigger{&lt;BR /&gt;feed: LocationGeotriggerFeed {&lt;BR /&gt;locationDataSource: simulatedLocationdataSource&lt;BR /&gt;}&lt;BR /&gt;ruleType: Enums.FenceRuleTypeEnterOrExit&lt;BR /&gt;fenceParameters: fFP&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Handle notification events&lt;BR /&gt;onGeotriggerNotification: {&lt;BR /&gt;if (geotriggerNotificationInfo.fenceNotificationType === Enums.FenceNotificationTypeEntered) {&lt;BR /&gt;entry();&lt;BR /&gt;} else{&lt;BR /&gt;exit();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;Component.onCompleted: {&lt;BR /&gt;// Start monitoring Geotrigger event.&lt;BR /&gt;console.log("GeotriggerMonitor: Start monitoring!");&lt;BR /&gt;geotriggerMonitor.start();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 07:19:03 GMT</pubDate>
    <dc:creator>ECarson</dc:creator>
    <dc:date>2022-06-15T07:19:03Z</dc:date>
    <item>
      <title>Mobile.Geodatabase Table as a featureTable for FeatureFenceParameters</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1183026#M4295</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to make a FeatureFenceParameters from a Mobile.Geodatabase for a Geotrigger. Everything loads however the trigger does not work as expected. Everything works fine if the featureTable for&amp;nbsp;&amp;nbsp;FeatureFenceParameters is built from a&amp;nbsp;ServiceFeatureTable.&lt;/P&gt;&lt;P&gt;I'm unsure how to correctly initiate a FeatureLayer from a Mobile.Geodatabase that will work for&amp;nbsp; FeatureFenceParameters featureTable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;//FeatureLayer {&lt;BR /&gt;// ServiceFeatureTable {&lt;BR /&gt;// id: fT&lt;BR /&gt;// url: "https://..."&lt;BR /&gt;// definitionExpression: "STATUS IN ('Exists')"&lt;BR /&gt;// }&lt;BR /&gt;//}&lt;/P&gt;&lt;P&gt;FeatureLayer {&lt;BR /&gt;id: ft&lt;BR /&gt;featureTable: gdb.geodatabaseFeatureTablesByTableName["ThisTable"] ? gdb.geodatabaseFeatureTablesByTableName["ThisTable"] : null&lt;BR /&gt;definitionExpression: "STATUS IN ('Exists')"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;FeatureFenceParameters {&lt;BR /&gt;id: fFP&lt;BR /&gt;featureTable: fT.featureTable&lt;BR /&gt;//featureTable: fT ---- Error: Unable to assign QmlFeatureLayer to QmlFeatureTable&lt;BR /&gt;//featureTable: gdb.geodatabaseFeatureTablesByTableName["ThisTable"] ? gdb.geodatabaseFeatureTablesByTableName["ThisTable"] : null ---- Does not produce anything&lt;BR /&gt;bufferDistance: 50&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;GeotriggerMonitor {&lt;BR /&gt;id: geotriggerMonitor&lt;BR /&gt;geotrigger: FenceGeotrigger{&lt;BR /&gt;feed: LocationGeotriggerFeed {&lt;BR /&gt;locationDataSource: simulatedLocationdataSource&lt;BR /&gt;}&lt;BR /&gt;ruleType: Enums.FenceRuleTypeEnterOrExit&lt;BR /&gt;fenceParameters: fFP&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Handle notification events&lt;BR /&gt;onGeotriggerNotification: {&lt;BR /&gt;if (geotriggerNotificationInfo.fenceNotificationType === Enums.FenceNotificationTypeEntered) {&lt;BR /&gt;entry();&lt;BR /&gt;} else{&lt;BR /&gt;exit();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;Component.onCompleted: {&lt;BR /&gt;// Start monitoring Geotrigger event.&lt;BR /&gt;console.log("GeotriggerMonitor: Start monitoring!");&lt;BR /&gt;geotriggerMonitor.start();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1183026#M4295</guid>
      <dc:creator>ECarson</dc:creator>
      <dc:date>2022-06-15T07:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile.Geodatabase Table as a featureTable for FeatureFenceParameters</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1185819#M4302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425126"&gt;@ECarson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In your GeotriggerMonitor{}, add an onWarningChanged signal handler to console any warnings. These warnings are pretty descriptive and helped me setup a Geotrigger Monitor with the Feature Layer (Geodatabase) sample we have. You can setup something like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;onWarningChanged: {
     console.log(`Status code: ${status}... Warning message: ${warning.additionalMessage}`)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using this, I found the featureTable the geotrigger monitor is monitoring isn't valid at time of start. What I ended up doing was creating a global property to track the geodatabase feature table.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;property var geoDb: null&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Geodatabase component, I setup a the onGeodatabaseFeatureTablesChanged signal handler to set the geodatabase feature table property and started the simulatedLocationdataSource and geotrigger monitor. I did this to ensure the feature table is retrieved before starting the geotrigger monitor.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Geodatabase {
     id: gdb
     path: AppFramework.resolvedPathUrl(copyLocalData(inputGDB, outputGDB))
     onGeodatabaseFeatureTablesChanged: {
          geoDb = geodatabaseFeatureTables[0]
          simulatedLocationdataSource.start()
          geoTrigger.start()
     }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Trevor&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 22:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1185819#M4302</guid>
      <dc:creator>TrevorFrame</dc:creator>
      <dc:date>2022-06-23T22:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile.Geodatabase Table as a featureTable for FeatureFenceParameters</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1189105#M4309</link>
      <description>&lt;P&gt;Thanks for the the reply Trevor, this certainly worked.&lt;/P&gt;&lt;P&gt;I wasn't able to figure out how to apply a definition expression on the feature table before applying it to the FeatureFenceParamters or apply a whereclause within. I just had a feature table in the mobile geodatabase with only the features I wanted.&lt;/P&gt;&lt;P&gt;If anyone has a an idea about this additional solution it would be great.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elliott&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 06:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/mobile-geodatabase-table-as-a-featuretable-for/m-p/1189105#M4309</guid>
      <dc:creator>ECarson</dc:creator>
      <dc:date>2022-07-04T06:26:03Z</dc:date>
    </item>
  </channel>
</rss>

