<?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: Feature Table for IdentifyLayerResult in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671461#M4689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, looking at your code, I must not understand what you're trying to achieve. I'm not an Android dev, but it looks like you're stripping out all the attributes from all the identified features, converting each attribute value&amp;nbsp;to a string (is there a reason you want to discard the type info here?), and putting a Map of these converted values in a list - one Map for each feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're saying that in the case of a Feature Collection you're not getting any GeoElements back to read&amp;nbsp;the attributes from, have you tried looking at the &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/IdentifyLayerResult.html#getSublayerResults()"&gt;&lt;STRONG&gt;subLayerResults&lt;/STRONG&gt;&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Dec 2019 21:49:08 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2019-12-21T21:49:08Z</dc:date>
    <item>
      <title>Feature Table for IdentifyLayerResult</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671457#M4685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm using this&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/java/sample-code/identify-layers/" rel="nofollow noopener noreferrer" target="_blank"&gt;this&lt;/A&gt;&amp;nbsp;guide to identify which layers were clicked on MapView.&lt;/P&gt;&lt;P&gt;it works perfectly for every layers I have except from Feature Collection Layers. where the attributes are in a feature table and not elements.&lt;/P&gt;&lt;P&gt;how do I get the attributes inside a feature table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to identify layers:&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;&lt;SPAN style="color: #cc7832;"&gt;fun &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;identifyClickedLayerResults&lt;/SPAN&gt;(point: android.graphics.Point&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;mMap: MapView&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;callback: (MutableList&amp;lt;IdentifyLayerResult&amp;gt;) -&amp;gt; Unit){
    &lt;SPAN style="color: #cc7832;"&gt;val &lt;/SPAN&gt;TAG = &lt;SPAN style="color: #6a8759;"&gt;"ClickedLayerResults"
