<?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: Related Feature on no spatial table in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564858#M3845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I load my package, map, tables and spatial tables (STATUS = LOADED)&lt;/P&gt;&lt;P&gt;but when I use my function&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;List&amp;lt;RelationshipInfo&amp;gt; relationshipInfos = featureTable.getLayerInfo().getRelationshipInfos();
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;size = relationshipInfos.size();// equal 0 !!&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't understand&lt;/P&gt;&lt;P&gt;I verify my aprx and the relate work when I see a formview in a map in ArcgisPRO 2.0.0&lt;/P&gt;&lt;P&gt;I generate my mmpk which a zip, if I unzip , i show a file geodatabase which is a sqlite database... how verify the relation in the database ? apparently GDB_ItemRelationsShips ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;- Lionel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:20:51 GMT</pubDate>
    <dc:creator>LionelGOUBET</dc:creator>
    <dc:date>2021-12-12T00:20:51Z</dc:date>
    <item>
      <title>Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564853#M3840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a mmpk with spatial tables and no spatial tables.&lt;/P&gt;&lt;P&gt;I have a spatial which have a relation with a spatial table and a relation with a no spatial table.&lt;/P&gt;&lt;P&gt;I use SDK&amp;nbsp;100.2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use that on a feature, I don't see the relation with the table no spatial while I see the relation with a spatial table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ListenableFuture&amp;lt;List&amp;lt;RelatedFeatureQueryResult&amp;gt;&amp;gt; listListenableFuture = featureTable.queryRelatedFeaturesAsync(feature);&lt;BR /&gt;listListenableFuture.addDoneListener(() -&amp;gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;RelatedFeatureQueryResult&amp;gt; relatedFeatureQueryResults = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; relatedFeatureQueryResults = listListenableFuture.get();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.i(TAG, "RESULT : " + relatedFeatureQueryResults.size());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (RelatedFeatureQueryResult relatedQueryResult : relatedFeatureQueryResults){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;String relationName = relatedQueryResult.getRelationshipInfo().getName();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.i(TAG, relationName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;String tableName = relatedQueryResult.getRelatedTable().getTableName();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;List&amp;lt;Field&amp;gt; fields = relatedQueryResult.getRelatedTable().getFields();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;...&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 14:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564853#M3840</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2018-01-25T14:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564854#M3841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Lionel,&lt;/P&gt;&lt;P&gt;The relationships&amp;nbsp;between spatial and non-spatial tables within an&amp;nbsp; MMPK should work. Can you check if all your related spatial tables and non-spatial tables are added to map ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Note: &lt;SPAN style="color: #4c4c4c;"&gt;Getting related tables for a layer or table on the map returns only those tables on the map. Similarly related queries require both origin and destination table/layer to be present on the map.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #4c4c4c;"&gt;&lt;A class="link-titled" href="http://developersdev.arcgis.com/android/latest/guide/relate-features.htm" title="http://developersdev.arcgis.com/android/latest/guide/relate-features.htm"&gt;http://developersdev.arcgis.com/android/latest/guide/relate-features.htm&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 17:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564854#M3841</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2018-01-29T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564855#M3842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;Thanks for your help ...&lt;/P&gt;&lt;P&gt;I create a new map with a new data.&lt;/P&gt;&lt;P&gt;I re-created the related tables and generate my mmpk&lt;/P&gt;&lt;P&gt;but this time i do not have any relation it's worse ...&lt;/P&gt;&lt;P&gt;I don't understand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;FeatureLayer l = (FeatureLayer) lyer;&lt;BR /&gt;ArcGISFeatureTable featureTable = (ArcGISFeatureTable) l.getFeatureTable();&lt;BR /&gt;List&amp;lt;ArcGISFeatureTable&amp;gt; relatedTables = featureTable.getRelatedTables();&lt;BR /&gt;relatedTables.size(); // equal 0 !!!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;What's the problem ? &lt;BR /&gt;Is it a option to export mmpk ?&lt;/P&gt;&lt;P&gt;do I have to load all layers and tables before use them ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 14:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564855#M3842</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2018-02-01T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564856#M3843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lionel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The origin FeatureTable on which you are performing related query operations should be in LOADED state. You can check it using&amp;nbsp;`&lt;SPAN style="background-color: #f6f6f6;"&gt;featureTable.getLoadStatus()&lt;SPAN&gt;&amp;nbsp;`&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;If you have set the map from MobileMapPackage to MapView, that should have&amp;nbsp;LOADED all the layers and tables in the map. If you are working without a MapView then you may have to explicitly load the origin table on which you want to perform related query operations&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;You can also view the metadata of RelationshipInfo's by calling `ArcGISFeatureTable.getLayerInfo.getRelationshipInfos()` just to make sure the relationships do exist in the MMPK&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;If it is still returning empty related tables, then we may have to check the data and the relationship details in ArcGISDesktop where the mmpk is generated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;SPAN&gt;-Rama&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564856#M3843</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2018-02-01T18:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564857#M3844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to try ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I imported a mxd in Arcgis PRO .... perhaps it's a problem&lt;/P&gt;&lt;P&gt;I 'm going created all since Arcgis PRO with my local geodatabase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 08:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564857#M3844</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2018-02-02T08:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564858#M3845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I load my package, map, tables and spatial tables (STATUS = LOADED)&lt;/P&gt;&lt;P&gt;but when I use my function&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;List&amp;lt;RelationshipInfo&amp;gt; relationshipInfos = featureTable.getLayerInfo().getRelationshipInfos();
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;size = relationshipInfos.size();// equal 0 !!&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't understand&lt;/P&gt;&lt;P&gt;I verify my aprx and the relate work when I see a formview in a map in ArcgisPRO 2.0.0&lt;/P&gt;&lt;P&gt;I generate my mmpk which a zip, if I unzip , i show a file geodatabase which is a sqlite database... how verify the relation in the database ? apparently GDB_ItemRelationsShips ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;- Lionel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564858#M3845</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2021-12-12T00:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564859#M3846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the &lt;STRONG&gt;ItemInfo&lt;/STRONG&gt; column in&amp;nbsp;&lt;STRONG&gt;`GDB_ServiceItems`&lt;/STRONG&gt; table for your origin table. The JSON present there should have&amp;nbsp;&lt;SPAN style="color: #1a1a1a; background-color: #ffffab;"&gt;relationships&amp;nbsp;details&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1a1a1a; background-color: #ffffab;"&gt;-Rama&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564859#M3846</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2018-02-02T18:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Related Feature on no spatial table</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564860#M3847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I'm confused ... I found my error&lt;/P&gt;&lt;P&gt;I created a relate in my map not in my geodatabase ! it's a relation ship&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here a link : &lt;A href="https://community.esri.com/groups/esri-training/blog/2009/02/26/relates-vs-relationship-classes"&gt;https://community.esri.com/groups/esri-training/blog/2009/02/26/relates-vs-relationship-classes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Rami&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this response &lt;SPAN lang="en"&gt;had not been sent, I'm going to see....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 14:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/related-feature-on-no-spatial-table/m-p/564860#M3847</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2018-02-26T14:00:51Z</dc:date>
    </item>
  </channel>
</rss>

