A
A
AlexCruel2021-03-27 17:53:44
1C
AlexCruel, 2021-03-27 17:53:44

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");


Then I tried to find methods for recording - I did not find it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexCruel, 2021-03-28
@AlexCruel

НовЗнчСв = Справочники.ЗначенияСвойствОбъектов.СоздатьЭлемент();
НовЗнчСв.Владелец = ПланыВидовХарактеристик.ДополнительныеРеквизитыИСведения.НайтиПоНаименованию("Название");
НовЗнчСв.Наименование = "Значение";
НовЗнчСв.Записать();

K
Konstantin, 2021-03-28
@fosihas

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 question

Ask a Question

731 491 924 answers to any question