AnsweredAssumed Answered

3.29 featureTable "show" attachment link missing

Question asked by dbecker88 on Aug 26, 2019

Using the FeatureTable without a map example, I just added the IdentityManager reference and changed the featureLayer URL to a secured feat. service on our server.This is a portal hosted feature service.

 

var map;

    require([
      "esri/layers/FeatureLayer",
      "esri/dijit/FeatureTable",
      "esri/IdentityManager",
      "dojo/dom",
      "dojo/parser",
      "dojo/ready",
    ], function (
      FeatureLayer, FeatureTable,esriId,
      dom, parser, ready
    ) {
      parser.parse();
      ready(function(){
        // Create the feature layer
        var myFeatureLayer = new FeatureLayer("https://ourserver/services/Hosted/testDB/FeatureServer/0", {
          mode: FeatureLayer.MODE_ONDEMAND,
          outFields:  ["*"],
          visible: true,
          id: "fLayer"
        });

        myTable = new FeatureTable({
          featureLayer : myFeatureLayer,
          showGridMenu: true,
          showAttachments: true,
        }, "myTableNode");

        myTable.startup();
      });
    });

 

Everything works, but I can't get the attributes to say "Show (1)" in the below column. If you click on the (0) the attribute dialog is displayed and you can download the attachment.

 

 

Anyone know how to fix this?

Outcomes