Hi all,
I am having issues loading up relationships' data on popups after loading up a web map. The Feature Layer and the related table are both in the Web Map.
webmap.when(() => {....
const featureLayer = webmap.layers.getItemAt(0);
const flpopup = featureLayer.popupTemplate;
flpopup.title = "test";
flpopup.content = [
// Add FieldContent to popup template.
{
type: "fields"
},
{
type: "relationship",
// The numeric ID value for the defined relationship on the service.
// This can be found on the service.
relationshipId: 0,
description:
"Test related",
// Display two related fire features in the list of related features.
displayCount: 2,
title: "Test"
}
]
console.log(flpopup)
Relationships are supposed to show here
Relationships show fine on Enterprise but not here.
Any idea why?
Thanks, Alex