Select to view content in your preferred language

Making sense of data source profile variables when using them in Arcade?

96
1
Friday
JBH
by
Regular Contributor

I am trying to create an Arcade script to output a summary from a few Near Me widgets but I find the data source parameters hard to work with because they look something like this:

$dataSources["widget_544_output_proximity_8360612922529992-output"]
 
Does the string of numbers in this statement (8360612922529992) refer to something that I can somehow match to the layer? I am trying to print the name of the layer in my output and I can't tell what anything is when I add a data source from the profile variables. I have tried GetFeatureSetInfo but it returns null.
 
Currently, I am having to go back to connect my layers one by one to the text widget, after I create my corresponding Arcade statement for them, just so I can keep track of what is what, but it's not very efficient.
 
Thanks!
1 Reply
ShengdiZhang
Esri Regular Contributor

Hi @JBH ,

When adding an Arcade script, you'll see some existing code snippets that can help you locate the data source.

ShengdiZhang_0-1751852341720.png

However, we know that it can still be difficult to determine the correct one from the variables. We're planning to improve this process in the future.

Thanks,

Shengdi

0 Kudos