<?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: Add layer from geodatabase file in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762682#M268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could loop through the geodatabaseFeatureTables list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Geodatabase &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; gdb
    path&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; dataPath &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"geodatabase/LA_Trails.geodatabase"&lt;/SPAN&gt;

    onErrorChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;message&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    onLoadStatusChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;loadStatus &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LoadStatusLoaded&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"number of feature tables:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; ft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FeatureLayer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; ft&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;operationalLayers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;append&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    Component&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;onCompleted&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;load&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:24:59 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2021-12-12T08:24:59Z</dc:date>
    <item>
      <title>Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762675#M261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a geodatabase via ArcGIS Runtime Content in ArcMap.&lt;/P&gt;&lt;P&gt;I am trying to add it via this reference:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/10-2/qml/guide/create-an-offline-map.htm" title="https://developers.arcgis.com/qt/10-2/qml/guide/create-an-offline-map.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Create an offline map—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT map.addLayer does not exist or its giving me an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;//Declare the geodatabase &lt;/SPAN&gt;
Geodatabase &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; geodatabase
        path&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/path_to_my_geodatabase/mydata.geodatabase"&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

FeatureLayer &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; featureLayer
        featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; geodatabase&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;geodatabaseFeatureTableByLayerId&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762675#M261</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T08:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762676#M262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to add I am using QML for AppStudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 17:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762676#M262</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-10T17:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762677#M263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the sample Feature Layer (Geodatabase),&amp;nbsp;&lt;/P&gt;&lt;P&gt;- AppStudio Sample -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-appstudio-samples/blob/v4.0/Feature%20Layer%20(Geodatabase)/MyApp.qml" title="https://github.com/Esri/arcgis-appstudio-samples/blob/v4.0/Feature%20Layer%20(Geodatabase)/MyApp.qml"&gt;arcgis-appstudio-samples/MyApp.qml at v4.0 · Esri/arcgis-appstudio-samples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- ArcGIS Runtime Qt/QML Sample -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/sample-code/feature-layer-geodatabase/" title="https://developers.arcgis.com/qt/latest/qml/sample-code/feature-layer-geodatabase/"&gt;Feature layer (geodatabase) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to call addLayer if you initialize the FeatureLayer inside Map, that layer is already added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looping in &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌, to see why addLayer is throwing an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762677#M263</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-12-10T19:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762678#M264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no addLayer method on Map. Instead, you can nest the layer inside the Map like you mentioned, or you can call map.operationalLayers.append(), and add the layer via that method &lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-layerlistmodel.html#append-method" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-layerlistmodel.html#append-method"&gt;LayerListModel QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 19:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762678#M264</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2019-12-10T19:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762679#M265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can I still reference the index of the gdb like this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;featureTable:&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;geodatabase.geodatabaseFeatureTableByLayerId(4);

OK going to test that now.  THANKS&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762679#M265</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762680#M266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think I got it...THANK YOU SO MUCH.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I could not use&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #008000;"&gt;featureTable:&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;gdb.geodatabaseFeatureTableByLayerId(4);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But had to use&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #008000;"&gt;featureTable:&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;gdb.geodatabaseFeatureTablesByTableName["WMAs_1"];&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import QtQuick 2.6
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import Esri.ArcGISRuntime 100.6
//import Esri.ArcGISExtras 1.1

Rectangle {
    id: navigateOnline
    width: 800
    height: 600

    property string errorMessage: ""
    signal previous(string message)
    property string lecaDataPath:  app.mmpkManager.fileUrl3

    // Map view UI presentation at top
    MapView {
        anchors.fill: parent

        Rectangle{
            id: stupidrectangle
            width: 300
            height: 50
            Column{
                id: searchBar22
                width: 300
                spacing: 0

               Text {
                  text: lecaDataPath
                  width: 300
                  wrapMode: Text.WordWrap
               }
            }
        }

        Map {
            id: map

            // set an initial viewpoint
            ViewpointCenter {
                Point {
                    x: -8778929
                    y: 44521052
                    spatialReference: SpatialReference { wkid: 3857 }
                }
                targetScale: 35e4
            }

            BasemapTopographic {}

            //! [FeatureLayer Geodatabase create]
            // create a feature layer
            FeatureLayer {
                // obtain the feature table from the geodatabase by name
                //featureTable: gdb.geodatabaseFeatureTableByLayerId(4);
                featureTable: gdb.geodatabaseFeatureTablesByTableName["WMAs_1"]

                // create the geodatabase
                Geodatabase {
                    id: gdb
                    path: lecaDataPath
                    onErrorChanged: errorMessage = error.message;
                }
                onErrorChanged: errorMessage = error.message;
            }
            onErrorChanged: errorMessage = error.message;
        }
        onErrorChanged: errorMessage = error.message;
    }

    Dialog {
        modal: true
        x: Math.round(parent.width - width) / 2
        y: Math.round(parent.height - height) / 2
        standardButtons: Dialog.Ok
        visible: text.length &amp;gt; 0
        property alias text : textLabel.text
        property alias informativeText : detailsLabel.text
        ColumnLayout {
            Text {
                id: textLabel
                text: errorMessage
            }
            Text {
                id: detailsLabel
                text: "Please consult the README.md"
            }
        }
    }
}
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762680#M266</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762681#M267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea how to read this geodatabase and or get a list of the features that it contains?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762681#M267</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-12T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762682#M268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could loop through the geodatabaseFeatureTables list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Geodatabase &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; gdb
    path&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; dataPath &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"geodatabase/LA_Trails.geodatabase"&lt;/SPAN&gt;

    onErrorChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;message&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    onLoadStatusChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;loadStatus &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LoadStatusLoaded&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"number of feature tables:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; ft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FeatureLayer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; ft&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;operationalLayers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;append&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    Component&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;onCompleted&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;load&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762682#M268</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-12T08:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762683#M269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your example would read the geodatabase and create multiple&amp;nbsp;Feature Layer objects to display the multiple features in the geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:21:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762683#M269</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-12T18:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762684#M270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes that is what this example does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762684#M270</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2019-12-12T18:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762685#M271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wondering how I replicate the button turning the layer off with your example....I like your example much more as it streamlines the process considerably....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do this&amp;nbsp; on the Geodatabase in your example?&amp;nbsp; Set to false and then hit up the ID to set the visibility to true as in my example?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;visible&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;false



