Run Arcade Script and Set Feature Popup
I'm trying to format a Feature Popup in a workflow with Arcade (the Popup from my Workflow needs to match the formatting of the web map popup). I'm new to Workflow 5, and honestly I'm used to ESRI documentation where there are lots of samples for reference to get moving in the right direction and learn from.
Attached is the workflow where I'm trying to use Arcade. Specifically in the Run Arcade Script and Set Feature Popup activities; I'm not sure if I've correctly formatted the Run Arcade Script, or if I can actually "call" the Run Arcade Script results within the Set Feature Popup.
Here's my Run Arcade Script activity content (just trying to multiply the decimal value from the foodDrugTaxRateInterstate field in my data by 100):
renderer.valueExpression = '
var value1 = $query1.results.features.fooddrugtaxrateinterstate;
var value2 = 100;
var expr0 = $value1 * $value2
return expr0
';
Here's my Set Feature Popup activity content:
={title: "{NAME}",description: "<table class='attrTable' cellpadding='0px' cellspacing='0px'><tbody><tr valign='top'><td class='attrName'>FIPS Code: </td><td class='attrValue'>{JurisdictionFIPSCode}</td></tr><tr valign='top'><td class='attrName'>City Rate: </td><td class='attrValue'>{$arcadeScript1.result}</td></tr><tr valign='top'><td class='attrName'>State Rate: </td><td class='attrValue'>{StateRate}</td></tr><tr valign='top'><td class='attrName'>Total Rate: </td><td class='attrValue'>{StateRate}</td></tr></tbody></table>"}
Suggestions or samples where folks have done this or something similar before are appreciated. Thanks.
-
Perhaps I need to add a Create Value activity after the Run Arcade Script activity, and pass that value into the Set Feature Popup activity? I've tried a couple versions of that but it doesn't work either.
Any help regarding Arcade within Geocortex Workflows is greatly appreciated. Thanks.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar