mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-11 08:24:57 +03:00
d5aacc9e60
Detect config vs EPF context by walking up from FormPath looking for Configuration.xml. ExternalDataProcessorObject/ExternalReportObject are valid in EPF/ERF but cause XDTO exception in configuration context. - EPF forms: no warning (ExternalDataProcessorObject is correct) - Config forms: ERROR with hint to use DataProcessorObject/ReportObject - Fix test DSLs: compiled-form, table-form used wrong External* type Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
1.6 KiB
JSON
40 lines
1.6 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": "Форма" }
|
|
},
|
|
{
|
|
"script": "form-compile/scripts/form-compile",
|
|
"input": {
|
|
"title": "Валидация",
|
|
"elements": [
|
|
{ "input": "Поле1", "path": "Поле1" },
|
|
{ "check": "Флаг", "path": "Флаг" },
|
|
{ "group": "horizontal", "name": "Группа", "children": [
|
|
{ "input": "Поле2", "path": "Поле2" }
|
|
]},
|
|
{ "button": "Выполнить", "command": "Выполнить" }
|
|
],
|
|
"attributes": [
|
|
{ "name": "Объект", "type": "DataProcessorObject.Валидация", "main": true },
|
|
{ "name": "Поле1", "type": "string" },
|
|
{ "name": "Поле2", "type": "decimal(15,2)" },
|
|
{ "name": "Флаг", "type": "boolean" }
|
|
],
|
|
"commands": [
|
|
{ "name": "Выполнить", "action": "ВыполнитьОбработка" }
|
|
]
|
|
},
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputPath": "{workDir}/DataProcessors/Валидация/Forms/Форма/Ext/Form.xml" }
|
|
}
|
|
],
|
|
"params": { "formPath": "DataProcessors/Валидация/Forms/Форма" }
|
|
}
|