Announcements
I to create an X++ class that will listen for calls to say the logInsert class method.
There doesn't seem to be very much around thins in Dax 2009
Thanks
*This post is locked for comments
What exactly do you want to show?
You surely know how to call a method from logInsert(). About observer, you could store a collection of objects (implementing some common interface) and when the event is fired, you would iterate through them and call a method on each object. The observed object would expose methods for subscribing and unsubscribing (i.e. adding and removing objects from the collection of listeners). But don't do it if you don't need such flexibility - I simply don't know your requirements.
Thanks for getting back to me Martin.
Would you be able to provide me with an example?
You'll have to change the method to notify your class. If you want to be able to subscribe and unsubscribe from the notification, you can implement the Observer pattern.
André Arnaud de Cal...
293,323
Super User 2025 Season 1
Martin Dráb
232,195
Most Valuable Professional
nmaenpaa
101,158
Moderator