Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10473

Re: navigation

$
0
0

Hi Praveen,

 

Yeah I understand what you are saying. I just kept the snippet to make sure we are on the same page.

We could probably call the windows op directly if we need not reuse it in multiple places.

 

Lets take the component BT115S_SLSO for example and check the view BT115S_SLSO/SlsOrdSR 

Here you have a OP called OP_NAVIGATE_DISPLAY

 

and if you check the event handlers

EH_ONBILLTO

EH_ONCONTACTs

 

They are calling the same op by passing a different data.

 

This is a kind of reuse which is done over here.

 

More over apart from this it gives us a clear understanding of how the navigation is happening if we have op's at view level.

If we call the windows plug directly in Event Handler the code might not be that readable.

 

I do not see any other reasons than this behind creating a separate method for op when the navigation is actually done trough windows plug.

 

If you have any points form your analysis do add them.

 

Regards

Vinod


Viewing all articles
Browse latest Browse all 10473

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>