&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;var &lt;/SPAN&gt;identifyLayerResult: MutableList&amp;lt;IdentifyLayerResult&amp;gt;
    &lt;SPAN style="color: #cc7832;"&gt;val &lt;/SPAN&gt;identifyLayerResultsFuture = mMap
            .identifyLayersAsync(point&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;12.0&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, false, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;5&lt;/SPAN&gt;)

    identifyLayerResultsFuture.addDoneListener &lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;try &lt;/SPAN&gt;{
            identifyLayerResult = identifyLayerResultsFuture.get()
            callback(identifyLayerResult)

        } &lt;SPAN style="color: #cc7832;"&gt;catch &lt;/SPAN&gt;(e: InterruptedException) {
            Log.e(TAG&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Error identifying results: " &lt;/SPAN&gt;+ e.&lt;SPAN style="color: #9876aa;"&gt;message&lt;/SPAN&gt;)
        } &lt;SPAN style="color: #cc7832;"&gt;catch &lt;/SPAN&gt;(e: ExecutionException) {
            Log.e(TAG&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"Error identifying results: " &lt;/SPAN&gt;+ e.&lt;SPAN style="color: #9876aa;"&gt;message&lt;/SPAN&gt;)
        }
    &lt;SPAN style="font-weight: bold;"&gt;}
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;to get attributes:&amp;nbsp;&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;&lt;SPAN style="color: #cc7832;"&gt;fun &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;layerDetails&lt;/SPAN&gt;(forLayer: IdentifyLayerResult): ArrayList&amp;lt;Map&amp;lt;String&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String&amp;gt;&amp;gt;{
    &lt;SPAN style="color: #cc7832;"&gt;val &lt;/SPAN&gt;resultGeoElements = forLayer.&lt;SPAN style="color: #9876aa;"&gt;elements
&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(forLayer.&lt;SPAN style="color: #9876aa;"&gt;layerContent&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;name &lt;/SPAN&gt;== &lt;SPAN style="color: #6a8759;"&gt;"Feature Collection"&lt;/SPAN&gt;){
        &lt;SPAN style="color: #808080;"&gt;//doesn't work here &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;    &lt;/SPAN&gt;}
    &lt;SPAN style="color: #cc7832;"&gt;var &lt;/SPAN&gt;mAttributesString = ArrayList&amp;lt;String&amp;gt;()
    &lt;SPAN style="color: #cc7832;"&gt;var &lt;/SPAN&gt;layersAttributeList = ArrayList&amp;lt;Map&amp;lt;String&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String&amp;gt;&amp;gt;()

    &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(!resultGeoElements.isEmpty()){
        resultGeoElements.&lt;SPAN style="color: #ffc66d;"&gt;forEach &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="font-weight: bold;"&gt;it &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;is &lt;/SPAN&gt;ArcGISFeature){
                &lt;SPAN style="color: #cc7832;"&gt;val &lt;/SPAN&gt;mArcGISFeature = &lt;SPAN style="font-weight: bold;"&gt;it &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;as? &lt;/SPAN&gt;ArcGISFeature
                mAttributesString.add(mArcGISFeature?.&lt;SPAN style="color: #9876aa;"&gt;attributes&lt;/SPAN&gt;.&lt;SPAN style="color: #ffc66d;"&gt;toString&lt;/SPAN&gt;())
                &lt;SPAN style="color: #cc7832;"&gt;var &lt;/SPAN&gt;mTempMap = &lt;SPAN&gt;mutableMapOf&lt;/SPAN&gt;&amp;lt;String&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;String&amp;gt;()
                mArcGISFeature?.&lt;SPAN style="color: #9876aa;"&gt;attributes&lt;/SPAN&gt;?.&lt;SPAN style="color: #ffc66d;"&gt;forEach &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;                    &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(!&lt;SPAN style="font-weight: bold;"&gt;it&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;value&lt;/SPAN&gt;.toString().&lt;SPAN style="color: #ffc66d;"&gt;isEmpty&lt;/SPAN&gt;() &amp;amp;&amp;amp; !&lt;SPAN style="font-weight: bold;"&gt;it&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;key&lt;/SPAN&gt;.toString().&lt;SPAN style="color: #ffc66d;"&gt;isEmpty&lt;/SPAN&gt;()
                            &amp;amp;&amp;amp; !&lt;SPAN style="font-weight: bold;"&gt;it&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;key&lt;/SPAN&gt;.toString().&lt;SPAN style="color: #ffc66d;"&gt;contains&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;".FID"&lt;/SPAN&gt;))
                        mTempMap[&lt;SPAN style="font-weight: bold;"&gt;it&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;key&lt;/SPAN&gt;.toString()] = &lt;SPAN style="font-weight: bold;"&gt;it&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;value&lt;/SPAN&gt;.toString()
                &lt;SPAN style="font-weight: bold;"&gt;}
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;                &lt;/SPAN&gt;layersAttributeList.add(mTempMap)
            }
        &lt;SPAN style="font-weight: bold;"&gt;}
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;    &lt;/SPAN&gt;}

    &lt;SPAN style="color: #cc7832;"&gt;return &lt;/SPAN&gt;layersAttributeList
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;what i got now :&amp;nbsp;&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;&lt;SPAN style="color: #cc7832;"&gt;private fun &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;featureCollectionDetails&lt;/SPAN&gt;(forLayer: IdentifyLayerResult){
    &lt;SPAN style="color: #cc7832;"&gt;var &lt;/SPAN&gt;featureCollectionLayer = forLayer.&lt;SPAN style="color: #9876aa;"&gt;layerContent &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;as &lt;/SPAN&gt;FeatureCollectionLayer
    &lt;SPAN style="color: #cc7832;"&gt;var &lt;/SPAN&gt;mFeatureTable = featureCollectionLayer.&lt;SPAN style="color: #9876aa;"&gt;layers&lt;/SPAN&gt;[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;].&lt;SPAN style="color: #9876aa;"&gt;featureTable
&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is in kotlin, its ok if the answer will be in java&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671457#M4685</guid>
      <dc:creator>nafotoisrael</dc:creator>
      <dc:date>2021-12-12T04:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table for IdentifyLayerResult</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671458#M4686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your question properly, you're nearly there! Each&amp;nbsp;FeatureTable has Fields you can read. See &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/FeatureTable.html#getFields()"&gt;&lt;STRONG&gt;getFields()&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 17:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671458#M4686</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-12-21T17:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table for IdentifyLayerResult</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671459#M4687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fields only return field aliases, is there any way to get attributes for the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 21:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671459#M4687</guid>
      <dc:creator>nafotoisrael</dc:creator>
      <dc:date>2019-12-21T21:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table for IdentifyLayerResult</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671460#M4688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fields returns you a list of Field objects. Each Field has a Name and an Alias:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/Field.html" title="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/Field.html"&gt;Field (ArcGIS Runtime SDK for Android 100.7.0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 21:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671460#M4688</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-12-21T21:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table for IdentifyLayerResult</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671461#M4689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, looking at your code, I must not understand what you're trying to achieve. I'm not an Android dev, but it looks like you're stripping out all the attributes from all the identified features, converting each attribute value&amp;nbsp;to a string (is there a reason you want to discard the type info here?), and putting a Map of these converted values in a list - one Map for each feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're saying that in the case of a Feature Collection you're not getting any GeoElements back to read&amp;nbsp;the attributes from, have you tried looking at the &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/IdentifyLayerResult.html#getSublayerResults()"&gt;&lt;STRONG&gt;subLayerResults&lt;/STRONG&gt;&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 21:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671461#M4689</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-12-21T21:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table for IdentifyLayerResult</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671462#M4690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;brilliant! subLayerResults solved it! I was looking at the wrong place&lt;/P&gt;&lt;P&gt;thank you dearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 22:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/feature-table-for-identifylayerresult/m-p/671462#M4690</guid>
      <dc:creator>nafotoisrael</dc:creator>
      <dc:date>2019-12-21T22:22:25Z</dc:date>
    </item>
  </channel>
</rss>

