AnsweredAssumed Answered

Is there a way to determine if an event listener has already been created with a RowCreatedEvent (or Deleted, Changed)?

Question asked by fratin on Aug 9, 2019
Latest reply on Aug 12, 2019 by fratin

I've created an add in button that subscribes to a RowChangedEvent for each layer in a map.    If another layer is added to the map and the add in button is executed again,  each of the previous layers that already were subscribed will now have an additional event listener.  Is there a way to determine if an event listener (RowChangedEvent) is already associated with a layer so I can prevent a additional ones from being created?

 

Thanks for your help!

Frank

Outcomes