<?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: Arcade Expression Editor: FeatureSets are Dropping M-Values in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expression-editor-featuresets-are-dropping/m-p/1180634#M3767</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/183291"&gt;@JustinReynolds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While m-values are not currently returned by the Map&amp;nbsp;Viewer api, runtime will properly evaluate Arcade expressions with m-values, so they should work in Field Maps,&amp;nbsp;even if you can't test them thoroughly in the Map Viewer. There are active discussions on our end around adding support so expression results will be consistent across the platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 15:05:48 GMT</pubDate>
    <dc:creator>ChrisDunn1</dc:creator>
    <dc:date>2022-06-07T15:05:48Z</dc:date>
    <item>
      <title>Arcade Expression Editor: FeatureSets are Dropping M-Values</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expression-editor-featuresets-are-dropping/m-p/1179911#M3745</link>
      <description>&lt;P&gt;It appears I have hit a limitation in the Arcade Editor and/or JS API.&amp;nbsp; When I drill down to the geometry of a feature in a feature set, vertice information only includes x, y information; m-values are dropped.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//...
var alignmentName = $feature["stationing_alignment"];
//...

//...
var sql = "alignment_name = @alignmentName";
var mapLayerName = "N1205410_Alignments_lrs_DEV";
var outFields = ['alignment_id', 'alignment_name'];
var record_dict = null;
    
console('   &amp;gt;&amp;gt;&amp;gt; Looking up alignment details...');

var fset = FeatureSetByName($map, mapLayerName, outFields);
var records = Filter(fset, sql);
var cnt = count(records);
console('      &amp;gt;&amp;gt;&amp;gt; Number of Records Found: ' + cnt);
if (cnt &amp;gt; 0) {
    for (var f in records) {
        // console (      &amp;gt;&amp;gt;&amp;gt; 'Has M': + Geometry(f).hasM)
        record_dict = f;
        break; // get only the first record
        }
} else {
    console('&amp;gt;&amp;gt;&amp;gt; No Records found for query ' + sql);
};
var geom = Geometry(record_dict)
console(geom)
//...&lt;/LI-CODE&gt;&lt;LI-CODE lang="markdown"&gt;&amp;gt;&amp;gt; Looking up alignment details...
      &amp;gt;&amp;gt;&amp;gt; Number of Records Found: 1
{"spatialReference":{"latestWkid":3857,"wkid":102100},
"paths":[[
[-9237699.298899999,4682788.039800003],[-9237625.7377,4682783.805399999],
[-9237576.0275,4682781.260700002],[-9237573.462399999,4682781.072500005],
[-9237540.4446,4682777.917100005],[-9237517.350399999,4682775.710100003],
[-9237393.996,4682755.3072],[-9237390.0657,4682754.7936],
[-9237343.735199999,4682750.335600004],[-9237299.7948,4682748.250200003],
[-9237183.7731,4682742.742800005],[-9237123.2472,4682741.048],
[-9237117.5243,4682741.168800004],[-9237037.671899999,4682746.786600001],
[-9236988.2461,4682751.907899998],[-9236890.3588,4682769.4789],
[-9236887.1254,4682770.154300004],[-9236861.6932,4682776.223099999],
[-9236855.3237,4682778.132700004],[-9236849.2127,4682780.754200004]...]]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, maybe this is across the board. Hitting the feature drops the measures as well... at least in what is returned.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;console(Geometry($feature))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 20:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expression-editor-featuresets-are-dropping/m-p/1179911#M3745</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2022-06-03T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression Editor: FeatureSets are Dropping M-Values</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expression-editor-featuresets-are-dropping/m-p/1180634#M3767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/183291"&gt;@JustinReynolds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While m-values are not currently returned by the Map&amp;nbsp;Viewer api, runtime will properly evaluate Arcade expressions with m-values, so they should work in Field Maps,&amp;nbsp;even if you can't test them thoroughly in the Map Viewer. There are active discussions on our end around adding support so expression results will be consistent across the platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 15:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/arcade-expression-editor-featuresets-are-dropping/m-p/1180634#M3767</guid>
      <dc:creator>ChrisDunn1</dc:creator>
      <dc:date>2022-06-07T15:05:48Z</dc:date>
    </item>
  </channel>
</rss>

