Creating a view by using existing style

You can construct an empty view by using an existing style in a view. You can also create a view from existing view along with the style that is defined. It helps you to build a view quickly and with fewer efforts for specifying the node definitions.

About this task

The following procedure explains how you can reuse a style across the different views.

Procedure

  1. Create an empty view. In the main menu, go to Views > Create view.
  2. In the Create a view window, specify the view name, click Create an empty view, and select a style from the Style name list.
    view_from_existing_style
    Note: When you create a new empty view, the default value of Style name list is No style. It indicates that no style is applied to the view.
  3. Click Next > Finish, and view opens in the view editor.
    Remember: When you create a view by using an existing style, you must drag the same artifact on the view canvas for which the formatting is defined in the existing style. Otherwise, you can see a blank view with no artifacts.

Creating a view by using existing view and style

About this task

The following procedure explains how you can reuse a view with defined style across the different views.

Procedure

  1. Create a view. In the main menu, go to Views > Create view.
  2. In the Create a view window, specify the view name, and click Create a view from an existing view.
    ../images/view_from_existing_view.jpg
    Note: The default value of Style name list is No style. It indicates that no style is applied to the view.
  3. Click Select. The Select a view window opens.
  4. Select the required view from the My views or Shared views folder, and then click Ok.
    view_from_existing_view
  5. Click Next > Finish, and view opens in the view editor.
    View authors can use an existing style to create a view.
    Important: When you create a view by using an existing style and other users update the style later, the following confirmation message is shown when you open the view in the View and Edit mode:

    Style used in the view has been modified. Do you want to continue with the latest style changes?

    Click Ok to continue.

    Click Cancel to retain earlier style changes.

    For example, you created View 1 by using Style 1 and one of the team members update the Style 1 later. The preceding message is displayed when you open the View 1 after style updates.
    To reduce the number of clicks and check whether the selected style is updated, the Style update check checkbox is added in the View properties section of the view. It checks for modifications that are done to the selected style and provide an opportunity to update the view with the latest style changes.
    style_update_check
    When you create a view, the Style update check checkbox is selected by default.
    • When you open a view and if the Style update check checkbox is selected, the selected style is checked for the updates. Thus, the confirmation message is displayed only if the style is updated. You can continue with applying the updated style changes by clicking Ok. Otherwise, click Cancel to load the view without applying the latest style changes.
    • When you open a view and if the Style update check checkbox is not selected, the selected style is not checked for the updates. Thus, the view is loaded without showing the confirmation message irrespective of the style updates. Hence, the view is loaded without applying the latest style changes.