mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-26 06:54:38 +03:00
8aad132cc3
Свойство команды «Используемая таблица» — ссылка по ИМЕНИ элемента-таблицы (<AssociatedTableElementId xsi:type="xs:string">Имя</…>, 240 в корпусе, всегда xs:string). Команда работает в контексте этой таблицы (текущая строка). - Ключ table; forgiving-синонимы associatedTableElementId (XML-тег) и ИспользуемаяТаблица (рус., регистро-/пробело-незав.) — команды идут отдельным путём Emit-Commands, не через PROP_SYNONYMS слой Emit-Element. - CurrentRowUse («использование текущей строки») уже поддерживался. Зеркало py. Кейс table расширен (table + currentRowUse), сертифицирован загрузкой в 1С. Регресс 39/39 в обоих рантаймах. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
51 lines
2.4 KiB
JSON
51 lines
2.4 KiB
JSON
{
|
|
"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, "autofill": true, "multipleChoice": true, "searchOnInput": "Use", "markIncomplete": true,
|
|
"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 },
|
|
{ "name": "Сумма", "type": "decimal(15,2)" },
|
|
{ "name": "Комментарий", "type": "string(200)" },
|
|
{ "name": "Объект", "type": "AnyRef" },
|
|
{ "name": "Источник", "type": "CatalogRef" }
|
|
]}
|
|
],
|
|
"commands": [
|
|
{ "name": "Обновить", "action": "ОбновитьОбработка", "currentRowUse": "Use", "table": "Данные" }
|
|
]
|
|
}
|
|
}
|