3.29 featureTable "show" attachment link missing

156
0
08-26-2019 07:36 AM
danbecker
Occasional Contributor III

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?

0 Kudos
0 Replies