Select to view content in your preferred language

Arcade Dashboard (data expression) - Entreprise 11.0

889
2
Jump to solution
08-24-2022 08:58 AM
Arnaud_Leidgens
Regular Contributor

Hello Everyone !

How can I use Arcade to create custom expressions to be used with data driven elements (indicators, charts, etc). I understand that the global variables are not available here, but I'm already not able to make it work with FeatureSetByPortalItem. Am I missing something ? Thank you.

 

var p = "https://arcgis.xxx-group.com" ;
var item_id = "102118ab4f764xxxafda659ad6a7d335";
var layer_id = 0 ;

var fs = FeatureSetByPortalItem(Portal(p), item_id, layer_id, ["yop"], false)
 Execution Error:Unable to load https://arcgis.xxx-group.com/sharing/rest/portals/self?f=json&culture=en status: 404

 

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

Maybe try appending "/portal" to the URL?

- Josh Carlson
Kendall County GIS

View solution in original post

2 Replies
jcarlson
MVP Esteemed Contributor

Maybe try appending "/portal" to the URL?

- Josh Carlson
Kendall County GIS
Arnaud_Leidgens
Regular Contributor

Thank you Josh. Now that I have a FeatureSet, how can I leverage my few fields ? I just need an expression to caculate a new value for each feature based on 2 other fields (ex: y = a/b), so I can use it with a chart element. Without the global variables, I'm a bit lost. Should I loop through the FeatureSet ? Thank you.

0 Kudos