Show TOC

Procedure documentationCreating a Model and Development Component Locate this document in the navigation structure

 

You create a new model by selecting the model type, assigning the model a name, and choosing the location in which you want to save the model. If the development component in which you want to create the model does not exist, you can create a new development component in the local repository.

Prerequisites

If you are working with source control, the source control system has been configured appropriately. For more information, see Configuring Visual Composer to Work with NWDI.

Procedure

  1. Click the New button in the main toolbar, or choose   Model   New  . The Create New Model dialog box is displayed.

    Note Note

    You can also create a new service component within a component by dragging a Service Component from the Compose task panel onto the Design board. From the displayed context menu, choose New Service.

    You can also create a new composite view within a component by dragging a Composite View from the Compose task panel onto the Design board.

    More information: Introducing the Compose Task Panel.

    End of the note.
  2. In the Model Type pane, choose the type that you want to create, for example,

    • Composite View: A model of an application task, such as searching for and displaying data

    • Service Component: A single customized data service that contains one or more data services

    The options displayed depend on the Visual Composer kits that are installed on your Visual Composer server.

  3. In the Name field, enter a name for the model.

  4. From the Repository dropdown list, choose the repository type in which to store the model. You can choose from the following options:

    • Local Repository: Stores the model in a local repository with no source control. Models in the local repository can be accessed only by the user who created them.

    • Shared Repository: Stores the model in a shared location where it can be accessed by other modelers. Models saved in this location are managed using basic source control features (check in and check out). When you create a model in the shared repository, it is automatically checked out to you that so you can start working on it. This option is available only if you do not have a source control system installed and configured for use with Visual Composer.

    • Source Control Repository: Stores the model in the selected source control system. This option is available only if you have a supported source control system installed and configured for Visual Composer.

  5. In the Software component field, choose the software component in which you want to save the model.

    Note Note

    You cannot create a new software component from within Visual Composer.

    End of the note.
  6. In the Development component field, choose the location in which to save the model. If there are no development components in the dropdown list, or if you want to create the model in a different development component, you can create one in the local repository as follows:

    1. Click the New button next to the Development component field. The Create New Development Component dialog box is displayed.

    2. From the Master language dropdown list, choose the source language to be used in the components stored in the development component.

    3. In the Development component field, specify a name for the development component.

      Note Note

      A development component name can contain only lower-case ASCII letters, digits, slashes (/), and underscores (_), and must not start with a digit or a slash.

      Development component names cannot end with reserved Web Dynpro suffixes, such as _impl, or name segments, such as _comp.

      End of the note.
    4. Click OK. The new development component is created in the local repository and appears in the Development component field.

  7. Click OK.

Result

The new model opens in its own tab in Storyboard. If you chose to store the model in the shared repository or in the source control system, it is automatically checked out to you.