{
  "name": "Форма с таблицей",
  "preRun": [
    {
      "script": "meta-compile/scripts/meta-compile",
      "input": { "type": "DataProcessor", "name": "Таблица" },
      "args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
    },
    {
      "script": "form-add/scripts/form-add",
      "args": { "-ObjectPath": "{workDir}/DataProcessors/Таблица.xml", "-FormName": "Форма" }
    }
  ],
  "params": { "outputPath": "DataProcessors/Таблица/Forms/Форма/Ext/Form.xml" },
  "validatePath": "DataProcessors/Таблица/Forms/Форма/Ext/Form.xml",
  "input": {
    "title": "Просмотр данных",
    "elements": [
      { "table": "Данные", "path": "Данные", "changeRowSet": true, "titleLocation": "top", "height": 80, "heightInTableRows": 5, "headerHeight": 2, "footerHeight": 1, "currentRowUse": "SelectionPresentationAndChoice", "autofill": true, "multipleChoice": true, "searchOnInput": "Use", "markIncomplete": true, "settingsNamedItemDetailedRepresentation": false, "heightControlVariant": "UseHeightInTableRows", "maxRowsCount": 5, "autoMaxRowsCount": false,
        "viewStatusLocation": "None", "searchControlLocation": "None",
        "excludedCommands": ["Add", "Delete", "MoveUp", "MoveDown"],
        "commandBar": { "autofill": false, "children": [
          { "button": "ПанельОбновить", "command": "Обновить", "checked": true }
        ]},
        "contextMenu": { "children": [
          { "buttonGroup": "МенюГруппа", "children": [
            { "button": "МенюОбновить", "command": "Обновить" }
          ]}
        ]},
        "columns": [
        { "input": "Дата", "path": "Данные.Дата", "fixingInTable": "Left" },
        { "input": "Сумма", "path": "Данные.Сумма" },
        { "input": "Комментарий", "path": "Данные.Комментарий" }
      ]}
    ],
    "attributes": [
      { "name": "Объект", "type": "DataProcessorObject.Таблица", "main": true },
      { "name": "Данные", "type": "ValueTable", "useAlways": ["Сумма"], "columns": [
        { "name": "Дата", "type": "date", "useAlways": true, "view": false },
        { "name": "Сумма", "type": "decimal(15,2)", "edit": { "common": false, "roles": { "a1b2c3d4-1111-2222-3333-444455556666": true } } },
        { "name": "Комментарий", "type": "string(200)" },
        { "name": "Объект", "type": "AnyRef" },
        { "name": "Источник", "type": "CatalogRef" }
      ]}
    ],
    "commands": [
      { "name": "Обновить", "action": "ОбновитьОбработка", "currentRowUse": "Use", "table": "Данные" }
    ]
  }
}
