<?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: Potential Bug When Filtering Non-Spatial Table With Non-Spatial Table Parent in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1548990#M6256</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/46685"&gt;@GuntherHeppner&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1212"&gt;@DiveshGoyal&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17660"&gt;@RamaChintapalli&lt;/a&gt;&amp;nbsp;Just making sure that this hasn't fallen through the cracks. Is this a current bug in the SDK? Should I go another route for escalating this issue (like not using this ESRI Community website)?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 13:31:57 GMT</pubDate>
    <dc:creator>NathanMeade</dc:creator>
    <dc:date>2024-10-16T13:31:57Z</dc:date>
    <item>
      <title>Potential Bug When Filtering Non-Spatial Table With Non-Spatial Table Parent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1540138#M6241</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;The "setWhereClause()" for GenerateLayerOption doesn't work for non-spatial tables if they have a non-spatial table parent, unless the non-spatial parent table also has a where clause set.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See the code and comments below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;layerIdInfosMap&lt;/SPAN&gt;.containsKey(generateLayerOption.getLayerId())) {&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(wasGenerated) {&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(wasFiltered) {&lt;BR /&gt;            generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.&lt;SPAN&gt;USE_FILTER&lt;/SPAN&gt;);&lt;BR /&gt;            generateLayerOption.setWhereClause(featureLayerInfo.getWhereClause());&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;            generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.&lt;SPAN&gt;ALL&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;    } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;        generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.&lt;SPAN&gt;NONE&lt;/SPAN&gt;);&lt;BR /&gt;    }&lt;BR /&gt;} &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(wasGenerated) {&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(wasFiltered) {&lt;BR /&gt;            generateLayerOption.setUseGeometry(&lt;SPAN&gt;false&lt;/SPAN&gt;);&lt;BR /&gt;            generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.&lt;SPAN&gt;USE_FILTER&lt;/SPAN&gt;);&lt;BR /&gt;            generateLayerOption.setWhereClause(featureLayerInfo.getWhereClause());&lt;BR /&gt;        } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;// The following code is a workaround for what we believe is a bug with the ArcGIS Android SDK:&lt;BR /&gt;&lt;/SPAN&gt;            generateLayerOption.setUseGeometry(&lt;SPAN&gt;false&lt;/SPAN&gt;);&lt;BR /&gt;            generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.&lt;SPAN&gt;USE_FILTER&lt;/SPAN&gt;);&lt;BR /&gt;            generateLayerOption.setWhereClause(&lt;SPAN&gt;"OBJECTID &amp;gt; -1"&lt;/SPAN&gt;);&lt;BR /&gt;            &lt;SPAN&gt;// This workaround should still get all of the features for this table.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // The assumption being made right now is that each&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // ArcGIS Feature Service table has to have the OBJECTID Field.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // This workaround addresses an issue where non-spatial tables with a&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // non-spatial parent relationship cannot be filtered unless a real where clause&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // is provided to the parent table as well.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            //&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // The actual call should be:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            // generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.ALL);&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;    } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;        generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.&lt;SPAN&gt;NONE&lt;/SPAN&gt;);&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 19:50:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1540138#M6241</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-09-18T19:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Potential Bug When Filtering Non-Spatial Table With Non-Spatial Table Parent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1542468#M6248</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/682335"&gt;@NathanMeade&lt;/a&gt;&amp;nbsp;- have you tried to use&amp;nbsp;&lt;STRONG&gt;GenerateLayerOption.QueryOption.NONE&lt;/STRONG&gt; in combination with&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;GenerateLayerOption.setIncludeRelated(true)&lt;/STRONG&gt;? See the doc of &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/tasks/geodatabase/GenerateLayerOption.html#setIncludeRelated(boolean)" target="_self"&gt;setIncludeRelated&lt;/A&gt; which indicates that features/rows in this layer are included that are related to other layers/tables in the generated geodatabase.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;generateLayerOption.setUseGeometry(false);
generateLayerOption.setQueryOption(GenerateLayerOption.QueryOption.NONE);
generateLayerOption.setIncludeRelated(true);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1542468#M6248</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2024-09-25T13:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Potential Bug When Filtering Non-Spatial Table With Non-Spatial Table Parent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1542481#M6249</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/46685"&gt;@GuntherHeppner&lt;/a&gt;&amp;nbsp;What I am trying to do has nothing to do with relationships. I am just reporting that I am seeing this issue when there are specific kinds of relationships. Unrelated, I have done some testing with&amp;nbsp;&lt;STRONG&gt;GenerateLayerOption.QueryOption.NONE&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in combination with&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;GenerateLayerOption.setIncludeRelated(true)&amp;nbsp;&lt;/STRONG&gt;but that was when I was seeing how relationships worked with the SDK. I'm not trying to do any of that here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming what I am observing is a bug then? Is this something that could be fixed in an SDK update? Also, is there a way to receive ESRI SDK support other than through this community website? This community site is helpful but it can be easier to have a miscommunication and also hoping for something that would be faster than an average turnaround time of about a week.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 14:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1542481#M6249</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-09-25T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Potential Bug When Filtering Non-Spatial Table With Non-Spatial Table Parent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1548990#M6256</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/46685"&gt;@GuntherHeppner&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1212"&gt;@DiveshGoyal&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17660"&gt;@RamaChintapalli&lt;/a&gt;&amp;nbsp;Just making sure that this hasn't fallen through the cracks. Is this a current bug in the SDK? Should I go another route for escalating this issue (like not using this ESRI Community website)?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1548990#M6256</guid>
      <dc:creator>NathanMeade</dc:creator>
      <dc:date>2024-10-16T13:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Potential Bug When Filtering Non-Spatial Table With Non-Spatial Table Parent</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1550781#M6257</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/682335"&gt;@NathanMeade&lt;/a&gt;&amp;nbsp;to determine if this is a bug we will need more information. Please could you submit this issue with &lt;A href="https://support.esri.com/en-us/overview" target="_self"&gt;Esri Support&lt;/A&gt;, ideally providing an app that reproduces the issue. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 08:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/potential-bug-when-filtering-non-spatial-table/m-p/1550781#M6257</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2024-10-22T08:18:39Z</dc:date>
    </item>
  </channel>
</rss>

