Hi, I have configure the Popup for the layer in the ArcGIS Pro and one of the field is using Arcade, and it is working to show dynamic attachments. The arcade script as below. It is working fine in ArcGIS Pro.
var layer = "https://somserver.com/server/rest/services/mylayer/myfeature_PT/MapServer/0/";
var attachs = Attachments($feature);
var acount = Count(attachs);
var html = '';
var foid = $feature.objectid;
for(var i=0; i < acount; i++){
var att = attachs[i];
var attoid = att.id;
var atturl = layer + foid + "/attachments/" + attoid
var attname = att.name
html = html + "<a href='" + atturl + "' target='_blank'>" + attname + "</a>" + '<br />';
}
return {
type : 'text',
text : html
}However, after the layer upload to our portal server, and I check the popup. The arcade expression code is empty.
