Select to view content in your preferred language

Create a link with Arcade based on an (1:M relation) , without reopening the same Webmap.

507
0
06-25-2023 10:30 PM
Labels (1)
Manniej
New Contributor III

Hello World,

Based on the a related (1:M) table, Enterprise 10.9.1.  I need to define the link to navigate to the source application.  

So I do get X (based on available names) separate bullets with links. If I copy/paste the link it is working. But If I click it, to start it within the PopUp, it will open the current WebMap again. 

Current result:

Manniej_1-1687757166286.png

I do have a feeling that I still need the concatenate somehow, but I do not get it fit in. If I use it at the end, it will cluster the multiple links again.  

var relatedtabel = FeatureSetByRelationshipName($feature,"XXXXX.SourceTable",["IDfield"]);
console (relatedtabel)

var related_results = [];
for (var row in relatedtabel){
    push(related_results,"FirstStaticPartOfTheLink" + row.IDfield + "SecondStaticPartOfTheLink");
    
}
if(Count(related_results) == 0){
    return "No Info" 
}

var apple = slice(related_results);
return apple; 

 Thank you in advanced. 

0 Kudos
0 Replies