laptop and a wrench

Bug

IEditEvents::OnSelectionChanged event is not fired with a programmatic feature selection by an attribute change of selection.

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM031253
EingereichtJanuary 11, 2008
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
ProgrammspracheVBA
StatusWill Not Be Addressed

Zusätzliche Informationen

No Public Explanation

Workaround

The client should be aware that it is necessary to call the SelectionChanged() method on the ISelectionEvents interface of the Map in order to force it to fire the event to the Editor (and other clients). Additionally it is not necessary to call the IFeatureSelection::SelectionChanged() method on the layer, as this is called internally by IFeatureSelection::SelectFeatures()Code was updated in the MXD at the test data path and saved as OnSelectionChanged_CORRECTED.mxdUpdated Code Dim pMapSelectionEvents As ISelectionEvents Set pMapSelectionEvents = pMap ... '''''''''''''''''''''''''''''''''''''''''''''' 'Make the query filter Set pQueryFilt = New QueryFilter pQueryFilt.WhereClause = "Sub_region = 'S Atl'" 'Perform the selection and refresh the view Set pFeatSel = pEditLayers.CurrentLayer pFeatSel.SelectFeatures pQueryFilt, esriSelectionResultNew, False pMapSelectionEvents.SelectionChanged Debug.Print m_pEditor.SelectionCount '''''''''''''''''''''''''''''''''''''''''''''' 'Refresh pMxDoc.ActiveView.PartialRefresh esriViewGeography, Nothing, Nothing

Schritte zur Reproduzierung

Bug-ID: NIM031253

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln