Dynamically create command:RunWorkflowByUrlAndInputs hyperlinks using Arcade Expressions? Possible?
I've been trying to create command:RunWorkflowByUrlAndInputs hyperlinks from Arcade Expressions. Basically I want to be able to run a workflow from the resulting "popup" where the OID is passed to a workflow if the user clicks on one of the maptip hyperlinks. But from what I can tell Arcade and/or GE HTML 5 viewer removes the command:RunWorkflowByUrlAndInputs + url if it isn't an actual url.
Arcade Expression (create popup with from multiple related records)
var providers = FeatureSetByRelationshipName($feature, 'Transit_Provider', ['*'], true)
// Build the pop-up string by iterating through all related features
var popupString = '';
for (var provider in providers){
var url = 'command:RunWorkflowByUrlAndInputs?url=https://gis.dot.nd.gov/portal/home/item.html?id=5ef7a830c71b4dd5ac1aaa1a502853b9&objectid=' + provider.OBJECTID
Console(url)
popupString += '<' + 'p>' +
'<' + 'u>' + '<' + 'b>' + provider.Name + '<' + '/b>' + '<' + '/u>' + TextFormatting.NewLine +
//show cities serviced
'<' + 'a ' + 'href="' + url + '">' + 'Show Cities Served<' + '/' + 'a>'+
'<' + '/' + 'p>'
}
popupString = IIf(IsEmpty(popupString), 'No Transit Provider available in this County', popupString)
return popupString;
-
Hi. Did you ever solve this? I am attempting to do that same thing.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar