Show TOC

Replacing ComponentsLocate this document in the navigation structure

Prerequisites

You have opened a model that contains a component you want to replace. You have also already created the new component that you want to use instead.

Context

Visual Composer enables you to replace any reference to a modeled or coded component reference in a model with a reference to another component of the same type, without the need to modify or reconnect any part of the model.

Assuming that the interface of both components is the same, no further adjustments are required. However, if the component interfaces are different, then a dialog box opens listing any conflicts that exist.

Following are some scenarios in which this feature may be useful:

  • Replacing a coded service with another coded service (for example, you can replace a coded service with another one that provides additional functionality).

  • Replacing a modeled service with a coded service (for example, you can create a modeled service as a placeholder using the Service Component wizard, and when the coded service is ready you can replace the modeled service with the coded service).

  • Replacing a modeled composite view with a coded composite view (for example, you can use a nested composite view in your model, but then replace it with a coded composite view with more functionality that was created in Web Dynpro).

  • Recovering from an incomplete copy-paste operation (for example, you may copy and paste the elements of another component into your model, but the service component that you copied cannot be reused in a different development component, so it is pasted as an unconfigured element. You can then replace the unconfigured service component with a new service component.

Procedure

  1. Use the Search task panel to locate the new (replacing) component.
  2. Drag the new component from the Search task panel onto the Design board, over the component that you want to replace.
  3. When the component that you want to replace is highlighted on the Design board, drop the new component on top of it.

    The Replace Component dialog box opens, listing the ports and fields of the new component and any conflicts that may exist.

  4. Select the required ports and fields, and use the options in the Conflicts area to solve any conflicts, as needed.
  5. Click OK to continue. If there are still unresolved conflicts, a message is displayed and you can choose whether to continue.

Results

The selected component replaces the existing component in the model, using the existing data connections and configurations.