Configuring Model Views


Model views allow users to selectively display certain model elements from a complete model based on different business needs, as well as customize the display order and names of model elements. Application developers can differentiate and display various aspects of a model’s properties by defining model views during application development.

For example, for a comprehensive “car” model, the following model views can be defined:

  1. Basic Information View

    • Model type

    • Color

    • Production date

  2. Performance Parameters View

    • Maximum speed

    • Acceleration time (0-100 km/h)

    • Range

  3. Battery Information View

    • Battery capacity

    • Charging power

    • Remaining battery percentage

Application developers can display the car’s basic information view on the “Overview” page, performance parameters on the “Details” page, and battery information on the “Energy Dashboard” page in a new energy vehicle monitoring system. This approach improves the adaptability of the model across different interfaces while reducing application development complexity.


This file explains how to configure model views for a model.

Prerequisites


You need permission to edit models. If you don’t have the permissions, contact your OU administrator for access. For more information, refer to Model Management Permission Allocation.

Creating Model Views


1. In the Application Portal’s Developer Console, go to the Models page.

2. In the Models Created in This OU or Shared Models tab, select Edit to enter the configuration page for the target model.


Note

When editing model elements of a shared model, you need to click the custom Custom Configuration button in the top-left corner to switch to the custom configuration interface before making changes. The effective configuration of a shared model = custom configuration + unchanged parts of the original configuration.

3. Select Model Views, then configure the basic information in the pop-up window according to the following rules, and click Confirm when done.

  • Name: The name of the model view.

  • ID: The unique identifier of the model view.

Editing Model Views


  1. On the Model View page within the model details, click the button_model Configure button on the right of the target model view to enter the configuration page.

  2. Click the Add add button to the right of Sub-View, enter the following information in the pop-up window, and click OK:

    • Name: The name of the sub-view.

    • ID: The unique identifier of the sub-view.

  3. Click Add Elements, select the required model elements in the pop-up window, and click OK.

Adding Tags to Model Views


Adding tags to model views helps you quickly locate and categorize views. For example, you can add tags for views related to specific projects, making it convenient for applications to query and filter.


  1. On the Model View page within the model details, click the button_model Configure button on the right of the target model view to enter the configuration page.

  2. On the configuration page, click the edit Edit button next to Tags.

  3. In the pop-up window, click the + Add Tag button.

  4. Enter the key and value for the tag, and click OK when done.


Note

After adding tags, you need to publish the model for the tags to take effect in the system. Click the Publish button in the bottom-right corner of the model page to complete the publication.

Adding Tags to Elements in Views


When configuring model views, you can add tags to elements within the view for classification and querying purposes.


  1. On the Model View page within the model details, click the button_model Configure button on the right of the target model view to enter the configuration page.

  2. In the sub-view, select the target element, and click the edit Edit button on the right of the element.

  3. In the pop-up window, click the edit Edit button next to Tags to add tags to the element.

  4. After adding the required tags, click OK.


Note

After adding tags, you need to publish the model for the tags to take effect in the system. Click the Publish button in the bottom-right corner of the model page to complete the publication.