solution.js icon indicating copy to clipboard operation
solution.js copied to clipboard

Can we determine or force a table name for features?

Open shoe913 opened this issue 4 years ago • 0 comments

When a service is created from a CSV or xlsx file, it has the ability to be overwritten.

f57dd7b4-d754-4fc3-baf9-a01c3ba8eaae

This feature service has an accompanying xlsx file which contains the data for the service. After templatization and deployment, this connection is lost and the overwrite capability goes away.

It appears this is occurring because the adminLayerInfo setting in the JSON doesn't contain a table name. See sample below.

{
  "adminServiceInfo" : {
      "adminLayerInfo" : {
        "tableName" : "db_15533.user_15533.POLICE_PERSONNEL_POLICE_PERSONNEL", 
        "geometryField" : null, 
        "xssTrustedFields" : ""
      }
  }
}

Is there a way for us to templatize this by either forcing a unique table name or reading the table name of the deployed xlsx file?

shoe913 avatar Sep 24 '20 20:09 shoe913