4D v164D Server and the 4D Language |
||
|
4D v16
4D Server and the 4D Language
4D Server and the 4D Language
With 4D Server, you now have three situations in which you can execute 4D code on the server machine:
A Trigger is a method attached to a table. Triggers can prevent “illegal” operations on your database records. They are a very powerful tool to restrict operations on a table, as well as to preventaccidental data loss or tampering. For example, in an invoicing system, you can prevent anyone from adding an invoice without specifying the customer to whom the invoice is billed. Triggers are executed on the machine where the database engine is actually located. For more information about triggers, see the section ARRAY REAL of the 4D Language Reference manual. A 4D stored procedure is project method executing a process method in a process running on the server machine (or on any client machine), instead of on the client machine which has launched the method. See the Stored Procedures section. Project methods that have the "Execute on Server" attribute are also executed on the server. However, unlike stored procedures, they are executed in the "twinned" process of the client process and thus benefit from its database context, like with triggers. For more information, please refer to the Execute on Server attribute section. Four database methods are executed only on the server machine:
Five other database methods can be executed either on the server machine or a client machine depending on the context:
Three database methods can only be executed on a client machine: For more information on the database methods see the corresponding sections in this manual and in the 4D Language Reference manual
With 4D Server, the visibility of sets and named selections depends on where they were created (server process or client process) and the type of these objects (local, process or interprocess objects). For more information, see the 4D Server, Sets and Named Selections4D Server, Sets and Named Selections section.
|
PROPERTIES
Product: 4D
HISTORY
TAGS Twin Process, twins ARTICLE USAGE
4D Server Reference ( 4D v16) |