<?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 Filter Data Geodatabase in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810415#M1573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a local .geodatabase on my mobile device.&amp;nbsp; I can read it fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now attempting to set a where clause or filter that allows the user to click a button and filter / ONLY show data that is there based on the Created_User field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I just set a WHERE clause in the Geodatabase or do I nee to do something else...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to click the button to just show that specific persons from the field and then click the button again and go back to ALL data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;                FeatureLayer {
                    id: Points
                    visible: false
                    featureTable: gdb.geodatabaseFeatureTablesByTableName["Hunting"]
                   
                    // create the geodatabase
                    Geodatabase {
                        id: gdb
                        path: Path
                        onErrorChanged: errorMessage = error.message;
                    }
                    onErrorChanged: errorMessage = error.message;
                }&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:30:25 GMT</pubDate>
    <dc:creator>jaykapalczynski</dc:creator>
    <dc:date>2021-12-12T09:30:25Z</dc:date>
    <item>
      <title>Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810415#M1573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a local .geodatabase on my mobile device.&amp;nbsp; I can read it fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now attempting to set a where clause or filter that allows the user to click a button and filter / ONLY show data that is there based on the Created_User field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I just set a WHERE clause in the Geodatabase or do I nee to do something else...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to click the button to just show that specific persons from the field and then click the button again and go back to ALL data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;                FeatureLayer {
                    id: Points
                    visible: false
                    featureTable: gdb.geodatabaseFeatureTablesByTableName["Hunting"]
                   
                    // create the geodatabase
                    Geodatabase {
                        id: gdb
                        path: Path
                        onErrorChanged: errorMessage = error.message;
                    }
                    onErrorChanged: errorMessage = error.message;
                }&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810415#M1573</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T09:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810416#M1574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im trying this but not sure because I am using a local geodatabase and think my syntax might be incorrect&lt;/P&gt;&lt;P&gt;It removes all of the records when I click the button and then turns them all on&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT its removing them all and I know there are a couple different values in the created_user field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thoughts?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;                    Button {
                        text: "Apply Expression"
                        enabled: gdb.loadStatus === Enums.LoadStatusLoaded
                        onClicked: {
                            Points.definitionExpression = "created_user = \'ESRI_Anonymous\'"
                        }
                    }
                    Button {
                        text: "Reset"
                        enabled: gdb.loadStatus === Enums.LoadStatusLoaded
                        onClicked: {
                            Points.definitionExpression = "";
                        }
                    }&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 09:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810416#M1574</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810417#M1575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think I have it...just syntax...&lt;/P&gt;&lt;P&gt;what are the \ used in his example&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/sample-code/feature-layer-definition-expression/" title="https://developers.arcgis.com/qt/latest/qml/sample-code/feature-layer-definition-expression/" rel="nofollow noopener noreferrer" target="_blank"&gt;Feature layer definition expression | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make a LIKE statement&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;onClicked&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;   &lt;/SPAN&gt;&lt;SPAN&gt;Points&lt;/SPAN&gt;.definitionExpression&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"created_user&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'Law'"
&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;}


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810417#M1575</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T16:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810418#M1576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this look correct?&amp;nbsp; Seems like I could make this look nicer but this seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #008000;"&gt;"created_user&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;credentialUsersNameNew&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;PublicPrivate&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'public'"&lt;/SPAN&gt;;


Last question....any idea how to query between specific dates?



&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810418#M1576</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T16:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810419#M1577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying this but no luck&lt;/P&gt;&lt;P&gt;This is trying to query the created_date that is created automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;startdate&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"12/18/2019&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;1:30:10&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;AM"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Points&lt;/SPAN&gt;.definitionExpression&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"created_date&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;" ' "&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;startdate&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;" ' "&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does a .geodatabase file follow SQL standards?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;preferably I would simply like to query for a specific year....&lt;/P&gt;&lt;P&gt;i.e. show me the records for 2018 or 2019&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 14:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810419#M1577</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-27T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810420#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would assume, it would be the same as how you would put the query parameter for the REST end point of the feature layer.&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/" title="https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/"&gt;Querying Feature Services: Date-Time Queries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cc: &lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 17:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810420#M1578</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-12-27T17:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Data Geodatabase</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810421#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK great...yea wanted to know if it follow standard SQL....looks like it does....Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 17:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/filter-data-geodatabase/m-p/810421#M1579</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-27T17:32:02Z</dc:date>
    </item>
  </channel>
</rss>

