Setting the Suspensibility Application Property
- In the Web Dynpro Explorer, navigate to your application and double-click to open it.
- Choose the Application properties tab and then the Add pushbutton. The New Application Property wizard appears.
- Under Select Type, select Predefined and then choose Browse…
- Choose Suspensibility and confirm with OK.
- Choose the value true and confirm by choosing Finish.
Creating the Suspend Plug
- In the Web Dynpro Explorer, navigate to your InterfaceView and double-click to open it.
- Choose the Plugs tab and then New next to the list of Outbound Plugs. The New Outbound Plug wizard appears.
- Enter a name such as MySuspendPlug, select Suspend as the type and confirm with Finish. If you now choose MySuspendPlug from the list of Outbound Plugs, the parameter Url of the string type is displayed in the parameter list.
Creating the Resume Plug
- Choose New next to the list of Inbound Plugs. The New Inbound Plug wizard appears.
- Enter a name such as MyResumePlug , select Resume as the type and confirm with Finish.
Firing the Suspend Plug
To be able to fire the suspend plug from within a view, you must define the controller usage.
- In the Web Dynpro Explorer, navigate to the view from within which you want to switch to the external application and double-click to open it.
- Choose the Properties tab and then the Add pushbutton next to the list of Required Controllers. The Select new required controller(s)window is displayed.
- Select the InterfaceView of your application and confirm with OK.
- Save your data by choosing Save.
- Switch to the Implementation tab and go to the method or action in which you want to fire the suspend plug.
- Enter the following code here:
wdThis.wdGet<window name>InterfaceViewController().wdFirePlugMySuspendPlug();