<?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: Read table values from offline goedatabase in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357195#M12362</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/682135"&gt;@MoyerSolutions&lt;/a&gt;&amp;nbsp;,&amp;nbsp; a quick way to get the values you're looking for is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a call to `QueryFeaturesAsync` on the table in question with an empty `WhereClause` (this will grab every feature available)&lt;/LI&gt;&lt;LI&gt;Assign the result of this to a new `FeatureQueryResult` object.&lt;/LI&gt;&lt;LI&gt;Iterate through the fields in the table &lt;EM&gt;and&lt;/EM&gt;&amp;nbsp;each feature from this result. This will give you each feature in default order.&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="csharp"&gt;foreach (GeodatabaseFeatureTable table in geodatabase.GeodatabaseFeatureTables)
{
    await table.LoadAsync();
    string message = "";
    QueryParameters queryParams = new QueryParameters()
    {
        WhereClause = ""
    };
    FeatureQueryResult result = await table.QueryFeaturesAsync(queryParams);
    foreach (Field field in table.Fields)
    {
        foreach (ArcGISFeature feature in result)
        {
            object value = feature.GetAttributeValue(field);
            message += "\n" + field.Name + ": " + value;
        }
        await Application.Current.MainPage.DisplayAlert(table.TableName, message, "OK");
    }
}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Dec 2023 00:34:31 GMT</pubDate>
    <dc:creator>AndyWeis</dc:creator>
    <dc:date>2023-12-06T00:34:31Z</dc:date>
    <item>
      <title>Read table values from offline goedatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357173#M12361</link>
      <description>&lt;P&gt;Hello! This is a follow up to a &lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/offline-sync-geodatabase-empty-table-feature-layer/m-p/1354393#M12349" target="_self"&gt;previous question&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I am trying to read the values in a table. I guess their called attributes in this context.&amp;nbsp;How do I enumerate the rows in the table and read the actual values of the fields?&lt;/P&gt;&lt;P&gt;Its an offline geodatabase, its is correctly download via the GeodatabaseSyncTask.GenerateGeodatabase()&lt;/P&gt;&lt;P&gt;Now I am trying to enumerate the values in the fields.&amp;nbsp;The fields are loaded via table.LoadAsync(), and the field object contains the Field Name and other properties, but not the value.&lt;/P&gt;&lt;P&gt;I think I need ArcGISFeature.GetAttributeValue(field)? But how do I get the feature object from the table?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;foreach (GeodatabaseFeatureTable table in geodatabase.GeodatabaseFeatureTables) {
    await table.LoadAsync();
    string message = "";
    foreach (Field field in table.Fields) {
        ArcGISFeature feature = ?????
        object value = feature.GetAttributeValue(field);
        message += "\n" + field.Name + ": " + value;
    }
    await Application.Current.MainPage.DisplayAlert(table.TableName, message, "OK");
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 23:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357173#M12361</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2023-12-05T23:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read table values from offline goedatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357195#M12362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/682135"&gt;@MoyerSolutions&lt;/a&gt;&amp;nbsp;,&amp;nbsp; a quick way to get the values you're looking for is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a call to `QueryFeaturesAsync` on the table in question with an empty `WhereClause` (this will grab every feature available)&lt;/LI&gt;&lt;LI&gt;Assign the result of this to a new `FeatureQueryResult` object.&lt;/LI&gt;&lt;LI&gt;Iterate through the fields in the table &lt;EM&gt;and&lt;/EM&gt;&amp;nbsp;each feature from this result. This will give you each feature in default order.&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="csharp"&gt;foreach (GeodatabaseFeatureTable table in geodatabase.GeodatabaseFeatureTables)
{
    await table.LoadAsync();
    string message = "";
    QueryParameters queryParams = new QueryParameters()
    {
        WhereClause = ""
    };
    FeatureQueryResult result = await table.QueryFeaturesAsync(queryParams);
    foreach (Field field in table.Fields)
    {
        foreach (ArcGISFeature feature in result)
        {
            object value = feature.GetAttributeValue(field);
            message += "\n" + field.Name + ": " + value;
        }
        await Application.Current.MainPage.DisplayAlert(table.TableName, message, "OK");
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Dec 2023 00:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357195#M12362</guid>
      <dc:creator>AndyWeis</dc:creator>
      <dc:date>2023-12-06T00:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read table values from offline goedatabase</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357545#M12363</link>
      <description>&lt;P&gt;Aha! I was knew I was close... Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 18:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/read-table-values-from-offline-goedatabase/m-p/1357545#M12363</guid>
      <dc:creator>MoyerSolutions</dc:creator>
      <dc:date>2023-12-06T18:28:46Z</dc:date>
    </item>
  </channel>
</rss>

