4D v14.3

Database Methods

Home

 
4D v14.3
Database Methods

Database Methods  


 

 

Database methods are methods that are automatically executed by 4D when a general session event occurs.

To create or open and edit a database method:

  1. Open the Explorer window.
  2. Select the Methods page.
  3. Expand the Database Methods theme.
  4. Double click on the method.

or:

  1. Select the method.
  2. Press Enter or Return.

You edit a database method in the same way as any other method.

You cannot call a database method from another method. Database methods are automatically invoked by 4D at certain points in a working session. The following table summarizes the execution of database methods:

Database Method4D local4D Server4D remote
On StartupYes, OnceNoYes, Once
On ExitYes, OnceNoYes, Once
On DropYes, MultipleNoYes, Multiple
On System EventYes, MultipleYes, MultipleYes, Multiple
On Web ConnectionYes, MultipleYes, MultipleYes, Multiple
On Web AuthenticationYes, MultipleYes, MultipleYes, Multiple
On Web Session SuspendYes, MultipleYes, MultipleYes, Multiple
On Backup StartupYes, MultipleYes, MultipleYes, Multiple
On Backup ShutdownYes, MultipleYes, MultipleYes, Multiple
On Server StartupNoYes, OnceNo
On Server ShutdownNoYes, OnceNo
On Server Open ConnectionNoYes, MultipleNo
On Server Close ConnectionNoYes, MultipleNo
On SQL AuthenticationYes, MultipleYes, MultipleYes, Multiple
On 4D Mobile AuthenticationYes, MultipleYes, MultipleNon
On Host Database EventYes, MultipleYes, MultipleYes, Multiple

 
PROPERTIES 

Product: 4D
Theme: Database Methods

 
SEE ALSO 

Methods

 
ARTICLE USAGE

4D Language Reference ( 4D v14.3)

Inherited from : Database Methods ( 4D v14 R3)