cancel
Showing results for 
Search instead for 
Did you mean: 

fire plug in wdDoBeforeNavigation

Former Member
0 Kudos

Why does SAP consider it bad programming style to fire plugs immediately in action handlers, and recommends to fire them in the wdDoBeforeNavigation method?

Accepted Solutions (0)

Answers (4)

Answers (4)

ThatSAPGuy
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Even in some of the SAP tutorial they fire from button action handlers

Regards

Ayyapparaj

Former Member
0 Kudos

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.