Programmatically access HTML Popup in Layer Properties

693
2
09-12-2014 03:05 AM
Status: Open
Labels (1)
SimonKettle1
New Contributor II
I would be useful to have access to the HTML Pop-up function in the layer properties via arcpy. Perhaps via the arcpy.mapping module.
 
Parameters should include:
  • Turn feature on and off
  • Path to Table
  • Field Name of URL in Table
  • URL Prefix
  • Field
  • URL Suffix
Something like the following:
arcpy.mapping.HTMLPopup (layer, TurnOn, {Path_to_Table}, {Field_in_Table}, {URL_Prefix}, {URL_field}, {URL_Suffix})

layer = A variable that references a MapDocument or Layer object. = Object
TurnOn = Booloean to indicate on or off = Boolean
Path_To_Table = Path to table containing URL details. = string
Field_in_Table = Field in above table that contains the URL = string
URL_Prefix = String containing URL prefix (if this is used alone the URL defaults for the whole layer object) = string
URL_field = String referencing field in layer[0] object = string
URL_Suffix = String containing URL suffix = string
2 Comments
JohnDye
Perhaps an optional parameter for a XSL Stylesheet as well
KoryKramer

I realize that this is an old request from ArcMap, but thought that I'd post the capability made available in ArcGIS Pro through Python CIM access.  Here is the link to the HTML popup spec: https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMVectorLayers.md#CIMHtmlPopupFormat