Access error to server module in case of Client/server mode infobase and thick client

This forum is intended for cases when a problem can not be solved due to restrictions of the platform: a bug or lack of functionality.

#1
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 4
Joined: Feb 8, 2013
Company: First BIT Middle East

We have a module with "Server" property. There are calls to this module only from manager module of document. In case of using Client/server mode infobase and thick client we got an error when try to open the list form of this document with error text "Variable is not defined ([ModuleName])".

In case of using thin client or file database mode everything fine. Also if we put property of module "Client(managed application" or "Server Call" to "True" the error is not appear. But i don't understand why it should be client or server call and it is not correct way to solve the problem. And also why its appear only in client server thick client.

Could you clarify why its appear and what is correct way to solve this issue. And could you explain why platform have such special aspects.

Thank you.

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Pavel!

Thick client executes some methods that are marked as Server on a client. So one of ways to solve it is to make ServerCall variant of your module and a procedure in it that will call your sever module procedure.

And it is better not to use Thick client as using Thin client is more modern way.

 
#3
People who like this:0Yes/0No
Active user
1C:Professional
Rating: 4
Joined: Feb 8, 2013
Company: First BIT Middle East

Timofey Bugaevsky,
I understand that a thin client is preferable way to work, but we should think about all exceptions in developing process.

So, "Server call" property is way which 1C company recommend to solve such kind of errors?

And does platform have specification description about such kind of methods in thick client? Because methods calls from other modules (not manager module) work fine. How we should define which module should have "Server call" (i think to put this property to every server module is not correct way)?

Edited: Pavel Zhgulev - May 28, 2015 01:27 AM
 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Pavel!

It is recommended to exclude from the configuration check Thick client (managed application, Client/sever mode). As using thick client in client/server variant uses more network resources than using thin client.

You will not need to set Server call for all modules, but for only server subsystem interfaces that are called from the client. You can see examples in 1C:Subsystems library.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.