on 10-25-2005 7:58 AM
Hi,
is it possible to fire an outbound plug in the component or custom controller?
Bye,
Chris
Hi Christoph,
You can fire outboundplugs of only the interface view from your component or custom controller. If you have defined an outbound plug in your interfaceView, you can fire it in your component controller like:
wdThis.wdGet<InterfaceViewController>().wdFirePlug<plug name>();
SAP recommends doing this inside the 'wdDoBeforeNavigation()' method. Please go through the comments for this particular method.
Hope this helps,
Best Regards,
Nibu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chris,
It is not possible, just curious what is the scenario where you would like to achieve this?
Regards,
Dharmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christoph,
As far as I know, there is no direct way to access a view from the component. When I have a similar requirement, I create an attribute in the default view to indicate which view is to be displayed and map it across to the component. Then from the component I set the value, and fire the corresponding plug inside the wdDoModify() of the default view.
I really wonder why SAP hasn't provided a direct method to choose the next view from within the component, even though webdynpro supports & recommends MVC architecture. If someone is aware of a better way to achieve the same, it would be very helpful if you could share the same.
Best Regards,
Nibu.
Doch!
Assuming that this code is part of <b>view controller</b> method:
final IWDAbstractViewInfo viewInfo
= ((IWDViewController)wdControllerAPI).getViewInfo();
final IWDOutboundPlugInfo plug
= viewInfo.findInOutboundPlugs( "<plug-name-here>" );
if ( null == plug )
{
/* handle invalid param, i.e. no such plug */
}
else
wdControllerAPI.firePlug
(
plug, Collections.EMPTY_MAP
);
Valery Silaev
EPAM Systems
You can fire the plugs between the views not btn the components.
Regards, Anilkumar
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.