&lt;/PRE&gt;&lt;P&gt;Right now I am doing it individually with in a Feature Layer.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;                FeatureLayer &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; wmas_1
                    visible&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
                    featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; gdb4&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geodatabaseFeatureTablesByTableName&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"WMA_features"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

                    &lt;SPAN class="comment token"&gt;// create the geodatabase&lt;/SPAN&gt;
                    Geodatabase &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                        id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; gdb4
                        path&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; DataPathWMAs
                        onErrorChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; errorMessage &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;message&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
                    onErrorChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; errorMessage &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;message&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a button I turn it on and off as such&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;onClicked&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
       wmas_1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;
   &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
       wmas_1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
   &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
       console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"something"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762685#M271</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T08:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762686#M272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;onClicked:{
    if (checked == true){
       map.operationalLayers.get(0).visible = true
   }else if (checked == false){
       map.operationalLayers.get(0).visible = false
   }else{
       console.log("something");
   }
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762686#M272</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-12T08:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762687#M273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have a couple geodatabases on the phone.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There will be a couple buttons/sliders in the app to turn on specific layers from specific geodatabases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I distinguish between the geodatabases and features in the geodatabase with the onclick of the button or slider.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont see you referencing the specific geodatabase and I assume the get(0)&amp;nbsp; is getting the first reference index in the geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 20:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762687#M273</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-12T20:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762688#M274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing this right now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set the Feature layer visible to FALSE&lt;/P&gt;&lt;P&gt;and when I move the switch it turns it one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although when I start the app it draws the features and is visible...the visible setting does not seem to be working....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I going about this correctly?&amp;nbsp; Should I be using the Feature Layer Shell????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets even ore confusing when I add in another geodatabase with other feature tables...how do i specifically target those?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;          FeatureLayer &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                    id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; wmas_1
                    visible&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;

                    Geodatabase &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                        id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; gdb
                        path&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; lecaDataPathWMAs

                        onLoadStatusChanged&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;loadStatus &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; Enums&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LoadStatusLoaded&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                                console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"number of feature tables:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                                &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                                    &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; ft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geodatabaseFeatureTables&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                                    &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ArcGISRuntimeEnvironment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createObject&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FeatureLayer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; ft&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                                    map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;operationalLayers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;append&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                                &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
                            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
                        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
                    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
           &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;T&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Switch &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;                     

  &lt;SPAN class="comment token"&gt;// SNIP  &lt;/SPAN&gt;

      onClicked&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
             wmas_1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;checked &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
             wmas_1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
             console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"xxxxx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; ‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762688#M274</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add layer from geodatabase file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762689#M275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think some of the concepts here are tripping you up a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Geodatabase:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is the container, similar to a File Geodatabase in desktop, which holds N number of feature tables (called "feature class" in the desktop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GeodatabaseFeatureTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;These live inside of the Geodatabase. This is the backing data, schema information, rendering info, and everything required to define each table of features. This is synonymous to a Feature Class in desktop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FeatureLayer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is the layer that does the display of a feature table. The feature table is the backing data (i.e. the model) and the feature layer is what displays on the map (i.e. the view)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at a high level, what I would do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Create a Geodatabase for each .geodatabase file you have.&lt;/P&gt;&lt;P&gt;- Load each Geodatabase and loop through each to obtain each feature table&lt;/P&gt;&lt;P&gt;- Create a feature layer from each feature table&lt;/P&gt;&lt;P&gt;- Add each feature layer to the map&lt;/P&gt;&lt;P&gt;- Somehow, store a reference to the specific layers you want to mention. The first idea that comes to mind is to store a&amp;nbsp;json or some data structure that keeps track of the index position of the layer added to the map. In my snippet above where I call get and pass in 0, that is just getting the first item in the map. If you store the index for the specific layers you want to have visibility toggled for, you could hard code those in your button. If you instead wanted to be more dynamic and display a toggle checkbox for each layer in the map, you could create a ListView in QML code, and bind the model property directly to the map's operationalLayers list model, and each layer would display in the ListView.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 18:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/add-layer-from-geodatabase-file/m-p/762689#M275</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2019-12-13T18:36:46Z</dc:date>
    </item>
  </channel>
</rss>

