on 02-18-2008 9:43 PM
Why does SAP consider it bad programming style to fire plugs immediately in action handlers, and recommends to fire them in the wdDoBeforeNavigation method?
Jef-
Yes, it is recommended that you fire your navigational plugs in the wdDoBeforeNavigation() method. This is to do with the Web Dynpro phase model.
Application errors can essentially happen at two times - before or after the navigation queue is processed. The best place to check for any application errors before any events are added to the navigation queue is in the wdDoBeforeNavigation() method. The best place to check for application errors after the navigation queue is processed is the wdDoPostProcessing() method.
Cheers-
Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jef,
I guess you are talking about navigational plugs. The reason is that these plugs are called unconditionally so even in case of errors the plug will be called and executed.
Jeschael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Even in some of the SAP tutorial they fire from button action handlers
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Never heard that one before....doesn't seem logical because for the wdDoBeforeNavigation a server round-trip is required. That round-trip will only happen when an event or actions is triggered.
So....I have no idea. Doesn't seem correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.