I am trying to render the function into general modules and try it on an elementary example.

&НаКлиенте Процедура Команда1(Команда) ВыполнитьЗапросНаСервере(); КонецПроцедуры &НаСервере Процедура ВыполнитьЗапросНаСервере() a = ОбщиеФункции.ЗаполнитьТаблицуФормы(); сообщить(a); КонецПроцедуры 

In the general module I created the module общиеФункции with the function ЗаполнитьТаблицуФормы() общиеФункции ЗаполнитьТаблицуФормы()

 Функция ЗаполнитьТаблицуФормы()экспорт рез = 1+1; возврат рез; КонецФункции 

On the general functions there is a tick Server and Call of the Server

Mistake:

{Form.Form.Form (17,6)}: The variable is not defined (General Functions) a = <> General Functions. Fill in the Table Forms ();

  • It does not sound funny, but perhaps a spelling error. Check the name of the common module. - user204049
  • @ 1C_Man your answer is not the answer to the question, indicate clearly where you see the spelling error. - Alexcei Shmakov

1 answer 1

Strange error: the description has created an empty database, everything works, see the example of performance in 8.3.7 .

Also, you have written that the error occurs in line 17:

{Form. Form. Form (17.6)}

but code

a = ОбщиеФункции.ЗаполнитьТаблицуФормы();

is not in the 17th line. Apparently, you did not provide the entire text of the form module.

Please specify what kind of form or lay out the unloading of the base on which the error is played, as well as the release of the platform.