<?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 is not working in Web app builder in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250680#M6792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/277011"&gt;Pier-Philippe Labrie&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first question would be: what version of the developer version are you using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use the web map and create an application using the AGOL WAB, the link will work, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2019 13:08:56 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2019-05-09T13:08:56Z</dc:date>
    <item>
      <title>Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250677#M6789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I've wrote an expression with arcade in agol. The expression is a link to GoogleMap. So when you click on a feature it redirects you to a GoogleMap link with lat &amp;amp; lng issued from the geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the issue: when I deploy the application with WAB the expression no longer works and just displays the name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No link From WAB:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture from the application" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/446032_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;OK Link in arcGIS online:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture from the arcgis map" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/446054_Capture2.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 21:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250677#M6789</guid>
      <dc:creator>Pier-PhilippeLabrie</dc:creator>
      <dc:date>2019-05-07T21:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250678#M6790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is strange... It works just fine for me in both the Web Map and the Web AppBuilder:&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/446050_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the definition of the Arcade expression and configuration of the pop-up in the web map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 21:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250678#M6790</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-07T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250679#M6791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander, Here's the &lt;A _jive_internal="true" href="https://community.esri.com/thread/206955-how-can-i-get-xy-in-dec-degrees-from-a-poly-feat-serv-using-arcade#comment-737279"&gt;code&lt;/A&gt; I'm using to construct the link...you actually posted that &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I made a &lt;A href="https://www.youtube.com/watch?v=wm_qP-hK8Ag&amp;amp;feature=youtu.be"&gt;video&lt;/A&gt; capture to get all the context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I' m using WebAPP Builder for Developper to construct the app locally and then I deploy it on my server. So, when I'm working locally on my computer, the link created is actually pointing on localhost instead of pointing to googleMap, Then when I upload the app on the server it points to the root of the app (where the index.html file is located). &lt;A href="https://www.youtube.com/watch?v=wm_qP-hK8Ag&amp;amp;feature=youtu.be"&gt;You will see that in the video&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done link creation before but I would do it directly from the shapefile (with a field calculation) and then upload the shapefile in AGOL. and this works perfectly. Meanwhile I will try to create the app direct in the webAPP buildder within AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;//-----------------&lt;/P&gt;&lt;P&gt;function MetersToLatLon(mx, my) {&lt;BR /&gt; // Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum&lt;BR /&gt; // Fuente: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/&lt;BR /&gt; var originShift = 2.0 * PI * 6378137.0 / 2.0;&lt;/P&gt;&lt;P&gt;var lon = (mx / originShift) * 180.0;&lt;BR /&gt; var lat = (my / originShift) * 180.0;&lt;/P&gt;&lt;P&gt;lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);&lt;BR /&gt; return [lat, lon];&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var poly = Geometry($feature);&lt;/P&gt;&lt;P&gt;var result = "";&lt;BR /&gt;if (!IsEmpty(poly)) {&lt;BR /&gt; var pnt_centr = Centroid(poly);&lt;/P&gt;&lt;P&gt;var latlon = MetersToLatLon(pnt_centr.x, pnt_centr.y);&lt;/P&gt;&lt;P&gt;result = "https://www.google.ca/maps/dir//" + Round(latlon[0], 6) + ", " + Round(latlon[1], 6);&lt;BR /&gt;} else {&lt;BR /&gt; result = "";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//-----------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 12:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250679#M6791</guid>
      <dc:creator>Pier-PhilippeLabrie</dc:creator>
      <dc:date>2019-05-09T12:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250680#M6792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/277011"&gt;Pier-Philippe Labrie&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first question would be: what version of the developer version are you using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use the web map and create an application using the AGOL WAB, the link will work, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 13:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250680#M6792</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-09T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250681#M6793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander, So I'm&amp;nbsp;testing using the webAPP&amp;nbsp;that is within&amp;nbsp;AGOL....and it looks like it's working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, when this problem happened I was using&amp;nbsp;&lt;EM&gt;arcgis-web-appbuilder-2.4 ...&lt;/EM&gt;So I figure I should update this application since we are on &lt;A href="https://developers.arcgis.com/web-appbuilder/guide/xt-what-s-new.htm"&gt;V2.12 now&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you make it work with a new version of WAB for developper?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/447106_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 13:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250681#M6793</guid>
      <dc:creator>Pier-PhilippeLabrie</dc:creator>
      <dc:date>2019-05-09T13:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250682#M6794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/277011"&gt;Pier-Philippe Labrie&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried and I don't use the dev edition of WAB, but&amp;nbsp;since support for Arcade has only recently introduced, it is very likely that using an older version is the reason for it not working. Please upgrade and try again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 13:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250682#M6794</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-05-09T13:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression is not working in Web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250683#M6795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advise Xander, it works perfectly with the new 2.12 WebAPPbuilder for developper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was definetly a Version problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 14:30:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/arcade-expression-is-not-working-in-web-app/m-p/250683#M6795</guid>
      <dc:creator>Pier-PhilippeLabrie</dc:creator>
      <dc:date>2019-05-09T14:30:41Z</dc:date>
    </item>
  </channel>
</rss>

