How are details of the directory and document?

There is a document of the Treaty, which has the props Set.
There are reference Setsthat has the requisite Treaty.

In both details of the type specified opposite links (From Agreement on a Set, the Set on the Contract).

When adding a new record, for example, in the Treaty and specified in the field Set the right set, you need to reference the Sets in the field the Contract is automatically recorded need the agreement. But this is not happening. What should I do?
April 7th 20 at 15:39
1 answer
April 7th 20 at 15:41
Solution
When adding a new record, for example, in the Treaty and specified in the field Set the right set, you need to reference the Sets in the Contract field automatically recorded need the agreement. But this is not happening.

All right. Database is written exactly the kind of information you provide!

What should I do?

Need to explicitly specify that in your "Kit" preserved agreement. Two ways: custom and the way of the programmer. The user can in the card agreement field set to open a card set, where the contract to specify the contract and record the card kit. The programmer can write code that will do it automatically.
Matter how it correctly to implement? Trying so, complaining of the prohibition of editing.
The Procedure Of Priapism(Failure)
 Reference.Kits.Niepokoju(GetObject.Set).The Contract = GetObject.Link;
Conspriacy
- immanuel.Anderson commented on April 7th 20 at 15:44
The Procedure Of Priapism(Failure)
 Connectobject = GetObject.Kit.Poluchelovek();
 Complexobject.The Contract = GetObject.Link;
Complexobject.Record();
Conspriacy
- Maye.Boy commented on April 7th 20 at 15:47
@demarco19, thank you very much, it worked. - immanuel.Anderson commented on April 7th 20 at 15:50

Find more questions by tags 1C-Enterprise