<?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: Form Calculate GetUser() Offline in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1185658#M3935</link>
    <description>&lt;P&gt;As far as I know, Portal() and GetUser() are the only functions that do not work offline now. We fixed several issues with feature sets and relationships with the 22.3 release so those should work offline now in all cases.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 18:13:45 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-06-23T18:13:45Z</dc:date>
    <item>
      <title>Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1166748#M3119</link>
      <description>&lt;P&gt;Has anyone had success calculating the username when offline?&amp;nbsp; Documentation says I should be able to use the layer.&amp;nbsp; Works testing but does not work in app.&lt;/P&gt;&lt;P&gt;var u = getUser($layer);&lt;BR /&gt;var fullName = u.fullName;&lt;BR /&gt;return fullName;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 17:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1166748#M3119</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-21T17:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1167691#M3154</link>
      <description>&lt;P&gt;A bump for this.&amp;nbsp;@Anonymous User&amp;nbsp;this was shown at the Dev summit along with calculating hidden fields.&amp;nbsp; Any help on either would be great.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1167691#M3154</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-25T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1167986#M3164</link>
      <description>&lt;P&gt;Can you try:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;GetUser(Portal('https://arcgis.com')).fullName&lt;/LI-CODE&gt;&lt;P&gt;This works for me online and offline. I can reproduce the issue when using $layer though, we'll have to look into that more.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 17:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1167986#M3164</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-26T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1167998#M3165</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I was using it via the portal before but that also didn't work with my code but did work online.&amp;nbsp; I will try this and report back.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 17:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1167998#M3165</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-26T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168013#M3166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;it is as I thought. There is a difference between offline and fully disconnected.&amp;nbsp; Your code does work offline but it assumes you still have some sort of connection to access the portal address.&amp;nbsp; If you have no cell or wifi it does not work.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 17:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168013#M3166</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-26T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168015#M3167</link>
      <description>&lt;P&gt;Oh I see, I just created the offline area but was still "connected". I see the original issue now. Seems like there's two issues here...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 17:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168015#M3167</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-26T17:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168162#M3174</link>
      <description>&lt;P&gt;Ok, so is this a bug and is there a workaround if we add editor tracking can we pull from that. I'd like to know as we will need to make changes on several deployments we had planned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 22:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168162#M3174</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-26T22:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168165#M3175</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73061"&gt;@CraigCheeseman&lt;/a&gt;&amp;nbsp; Yes there are two bugs that I logged internally:&lt;/P&gt;&lt;P&gt;1. $layer isn't wired up in the mobile apps (this was a late change to the form calculation Arcade Profile that didn't make the last release). This likely will be addressed with our June release - it seems like a quick fix. I don't know if this will work with GetUser($layer) when offline, we'll have to test it.&lt;/P&gt;&lt;P&gt;2. Portal() does not work in a disconnected scenario. This needs additional investigation from our team.&lt;/P&gt;&lt;P&gt;You can use editor tracking, to store the username of the person that created or edited the feature. Those fields are only set when the feature is submitted so they won't help you with any other calculations (since those run before submission).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 23:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168165#M3175</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-26T23:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168468#M3185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73061"&gt;@CraigCheeseman&lt;/a&gt;&amp;nbsp;@Anonymous User&amp;nbsp;,&lt;/P&gt;&lt;P&gt;EDIT: I just tested with an offline area and it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yet to test offline, but I was also struggling to get this to work in the FieldMaps app. Worked fine in the WebApp but not in the mobile app once editing. Having come across your post, I decided to test the following code:&lt;/P&gt;&lt;P&gt;var user = GetUser(FeatureSetByName($map,"FEATURE"), true)&lt;BR /&gt;var username = user.username&lt;BR /&gt;return username&lt;/P&gt;&lt;P&gt;I replaced $layer with FeatureSetByName and this worked in the FieldMaps app and in the Web App.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Elleni&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168468#M3185</guid>
      <dc:creator>ElleniFRogers</dc:creator>
      <dc:date>2022-04-27T18:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168476#M3186</link>
      <description>&lt;P&gt;Hi Elleni,&lt;/P&gt;&lt;P&gt;Thanks for the info.&amp;nbsp; I am not having success when fully disconnected.&amp;nbsp; It works in a downloaded map but when I turn off Wifi and Cell I see an error.&amp;nbsp; Could you verify you are fully disconnected?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168476#M3186</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-27T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168485#M3187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73061"&gt;@CraigCheeseman&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Hmm, that is strange. I can confirm I turned my phone to airplane mode, switched off wifi and cellular and it still works on the downloaded map. When I used $layer it didn't work, but by switching to the FeatureSetByName function it did. Can you paste your code with the FeatureSetByName function?&lt;/P&gt;&lt;P&gt;Elleni&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168485#M3187</guid>
      <dc:creator>ElleniFRogers</dc:creator>
      <dc:date>2022-04-27T18:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168490#M3188</link>
      <description>&lt;P&gt;I also see it work offline and disconnected. Nice idea &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/447631"&gt;@ElleniFRogers&lt;/a&gt;&amp;nbsp; !&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;GetUser(FeatureSetByName($map, 'GetUserTest')).username&lt;/LI-CODE&gt;&lt;P&gt;I also just tested an internal build that addresses the $layer issue, and that also works fully disconnected.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168490#M3188</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-27T18:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168524#M3191</link>
      <description>&lt;P&gt;Ok.&amp;nbsp; Thanks for confirming.&amp;nbsp; I used your code with obviously updating "Feature" to the correct value from my map.&amp;nbsp; I will double check that I didn't do anything wrong but it did return the correct value when testing in the Web Editor.&amp;nbsp; Just to confirm are you using Enterprise or AGO?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168524#M3191</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-27T20:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168528#M3192</link>
      <description>&lt;P&gt;Thanks Aaron, good to know.&amp;nbsp; I am on Android so I am having my iOS users test as this still only works when connected for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168528#M3192</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-27T20:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168714#M3204</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73061"&gt;@CraigCheeseman&lt;/a&gt;&amp;nbsp; It works for me in Android 22.1.2 and iOS 22.1.0 when using ad-hoc offline areas and being full disconnected.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 13:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168714#M3204</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-28T13:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168723#M3206</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20220428-094709_Field Maps.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40062i1681634485F0D70D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_20220428-094709_Field Maps.jpg" alt="Screenshot_20220428-094709_Field Maps.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Ok and this is using Enterprise or AGO?&amp;nbsp; I am using AGO.&amp;nbsp; This is my code:&lt;BR /&gt;&lt;BR /&gt;GetUser(FeatureSetByName($map,"NameOfLayerInForm")).fullname&lt;/P&gt;&lt;P&gt;and I am still seeing the red error when disconnected.&lt;/P&gt;&lt;P&gt;22.1.2 version as well.&amp;nbsp; This is really frustrating.&amp;nbsp; It works connected and then as soon as I disconnect it stops working and then if I reconnect it still will not work until I restart the app and reload the map.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 13:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168723#M3206</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-28T13:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168930#M3210</link>
      <description>&lt;P&gt;@Anonymous User&amp;nbsp;I verified with my field team that it didn't work for us on iOS either.&amp;nbsp; Can I share the map and data with you to see if it works for you?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168930#M3210</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-28T17:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168961#M3213</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73061"&gt;@CraigCheeseman&lt;/a&gt;&amp;nbsp; We're looking into this more, there's definitely something weird going on at least in some cases. I was able to reproduce the issue where it fails to calculate when disconnected. Sometimes even if I use a FeatureSet it fails just by using an offline area even though I'm still connected. I don't think it's necessary to share the map at this time since we have a map that reproduces it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 18:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168961#M3213</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-28T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168965#M3214</link>
      <description>&lt;P&gt;Thanks and good to know I am not crazy.&amp;nbsp; I have pulled this from deployment testing and will wait to hear back.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 18:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1168965#M3214</guid>
      <dc:creator>CraigCheeseman</dc:creator>
      <dc:date>2022-04-28T18:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Form Calculate GetUser() Offline</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1183160#M3861</link>
      <description>&lt;P&gt;@Anonymous User&amp;nbsp;Is there any update on this?&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;GetUser(FeatureSetByName($map,"NameOfLayerInForm")).fullname and it's not working even when I download a map for offline use (i.e. still connected to the internet, but offline map downloaded).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Using AGOL and Field Maps v 22.2.1 on Android.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/form-calculate-getuser-offline/m-p/1183160#M3861</guid>
      <dc:creator>DebHSF</dc:creator>
      <dc:date>2022-06-15T14:51:29Z</dc:date>
    </item>
  </channel>
</rss>

