Getting information about the presentation form of class objects when creating: getCreationViewModel

The request is made along the path ``<server URL>/rest/<service name>/getCreationViewModel/<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/getCreationViewModel/class_text@develop-and-test

an object will be requested to represent objects of the class_text class when they are created in the develop-and-test namespace, an example response:

  { tabs: [ { caption: '', fullFields: [Array], shortFields: [] } ],
actions: null,
commands:
 [ { id: 'SAVE',
     caption: 'Save',
     visibilityCondition: null,
     enableCondition: null,
     needSelectedItem: false,
     signBefore: false,
     signAfter: false,
     isBulk: false },
   { id: 'SAVEANDCLOSE',
     caption: 'Save and close',
     visibilityCondition: null,
     enableCondition: null,
     needSelectedItem: false,
     signBefore: false,
     signAfter: false,
     isBulk: false } ],
siblingFixBy: null,
siblingNavigateBy: null,
historyDisplayMode: 0,
collectionFilters: null,
version: null,
overrideMode: null,
metaVersion: '2.0.7',
type: 'create',
className: 'class_text@develop-and-test',
path: '',
caption: '' }

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

/checking metadata service/# access meta class creation view model: getCreationViewModel