Handle Subordinate Catalogs
If a subordinate catalog requires an explicit owner (when multiple owners are possible), specify the owner type in the Подчиненные section of the Справочники configuration.
{
"smoke": {
"Справочники": {
"Подчиненные": {
"БанковскиеСчета": "Контрагенты"
}
}
}
}
Set default values for new objects (ЗначенияРеквизитовНовых)
To ensure forms can open when certain mandatory fields are required, you can define default values for attributes of newly created objects.
- Simple types:
Boolean, String, Number, DateTime are passed directly. - Reference types (CatalogRef):
- Enums: Use the name of the enum value as defined in metadata.
- Catalogs: A new element will be created using the provided string as its name.
{
"smoke": {
"Справочники": {
"ЗначенияРеквизитовНовых": {
"Номенклатура": {
"ВестиУчетПоСериям": true,
"ВестиУчетПоХарактеристикам": true
},
"СотрудникиОрганизаций": {
"Физлицо": "Тестовое физлицо"
}
}
}
}
}