Page 1 of 1

Notification Question

Posted: Fri Aug 07, 2009 12:07 pm
by ConvertFromOldNGs
by MichaelHill >> Mon, 8 Apr 2002 4:43:20 GMT

Afternoon All,

Not sure if this is the right forum for this but here goes.

My scenario is this. I have a window that contains a list of plans in it. If they double click it opens the selected plan in it's own window. If you double click on another plan it will open that in the same window. You also have the ability to right mouse click and select that the plan open in a new window.

So you dblclick on Plan1 which opens up in Window1 and right mouse click Plan2 and it opens in Window2. If I dblclick on Plan3 it opens up in Window2 as I would expect, but what I find in the debug log is that a usernotification event is being sent for both Window's, but only one causeEvent is being fired. If I open Window3 I'll get 3 usernotification events and so on.

An I missing something with these causeEvent and userNotification?

I have write statements around all the causeEvents to make sure that they aren't getting sent and what I expect to see is correct.

Anyone have any ideas.

Cheers

Michael Hill
Gallagher Group Ltd

Re: Notification Question

Posted: Fri Aug 07, 2009 12:07 pm
by ConvertFromOldNGs
by CarlRanson >> Mon, 8 Apr 2002 5:12:27 GMT
An I missing something with these causeEvent and userNotification?

Quite possibly.
I have write statements around all the causeEvents to make sure that they aren't getting sent and what I expect to see is correct.

Anyone have any ideas.

Its quite possible to have one cause event trigger more than one userNotify if you've registered in more than one place for the same event. Sounds like youre registering for events on the plan class rather than the instance in question in the window, but we'd need to see the code to be sure.

Can you post the code that is doing the beginNotification orbegin ClassNotification (probably form.load). Can you also post the code that is doing this causeEvent?

CR