In this step, you perform the initial steps of creating your wizard component project
and its parts.
Procedure
- Create a Web Dynpro development component.
- Set dependencies to the following DCs (SC listed in parentheses):
- tc/ep/admin/wd/api (EP-ADMIN)
- tc/ep/admin/api (EP-RUNTIME)
- tc/ep/pb/wd/api (EP-RUNTIME)
- Create a new component.
A view, window and interface view are automatically created.
- Create a new window called IWizard.
- Implement the IWizard component interface definition (package
com.sap.portal.adminstudio.iwizard) as follows:
- Right-click Implemented Interfaces and select
Add.
The Implement Component Interfaces window
opens.
- Click Add, select the IWizard interface, and click
OK.
IWizard is now displayed as an implemented interface. The component
interface view of IWizard is displayed, as well as all the current windows. The
IWizard window is automatically set to implement the component interface
view.
- Click Finish.
The
Implementation Results window is displayed,
which shows all the windows, interface views, methods and other objects that
are added to the project as a result of implementing IWizard.
Note After
implementing the IWizard component interface definition, the project
produces compilation errors until you implement the methods defined in the
interface.
- Add an IWFContainer component usage, as follows:
- Right-click Used Components and select Add
Used Component.
The New Web Dynpro Component Usage dialog
opens.
- In the Name textbox, enter
IWFContainer as the name for the used
component.
- Next to the Used Web Dynpro Component field, click
Browse and select IWFContainer , and then click
OK.
- Click Finish.
- In the window created automatically with your component, embed the IWFContainer
interface view, as follows:
- Delete the embedded view.
- Right-click and select Embed view.
- Select Embed Interface View of a Component Interface
and click Next.
- Select WF_ContainerInterfaceView from the
IWFContainer component.
- Click Finish.
- Create an instance of the IWFContainer component, as
follows:
- In the window's Properties view, add the IWFContainer component usage and
component interface controller as required controllers.
- Add the following code to the wdDoInit() method: