N
N
Nurasyl Aldan2020-09-29 16:58:46
1C
Nurasyl Aldan, 2020-09-29 16:58:46

How to call a procedure in a managed application module in 1C?

Hi all!

How to call a procedure in a managed application module in 1C ?

&НаКлиенте
Процедура Тест1()
  Тест2();
КонецПроцедуры

&НаСервереБезКонтекста
Функция Тест2()

КонецФункции


Error: {ManagedApplicationModule(4,2)}: Procedure or function with the specified name is not defined (Test2)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2020-09-29
@nurasyl

These directives have no meaning in a managed application module, they only make sense in a command module, in a form module, and in common modules. At the same time, the &AtServerWithoutContext directive makes sense only in the form module
. It would be correct to create a common module with the "Server" and "Server call" checkboxes, place the Test2 function in it and call it from the managed application module as ModuleName.Test2()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question