Getting information about the list form for representing class objects: getListViewModel

The request is made along the path <server URL>/rest/<service name>/getListViewModel/<class name>, where the class name is indicated with the namespace.

You can specify in the request: doc: additional parameters <meta_query_parameters>:

  • node
  • namespace
  • version

Query example:

https://localhost:8888/rest/meta/getListViewModel/class_text@develop-and-test

an object will be requested to represent objects of the class_text class in a list form in the develop-and-test namespace, an example response:

  { columns:
 [ { sorted: true,
     caption: 'Identifier',
     type: 1,
     property: 'id',
     size: 2,
     maskName: null,
     mask: null,
     mode: null,
     fields: [],
     hierarchyAttributes: null,
     columns: [],
     actions: null,
     commands: [],
     orderNumber: 10,
     required: false,
     visibility: null,
     enablement: null,
     obligation: null,
     readonly: true,
     selectionPaginated: true,
     validators: null,
     hint: '',
     historyDisplayMode: 0,
     tags: null },
   { sorted: true,
     caption: 'Text [1]',
     type: 1,
     property: 'text_text',
     size: 2,
     maskName: null,
     mask: null,
     mode: null,
     fields: [],
     hierarchyAttributes: null,
     columns: [],
     actions: null,
     commands: [],
     orderNumber: 20,
     required: false,
     visibility: null,
     enablement: null,
     obligation: null,
     readonly: false,
     selectionPaginated: true,
     validators: null,
     hint: '',
     historyDisplayMode: 0,
     tags: null },
   { sorted: true,
     caption: 'Multiline text [7]',
     type: 7,
     property: 'text_multilinetext',
     size: 2,
     maskName: null,
     mask: null,
     mode: null,
     fields: [],
     hierarchyAttributes: null,
     columns: [],
     actions: null,
     commands: [],
     orderNumber: 30,
     required: false,
     visibility: null,
     enablement: null,
     obligation: null,
     readonly: false,
     selectionPaginated: true,
     validators: null,
     hint: '',
     historyDisplayMode: 0,
     tags: null },
   { sorted: true,
     caption: 'Formatted text [8]',
     type: 8,
     property: 'text_formattext',
     size: 2,
     maskName: null,
     mask: null,
     mode: null,
     fields: [],
     hierarchyAttributes: null,
     columns: [],
     actions: null,
     commands: [],
     orderNumber: 40,
     required: false,
     visibility: null,
     enablement: null,
     obligation: null,
     readonly: false,
     selectionPaginated: true,
     validators: null,
     hint: '',
     historyDisplayMode: 0,
     tags: null } ],
actions: null,
commands:
 [ { id: 'CREATE',
     caption: 'Create',
     visibilityCondition: null,
     enableCondition: null,
     needSelectedItem: false,
     signBefore: false,
     signAfter: false,
     isBulk: false },
   { id: 'EDIT',
     caption: 'Edit',
     visibilityCondition: null,
     enableCondition: null,
     needSelectedItem: true,
     signBefore: false,
     signAfter: false,
     isBulk: false },
   { id: 'DELETE',
     caption: 'Delete',
     visibilityCondition: null,
     enableCondition: null,
     needSelectedItem: false,
     signBefore: false,
     signAfter: false,
     isBulk: true } ],
allowSearch: false,
pageSize: null,
useEditModels: true,
version: null,
overrideMode: null,
metaVersion: '2.0.7',
type: 'list',
className: 'class_text@develop-and-test',
path: '',
caption: '' }

The example in dnt: test/modules/rest/metadatasrv.spec.js

/checking metadata service/# access meta class list view model: getListViewModel