I have a Python AddIn Combobox to select a value from the drop-down list. This value changes the definition query of the layers in mxd. This works fine for "normal" feature classes, not for a mosaic dataset. On the Layer Properties dialog box the DefintionQuery tab is empty.
layer_lst = arcpy.mapping.ListLayers(arcpy.mapping.MapDocument("CURRENT"))
for layer in layer_lst:
if layer.name in ('dted_hillshade','dted_dem6x6') and layer.supports("DEFINITIONQUERY"):
layer.definitionQuery = "\"NAME\"=\'000E00N.DT2\'"
arcpy.RefreshActiveView()
Does anyone one know a workaround to set a correct Definition query for mosaic dataset?