<?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 queryFeatures get domain description in ArcGIS JavaScript Maps SDK Videos</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-videos/queryfeatures-get-domain-description/m-p/1146585#M20</link>
    <description>&lt;P&gt;Is it possible to get the domain descriptions when performing queryFeatures? The domain values come down but we need the descriptions to display in our application. Below a screen shop and code snip.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1LiCN8Qni8yREWdTzitHypYIXCvBp1RMm/view?usp=sharing" target="_self"&gt;Screen shot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    loadModules(['esri/layers/FeatureLayer']).then(([FeatureLayer]) =&amp;gt; {
      const featureLayer = new FeatureLayer({
        portalItem: {
          id: portalId,
        },
        layerId: layerId,
      })
        .load()
        .then((layer) =&amp;gt; {
          layer
            .queryFeatures({

              where: where,
              outFields: '*',
            })
            .then((result: any) =&amp;gt; {
              if (result.features.length &amp;gt; 0) {
                const keys = Object.keys(result.features[0].attributes);
                result.features.forEach((f) =&amp;gt; {
                  let feature = {};
                  feature['attachments'] = [];
                  keys.forEach((k) =&amp;gt; {
                    feature[k] = f.attributes[k];
                  });
                  data.push(feature);
                });
              }
            }).finally(() =&amp;gt; {
              resolve(data);
            })
        })
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 17:33:16 GMT</pubDate>
    <dc:creator>SteveRailsback</dc:creator>
    <dc:date>2022-02-22T17:33:16Z</dc:date>
    <item>
      <title>queryFeatures get domain description</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-videos/queryfeatures-get-domain-description/m-p/1146585#M20</link>
      <description>&lt;P&gt;Is it possible to get the domain descriptions when performing queryFeatures? The domain values come down but we need the descriptions to display in our application. Below a screen shop and code snip.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1LiCN8Qni8yREWdTzitHypYIXCvBp1RMm/view?usp=sharing" target="_self"&gt;Screen shot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    loadModules(['esri/layers/FeatureLayer']).then(([FeatureLayer]) =&amp;gt; {
      const featureLayer = new FeatureLayer({
        portalItem: {
          id: portalId,
        },
        layerId: layerId,
      })
        .load()
        .then((layer) =&amp;gt; {
          layer
            .queryFeatures({

              where: where,
              outFields: '*',
            })
            .then((result: any) =&amp;gt; {
              if (result.features.length &amp;gt; 0) {
                const keys = Object.keys(result.features[0].attributes);
                result.features.forEach((f) =&amp;gt; {
                  let feature = {};
                  feature['attachments'] = [];
                  keys.forEach((k) =&amp;gt; {
                    feature[k] = f.attributes[k];
                  });
                  data.push(feature);
                });
              }
            }).finally(() =&amp;gt; {
              resolve(data);
            })
        })
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-videos/queryfeatures-get-domain-description/m-p/1146585#M20</guid>
      <dc:creator>SteveRailsback</dc:creator>
      <dc:date>2022-02-22T17:33:16Z</dc:date>
    </item>
  </channel>
</rss>

