Buffer Function in Arcade not honored in Web AppBuilder

1028
6
Jump to solution
01-03-2018 10:45 AM
PhilLarkin1
Occasional Contributor III

When using Buffer, a popup will not display a value in a Web AppBuilder App. However, it is shown in an AGOL map. Centroid(), which was released with Arcade 1.3, works properly.

Versions:

WAB Developer Edition 2.6 (JSAPI 3.22)

Arcade: 1.3 (JSAPI ??)

Example:

This will return the xmin value of the extent of a buffer. 

var geom = Geometry($feature)
var buf = Buffer(geom, 1, 'miles')
var ext = Extent(buf)

return ext.xmin‍‍‍‍‍

The resulting popup in AGOL is correct. It does not appear in WAB. 

Arcade Popup Missing

Kelly HutchinsXander Bakker‌  KEkenes-esristaff

0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

Hi Phil,

When using Buffer, a popup will not display a value in a Web AppBuilder App. However, it is shown in an AGOL map. Centroid(), which was released with Arcade 1.3, works properly.

 

Versions:

WAB Developer Edition 2.6 (JSAPI 3.22)

Arcade: 1.3 (JSAPI ??)

Arcade 1.3 is only integrated in JS API version 3.23. So if WAB Dev edition 2.6 uses JS API 3.22, there will be no official support for the functions new in Arcade 1.3. To clarify, this doesn't mean that all new functions released in 1.3 weren't present in the Arcade codebase in prior versions. Some were, but weren't documented or officially "released". For example, Centroid was likely included in the Arcade codebase prior to Arcade 1.3, but we hadn't documented it because it wasn't thoroughly tested. Other reasons may include wanting to release all geometry functions in the same release. In fact, there are some other geometry functions technically present in version 1.3 that we didn't "release" or document because we don't have valid use cases for them yet. They will likely come later as we expand Arcade's ability to access other features within the context of a single feature.

I hope this explanation helps.

View solution in original post

6 Replies
KristianEkenes
Esri Regular Contributor

Hi Phil,

When using Buffer, a popup will not display a value in a Web AppBuilder App. However, it is shown in an AGOL map. Centroid(), which was released with Arcade 1.3, works properly.

 

Versions:

WAB Developer Edition 2.6 (JSAPI 3.22)

Arcade: 1.3 (JSAPI ??)

Arcade 1.3 is only integrated in JS API version 3.23. So if WAB Dev edition 2.6 uses JS API 3.22, there will be no official support for the functions new in Arcade 1.3. To clarify, this doesn't mean that all new functions released in 1.3 weren't present in the Arcade codebase in prior versions. Some were, but weren't documented or officially "released". For example, Centroid was likely included in the Arcade codebase prior to Arcade 1.3, but we hadn't documented it because it wasn't thoroughly tested. Other reasons may include wanting to release all geometry functions in the same release. In fact, there are some other geometry functions technically present in version 1.3 that we didn't "release" or document because we don't have valid use cases for them yet. They will likely come later as we expand Arcade's ability to access other features within the context of a single feature.

I hope this explanation helps.

PhilLarkin1
Occasional Contributor III

Thanks for your reply.

It would be helpful to document what version of JS API is targeted per Arcade release in the release notes section of Arcade's doc page.

0 Kudos
KristianEkenes
Esri Regular Contributor

That's good feedback. I'll make a request for that.

RobertScheitlin__GISP
MVP Emeritus

Phil,

  When WAB Dev 2.7 is release (very soon). It is using JS API 3.23 and thus will support Arcade 1.3 methods.

PhilLarkin1
Occasional Contributor III

Soon, like 1st Quarter soon? Or soon like, this month soon?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Should be this month