<?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: Getting the geometry from a DataRecord in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1526897#M14493</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/824825"&gt;@tzhaigeo&lt;/a&gt;, please use the returnZ and returnM in your query parameters. We don't doc it, but it should support using these two parameters.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 01:39:31 GMT</pubDate>
    <dc:creator>YueyangLi</dc:creator>
    <dc:date>2024-08-26T01:39:31Z</dc:date>
    <item>
      <title>Getting the geometry from a DataRecord</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1185414#M4648</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am building an ExB app with a custom widget.&lt;/P&gt;&lt;P&gt;In the widget I have a FeatureLayerDataSource with a single record in it (its actually a filtered dataview). I am trying to get the geometry of that feature but everything I tried returns null. I have traced the issue back to getting the dataRecord from the dataSource. I have tried the following commands and they all return a populated attribute object but a null geometry property for the feature object in the returned dataRecord:&lt;/P&gt;&lt;P&gt;dataSource.getRecord(0)&lt;/P&gt;&lt;P&gt;dataSource.getRecord(0) as FeatureDataRecord&lt;/P&gt;&lt;P&gt;dataSource.getRecords()[0]&lt;/P&gt;&lt;P&gt;dataSource.getRecordsWithSelection()[0]&lt;/P&gt;&lt;P&gt;Can someone assist me with getting the geometry from a record in a dataSource and/or can this be confirmed as a bug?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 11:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1185414#M4648</guid>
      <dc:creator>MarkJTurnbull</dc:creator>
      <dc:date>2022-06-23T11:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the geometry from a DataRecord</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1185499#M4650</link>
      <description>&lt;P&gt;Double-check the query parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
  returnGeometry: true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It defaults to false.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 13:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1185499#M4650</guid>
      <dc:creator>DougLogsdon2</dc:creator>
      <dc:date>2022-06-23T13:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the geometry from a DataRecord</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1185862#M4663</link>
      <description>&lt;P&gt;Please make sure returnGeometry of your query params is true, and get geometry:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;dataSource.getRecords()[0].getGeometry()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 02:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1185862#M4663</guid>
      <dc:creator>YueyangLi</dc:creator>
      <dc:date>2022-06-24T02:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the geometry from a DataRecord</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1526490#M14478</link>
      <description>&lt;P&gt;There is a problem with .getGeometry(), that is: it does NOT return the Z and M values! I don't see any documentation specifying where we can set: returnZ: true and/or returnM: true.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 15:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1526490#M14478</guid>
      <dc:creator>tzhaigeo</dc:creator>
      <dc:date>2024-08-23T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the geometry from a DataRecord</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1526897#M14493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/824825"&gt;@tzhaigeo&lt;/a&gt;, please use the returnZ and returnM in your query parameters. We don't doc it, but it should support using these two parameters.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 01:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getting-the-geometry-from-a-datarecord/m-p/1526897#M14493</guid>
      <dc:creator>YueyangLi</dc:creator>
      <dc:date>2024-08-26T01:39:31Z</dc:date>
    </item>
  </channel>
</rss>

