Arcade expression for pop-up works correctly in Web Map but not in VertiGIS Studio App
Hi All,
I am new to VertiGIS as well as a beginner when it comes to arcade. I have spent several days trying to configure a pop-up to function appropriately and finally got it to work in my web map but when I opened it in VertiGIS it did not work.
I have a field in a layer that contains a URL to documents stored in Laserfiche. However, some features do not have any documents so that field is blank. I originally just put the field as a hyperlink in the pop-up. It worked fine when there was a record, but if there was no value in the field it just opened the web map again.
What I want to happen is when a user clicks on a feature and there are no documents it states “No Documents Available” and when the field does contain a URL it provides a link to click on.
This is my arcade expression that works in the AGOL web map:
var attachment = $feature.LF_Report
var result = “Documents: No Documents Available”
if (!isEmpty(attachment)){
result = `<p>Documents : <a href="{LF_Report} ">Link</a>
</a></p>`
}
return {
type : "text",
text : result
}
Below is what it looks like when a site does/does not have documents in the web map.


However, when I click on a site in VertiGIS Studio it only displays “No Documents Available”

Being new to VertiGIS and arcade I am not sure where my issue is. Any advice would be greatly appreciated, thanks!!
Du måste logga in om du vill lämna en kommentar.
Kommentarer
0 kommentarer