0

Waiting for events

asked 2011-07-14 04:25:24 +0800

moloch gravatar image moloch
606 1 13

Hello,
is there a possibility to wait for all events before doing something.
For example i have an onChanging Event and only when this event is finished i want to save something.

greets and thanks for any help

delete flag offensive retag edit

6 Replies

Sort by » oldest newest

answered 2011-07-22 05:57:36 +0800

moloch gravatar image moloch
606 1 13

nobody has an idea?

link publish delete flag offensive edit

answered 2011-07-22 06:02:56 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

Sorry, no idea, could it be something about Event Queues?

link publish delete flag offensive edit

answered 2011-07-22 06:10:37 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

I believe your question has to do with the way you are posting the events. If you use the postEvent() method then the execution returns immediately and the event will be processed later. Use the sendEvent() method if you want to force the event to be processed before returning to the sender method.

/costas

link publish delete flag offensive edit

answered 2011-07-25 03:04:07 +0800

moloch gravatar image moloch
606 1 13

this is exactly what i do:

i have an textbox. the user enter this string "Müller". I dont want the "ü" in this string. So i use the onChanging Event where i replace the "ü" with "ue". That works! BUT when the user is fast and click save before the onChaning Event is fired then i have the problem. Maybe this will help more to understand my problem and to find a solution. please help
thanks

link publish delete flag offensive edit

answered 2011-07-25 07:13:51 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

My experience is that onChanging can easily be overtyped by someone since it's round tripping to the server. I think you're better off listening to onChange and process the entire string at once.

link publish delete flag offensive edit

answered 2011-07-26 02:36:28 +0800

moloch gravatar image moloch
606 1 13

thanks allot caclark! it works.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-07-14 04:25:24 +0800

Seen: 251 times

Last updated: Jul 26 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More