Where does code run in a managed application? On the client and on the server. What must not be done on the client?
Asked at
AI answer
In a managed application, the execution location is determined by the execution context and compilation directives, such as &AtClient, &AtServer, and &AtServerNoContext. UI handlers usually run on the client; data access and server-side business logic are generally handled on the server. A client call to a server method must match its directive and context availability.
Operations that require server access to the database should not be performed on the client—for example, directly executing queries against the information base or accessing server objects. Trusted business logic and permission checks should not be placed on the client either: client-side logic can be modified or bypassed. Keep UI and user-input handling on the client, and perform critical checks and data operations on the server.
Also asked at ОптТорг
- What types of registers are there in 1C, how many are there, and what are they used for?
- What is MCP’s architecture, and which protocol/message format underlies it instead of the REST API?
- Which compilation directives are used on the client and server in a managed form module, and how many are there in total?
- What cost calculation methods in ERP do you know?
- How do you check balances in the “Goods in Warehouses” accumulation register when posting a document?
Similar questions
- We have a managed form. Where does it run: on the client or on the server?
- Technically, how do you specify whether a procedure runs on the client or server in a 1C managed application?
- Explain how work is divided between the client and server in 1C: what is each side responsible for, and where should the code run?
- In ordinary forms, does the object module code run on the client or the server? How do you execute server-side code?
- How do programmers control what runs on the client and what runs on the server? What compilation directives are available?