laptop and a wrench

Bogue

With MOLE92QFENIM009615, MOLE layers do not evaluate a definition expression if the same expression is applied again.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM034277
EnvoiApril 15, 2008
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeC#
Version de correction9.2
StatutFixed

Solution de contournement

Check to see if the definition expression applied is the same or not. If it is same then set the definition expression on the layer to an empty string and then apply the new expression. Code below: string tempFilter = ""; tempFilter = ((IFeatureLayerDefinition)cachedGraphicFeatureLayer.FeatureLayer).DefinitionExpression; if (tempFilter.Trim() == filter.Trim()) { ((IFeatureLayerDefinition)cachedGraphicFeatureLayer.FeatureLayer).DefinitionExpression = string.Empty; ((IFeatureLayerDefinition)cachedGraphicFeatureLayer.FeatureLayer).DefinitionExpression = filter.Trim(); } else { ((IFeatureLayerDefinition)cachedGraphicFeatureLayer.FeatureLayer).DefinitionExpression = filter.Trim(); }

Étapes pour reproduire

ID de bogue: NIM034277

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement