AnsweredAssumed Answered

[JSAPI 4.9 vs 4.8][Feature Layer] Related Fields in Popup is not Showing

Question asked by Justdoit011 on Nov 16, 2018

I have a ArcGIS portal item with a feature layer. It has predefined popup template with a related field "relationships/0/Point_Count_COMMON". 



I was trying to display this portal item using JSAPI v4.9. However, the "Count of Points COMMON" field in popup window is always empty when I opened the popup.



When inspected using Chrome F12 tool, I can see the HTTP Request for related layer info was canceled. Maybe it was the cause of the empty related field.



I also tested the same program with JSAPI v4.8. Everything works fine.



The source code is very simple:

var map = new WebMap({
    portalItem: { // autocasts as new PortalItem()
        id: "25307563a0e24c4d9b48ec47bb71cd2d"

var view = new MapView({
    map: map,
    container: "viewDiv"


Below is a running example: