<?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>idea Add MapContext to Form Calculation and Constraint Arcade Profiles in ArcGIS Field Maps Ideas</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-ideas/add-mapcontext-to-form-calculation-and-constraint/idi-p/1180013</link>
    <description>&lt;P&gt;This is similar to $editcontext.editType.&lt;BR /&gt;&lt;BR /&gt;I'm not sure that MapContext is the correct name for this.&amp;nbsp; It could be connectivityContext, or networkContext, but let's go with MapContext for now.&lt;BR /&gt;&lt;BR /&gt;Add $mapcontext.mapState to the Form Calculation and Constraint Arcade Profiles.&amp;nbsp; It would return either "Online" or "Offline".&amp;nbsp; &amp;nbsp;I could write it to an attribute in my schema to store the state or use it to inform other actions.&lt;/P&gt;&lt;P&gt;Generally, I might want to know which map version was used or whether a user collected the data in an online map or offline map.&lt;/P&gt;&lt;P&gt;In the event that we have the ability to make web requests in the future, from within the mobile app or web map viewer, this would serve as an option to help to shut down any attempt to do so if we were offline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;This might just be a property of the existing $editcontext.&amp;nbsp; Perhaps $editcontext.editState (returns Online or Offline).&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 18:00:33 GMT</pubDate>
    <dc:creator>JustinReynolds</dc:creator>
    <dc:date>2022-06-04T18:00:33Z</dc:date>
    <item>
      <title>Add MapContext to Form Calculation and Constraint Arcade Profiles</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/add-mapcontext-to-form-calculation-and-constraint/idi-p/1180013</link>
      <description>&lt;P&gt;This is similar to $editcontext.editType.&lt;BR /&gt;&lt;BR /&gt;I'm not sure that MapContext is the correct name for this.&amp;nbsp; It could be connectivityContext, or networkContext, but let's go with MapContext for now.&lt;BR /&gt;&lt;BR /&gt;Add $mapcontext.mapState to the Form Calculation and Constraint Arcade Profiles.&amp;nbsp; It would return either "Online" or "Offline".&amp;nbsp; &amp;nbsp;I could write it to an attribute in my schema to store the state or use it to inform other actions.&lt;/P&gt;&lt;P&gt;Generally, I might want to know which map version was used or whether a user collected the data in an online map or offline map.&lt;/P&gt;&lt;P&gt;In the event that we have the ability to make web requests in the future, from within the mobile app or web map viewer, this would serve as an option to help to shut down any attempt to do so if we were offline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;This might just be a property of the existing $editcontext.&amp;nbsp; Perhaps $editcontext.editState (returns Online or Offline).&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 18:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/add-mapcontext-to-form-calculation-and-constraint/idi-p/1180013</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2022-06-04T18:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add MapContext to Form Calculation and Constraint Arcade Profiles</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/add-mapcontext-to-form-calculation-and-constraint/idc-p/1308480#M1315</link>
      <description>&lt;P&gt;This was just introduced in Arcade version 1.23 with the addition of the "GetEnviornment" function.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/debugging_functions/#getenvironment" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/debugging_functions/#getenvironment&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/version-matrix/#fn-6" target="_blank"&gt;https://developers.arcgis.com/arcade/guide/version-matrix/#fn-6&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As of the June 2023 AGO release, it not fully supported across all platforms.&amp;nbsp; It will likely not have support in Pro until 3.2 and Enterprise (AGE) until 11.2.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 21:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/add-mapcontext-to-form-calculation-and-constraint/idc-p/1308480#M1315</guid>
      <dc:creator>JustinReynolds</dc:creator>
      <dc:date>2023-07-16T21:17:25Z</dc:date>
    </item>
  </channel>
</rss>

