Answer the question
In order to leave comments, you need to log in
How to programmatically write a property in add. props?
There is an additional prop X . Type - "Additional value". You need to check if the attribute has a property. If there is none, it is automatically created.
СвойствоДляЗаписи = ПланыВидовХарактеристик.ДополнительныеРеквизитыИСведения.НайтиПоНаименованию("X");
Answer the question
In order to leave comments, you need to log in
НовЗнчСв = Справочники.ЗначенияСвойствОбъектов.СоздатьЭлемент();
НовЗнчСв.Владелец = ПланыВидовХарактеристик.ДополнительныеРеквизитыИСведения.НайтиПоНаименованию("Название");
НовЗнчСв.Наименование = "Значение";
НовЗнчСв.Записать();
If typical configurations, as a recommendation to use the capabilities of the BSP
WritePropertiesUObject
Writes additional details and information to the owner of the properties.
Changes happen in a transaction.
Syntax
Procedure WritePropertiesUObject(PropertyOwner,PropertyFROMValueTable) Export
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question