I'm trying to summarize Proposed Action Treatment acres using the Implementation Treatment polygon feature using arcade. I have a layer of Proposed Action Treatments and a layer for Implementation Treatment units. When I click on an Implementation Treatment unit I want the pop-up to summarize the Proposed Action Treatment Type acres (there can be multiple). I'm having issues with my result variables, they are not displaying values just the words I'm putting in. I feel like I'm close but ran out of time and brain power to troubleshoot. Any suggestion on how to get the data results to appear in my pop-up correctly? Below is how the expression appears in the pop-up. Unit 9 ( in yellow) has 4 Proposed Action Treatment types. These are what I'm trying to summarize in the pop-up but I'm just getting the words and not summaries.
Here is my arcade expression:
Solved! Go to Solution.
When using '${}' syntax, you have to use a back tick instead of a regular quote. This is called a template literal
Push(result, `${type} ---- ${Round(p, 2)}% or ${Round(a, 2)} acres`)
When using '${}' syntax, you have to use a back tick instead of a regular quote. This is called a template literal
Push(result, `${type} ---- ${Round(p, 2)}% or ${Round(a, 2)} acres`)
Thanks you! The back tick produced the result I needed!