Meta view - general part¶
Description¶
Meta view allows to set the desired attribute composition of the class to display on the form according to the view form (list view - list.json, create view - create.json, edit view - item.json) and to specify the overridden and (or) complemented properties for each individual attribute in the meta class of this attribute.
List view¶
List view allows to display the class objects in the form of a list.
JSON¶
{
"columns": [...],
"styles": {},
"actions": null,
"commands": [...],
"allowSearch": false,
"pageSize": null,
"useEditModels": true,
"version": null,
"overrideMode": null,
"filterDepth": 3
}
Field description¶
Field | Name | Acceptable values | Description |
---|---|---|---|
"columns" |
Columns | Array of objects | Columns or columns of class attributes, each of which is described by: doc:the attribute part of the view meta <meta_view_attribute>. |
"styles" |
Highlighting lines | Formula | In accordance with the terms of the formula, the columns in the table are colored in the specified color. |
"actions" |
Actions | Integer or Null | not used in current version |
"commands" |
Commands | Array of objects | The set of object operations. |
"allowSearch" |
Allowed search | Logical | Allows or denies displaying the search form. |
"pageSize" |
Number of objects per page | Positive integer | Specifies the number of objects on a single page by default. |
"useEditModels" |
Edit form for detalization | Logical | Allows or denies the use of the edit form for data detalization of a class object. |
"version" |
Version | String | Версия метаданных. |
"overrideMode" |
Override mode | 0 - Overlap | Sets the override mode of the views. |
1 - Override | |||
"filterDepth" |
Filter query depth in lists | Positive integer | Filter query depth in lists of objects. It equals 2, by default. |
Create and edit view form¶
Create and edit view form allows to create and edit the class objects.
JSON¶
{
"tabs": [
{
"caption": "",
"fullFields": [...],
"shortFields": []
}
],
"actions": null,
"commands": [...],
"siblingFixBy": null,
"siblingNavigateBy": null,
"historyDisplayMode": 0,
"collectionFilters": null,
"version": null,
"overrideMode": null
}
Field description¶
Field | Name | Acceptable values | Description |
---|---|---|---|
"tabs" |
Tabs | Объект | Allows creating of multiple pages of objects on one view form. |
"caption" |
Tab name | String | The name field of the "tabs" object will be displayed in the tab navigation bar. |
"fullFields" |
Full form of field | Array of objects | Object field "tabs" , the array contains attributes that should be displayed in full view, described according to: doc: attribute part of meta views <meta_view_attribute>. |
"shortFields" |
Short form of field | Array of objects | Object field "tabs" , the array contains attributes that should be displayed in short view, described according to: doc: attribute part of meta views <meta_view_attribute>. |
"actions" |
Actions | Integer or Null | not used in current version |
"commands" |
Commands | Array of objects | Set of commands of a class object. |
"siblingFixBy" |
Selection of related objects by | Array of strings | Enumeration of the collection attributes that will be used for selection of related objects. |
"siblingNavigateBy" |
Navigate to related objects by | Array of strings | Enumeration of the collection attributes that will be used to navigate to related objects. |
"historyDisplayMode" |
History display | Integer | Specify the format for displaying the history of object changes. |
"collectionFilters" |
Filtering collections | Array of objects | Select attributes from the collections by which the filtering will be performed. |
"version" |
Version | String | Версия метаданных. |
"overrideMode" |
Override mode | 0 - Overlap | Sets the override mode of the views. |
1 - Override |