| Back | Main view

IMiS/wClient - Changing the default view

Product:IMiS/wClient
Release:1.7.2110
Date:12/17/2021

Case: IMiS/wClient - Changing the default view

Description:

This example demonstrates changing the default view of entities list columns on the IMiS/wClient.

The default view settings for the columns of selected attributes are defined in the settings settings.json, where they can be defined in the elements collections.profiles and collections.views.

Below is a description of settings.json configuration for changing the default view.

settings.json

collections
- profiles: Collection of collection profiles.
- views: Collection of view items.

collections.profiles item
- id: Profile identifier.
- columns: Collection of displayed columns. The collection type can be object or string.

collections.profiles.columns item
- id: Attribute identifier.
- min_width: Minimum width of the table in px, where the column is displayed.
- width: Column width in %.

collections.views item
- archives: Collection of archive identifiers.
- profile: Profile identifier from collections.profiles.
- members: Collection of directory entities.
- classification_code: Collection of classification codes.
- context: Display context (optional). The set of values:
  - ARCHIVE,
  - MY_ENTITIES,
  - DRAFTS,
  - DIRECTORY,
  - REVIEWS,
  - EXPORT,
  - IMPORT,
  - DELETED,
  - DISPOSED,
  - QUEUE.
- editable: Defines whether the view can be edited. Default value: true. The set of values:
  - true: The user modifies the view which is saved to the user settings.
  - false: Disables editing the view.


Example of changing the default view

settings.json configuration has 4 collections profiles:
- global_profile has columns "sys:Title", "sys:Description", "sys:Significance", "sys:Opened", "sys:Owner", "sys:Keywords",
- supply_chain_management_profile has columns "sys:Title", "sys:Modified",
- responsive_profile has columns "sys:Title", "sys:Owner" (min width: 800 px, width: 10 %), "sys:SecurityClass" (min width: 800 px, width: 25 %), "sys:Keywords" (min width: 1000px, width 30 %),"sys:Category" (min width: 1100px),
- deleted_profile has columns "sys:Title", "sys:ClassificationCode", "sys:del:DateTime", "sys:del:Agent", "sys:del:Reason".

settings.json configuration has 4 collections views items:
- global_profile is used on all archives, all members and all contexts,
- supply_chain_management_profile is used on archive "iarc102s" and entity with classification code "C=33",
- responsive_profile is used on archive "iarc102s" and entities with classification code "C=14^F=2021-000681" and "C=33^C=0^F=2021-000001",
- deleted_profile is used on archive "iarc102s" and context "DELETED" and "DISPOSED" for "admin".

settings.json
{
  "url": "<IMiS/Storage Connector Services REST - URL>",
  "request_timeout": 240000,
  "collections": {
    "profiles": [
      {
        "id": "global_profile",
        "columns": [
          "sys:Title",
          "sys:Description",
          "sys:Significance",
          "sys:Opened",
          "sys:Owner",
          "sys:Keywords"
        ]
      },
      {
        "id": "supply_chain_management_profile",
        "columns": [
          "sys:Title",
          "sys:Modified"
        ]
      },
      {
        "id": "responsive_profile",
        "columns": [
          {
            "id": "sys:Title"
          },
          {
            "id": "sys:Owner",
            "min_width": 800,
            "width": 10
          },
          {
            "id": "sys:SecurityClass",
            "min_width": 800,
            "width": 25
          },
          {
            "id": "sys:Keywords",
            "min_width": 1000,
            "width": 30
          },
          {
            "id": "sys:Category",
            "min_width": 1100
          }
        ]
      },
      {
        "id": "deleted_profile",
        "columns": [
          "sys:Title",
          "sys:ClassificationCode",
          "sys:del:DateTime",
          "sys:del:Agent",
          "sys:del:Reason"
        ]
      }
    ],
    "views": [
      {
        "profile": "global_profile"
      },
      {
        "profile": "supply_chain_management_profile",
        "classification_code": [
          "C=33"
        ],
        "archive": [
          "iarc102s"
        ]
      },
      {
        "profile": "responsive_profile",
        "classification_code": [
          "C=14^F=2021-000681",
          "C=33^C=0^F=2021-000001"
        ],
        "archive": [
          "iarc102s"
        ]
      },
      {
        "profile": "deleted_profile",
        "context": [
          "DELETED",
          "DISPOSED"
        ],
        "archive": [
          "iarc102s"
        ],
        "members": [
          "admin"
        ]
      }
    ]
  }
}


Global view profile

Administrator uses view profile "global_profile".



Supply Chain Management profile

Administrator uses view profile "supply_chain_management_profile" on entity with classification code "C=33".



Deleted profile

Administrator uses view profile "deleted_profile".



Responsive profile (1140 px)

Administrator uses view profile "responsive_profile" on entitiy with classification code "C=14^F=2021-000681" and view width 1140 px.



Responsive profile (820 px)

Administrator uses view profile "responsive_profile" on entitiy with classification code "C=14^F=2021-000681" and view width 820 px, where Keywords and Categories columns are hidden.







Related Documents:

Database 'IMiS Knowledge database', View 'All Documents', Document 'IMiS/wClient 1.7.2110' IMiS/wClient 1.7.2110

| Back | Main view