Show TOC

Procedure documentationSetting Up the Project Locate this document in the navigation structure

 

In this step, you perform the initial steps of creating your wizard component project and its parts.

Procedure

  1. Create a Web Dynpro development component.

  2. Set dependencies to the following DCs (SC listed in parentheses):

    1. tc/ep/admin/wd/api (EP-WDC)

    2. tc/ep/admin/api (EP-PSERV)

    3. tc/ep/pb/wd/api (EP-WDC)

  3. Create a new component.

    A view, window and interface view are automatically created.

  4. Create a new window called IWizard.

  5. Implement the IWizard component interface definition (package com.sap.portal.adminstudio.iwizard) as follows:

    1. Right-click Implemented Interfaces and select Add.

      The Implement Component Interfaces window opens.

    2. 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.

    3. 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 Note

    After implementing the IWizard component interface definition, the project produces compilation errors until you implement the methods defined in the interface.

    End of the note.
  6. Add an IWFContainer component usage, as follows:

    1. Right-click Used Components and select Add Used Component. The New Web Dynpro Component Usage dialog opens.

    2. In the Name textbox, enter IWFContainer as the name for the used component.

    3. Next to the Used Web Dynpro Component field, click Browse and select IWFContainer, and then click OK.

    4. Click Finish.

  7. Perform the following In the window created automatically with your component:

    1. Embed the IWFContainer interface view, as follows:

      1. Delete the embedded view.

      2. Right-click and select Embed view.

      3. Select Embed Interface View of a Component Interface and click Next.

      4. Select WF_ContainerInterfaceView from the IWFContainer component.

      5. Click Finish.

    2. Create an instance of the IWFContainer component, as follows:

      1. In the window's Properties view, add the IWFContainer component usage and component interface controller as required controllers.

      2. Add the following code to the wdDoInit() method:

        Syntax Syntax

        1. public voidwdDoInit()
          {
            //@@begin wdDoInit()
            WizardFWUtils.createFWUsage(wdThis.wdGetIWFContainerComponentUsage());
            //@@end
          }
          
        End of the code.
  8. Add the following code to the wdDoInit() method of the IWizard window:

    Syntax Syntax

    1. public voidwdDoInit()
      {
        //@@begin wdDoInit()
        WizardFWUtils.activateFWUsage(wdThis.wdGetIWFContainerComponentUsage());
        //@@end
      }
      
    End of the code.
  9. Proceed to the next step Creating and Embedding Panes.