In fieldmaps, when I view a related table's pop up, I would like to see more than one attribute for each record. See a screenshot of a related table popup below, with some mark-up to explain what I'd like to see:
Is something like this achievable?
Solved! Go to Solution.
Hi @vegmap ,
You can actually achieve what you're describing by configuring a title on the related table when you are setting up the map in Map Viewer. The list that is presented in the related records view shows the title of each popup for the record, so if you use field substitution to bring fields into the title, whatever you configure will show up in that list.
I hope that helps!
Chris
Yes and no. In that specific popup of the related table itself, you only see the configured display field for records in that table.
If you wanted to show multiple attributes for that table on the main popup for the clicked feature, you can do that with an Arcade popup element. Might look like this:
var names = FeatureSetByRelationShipName(
$feature,
'relname',
['name', 'number', 'attribute']
)
// use a list of names to build inner HTML
var name_list = []
for (var n in names) {
Push(
name_list,
`<tr><td>${n['name']}</td><td>${n['number']}</td><td>${n['attribute']}</td></tr>`
)
}
// build full HTML
var tableHTML = `<table>
${Concatenate(name_list, ' ')}
</table>`
return {
type: text,
text: tableHTML
}
Hi @vegmap ,
You can actually achieve what you're describing by configuring a title on the related table when you are setting up the map in Map Viewer. The list that is presented in the related records view shows the title of each popup for the record, so if you use field substitution to bring fields into the title, whatever you configure will show up in that list.
I hope that helps!
Chris
Yup. You could use the pipe symbol ("|") as your separator that may look like the following:
Fantastic info! Thanks all!