D
D
Denis2021-11-29 23:40:17
1C
Denis, 2021-11-29 23:40:17

Creating a new document type in the configurator?

Good evening!
Probably the question is as simple as possible, but I did not find the answer ... A
newcomer to 1C
In 1C (8.3. UT for Ukraine) added a new document. Everything works, no errors, but! some things don't work, for example:
Object.Partners = SessionParameters.CurrentUser.Partners;

nothing happens., although in another, not created by me, this command works without problems. When copying another and completely clearing it of all commands, forms (pristinely clean with one attribute) - it works. Not in the new ones I created.
I suspect that somewhere it is necessary to register something. But I don’t understand where ...
(I compared the rights, searched for a global search ... I didn’t find answers in examples and books)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Prokhorovich, 2021-11-30
@denis9131

I will assume that you have not set the binding of procedures to form events. Find the list of standard events in the form properties below and select the name of your procedure in the required line.
And yes, as correctly noted in the comment, in such cases it is considered good practice to show non-working code.

S
Sergey Vodakov, 2021-11-30
@WaterSmith

Are the types okay? The attribute type of the document "Partners" is the same as CurrentUser.Partners?
1C does not have a strongly typed language, and if the types do not match, then it will simply leave an empty value, without errors and swearing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question