This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
Design Object Access Commands
|
Path | Description |
class | Path of class definition. Example: [class]/MyClass |
class function | Path of class function. Example: [class]/MyClass/myFunction |
database method | Path of database methods specified. List of these methods: [databaseMethod]/onStartup [databaseMethod]/onExit [databaseMethod]/onDrop [databaseMethod]/onBackupStartup [databaseMethod]/onBackupShutdown [databaseMethod]/onWebConnection [databaseMethod]/onWebAuthentication [databaseMethod]/onWebSessionSuspend [databaseMethod]/onServerStartup [databaseMethod]/onServerShutdown [databaseMethod]/onServerOpenConnection [databaseMethod]/onServerCloseConnection [databaseMethod]/onSystemEvent [databaseMethod]/onSqlAuthentication [databaseMethod]/onHostDatabaseEvent [databaseMethod]/onRESTAuthentication [databaseMethod]/onMobileAppAuthentication [databaseMethod]/onMobileAppAction |
project form | Path of project form methods and all their object methods. Examples: [projectForm]/myForm/{formMethod} [projectForm]/myForm/button1 [projectForm]/myForm/my list [projectForm]/myForm/button1 |
project method | Name of method. Example: MyProjectMethod |
table form | Path of table form methods and all their object methods. Examples: [tableForm]/table_1/Form1/{formMethod} [tableForm]/table_1/Form1/button1 [tableForm]/table_1/Form1/my list [tableForm]/table_2/Form1/my list |
trigger | Path of database triggers. Examples: [trigger]/table_1 [trigger]/table_2 |
By default, no file is created on disk by 4D. However, pathnames generated for objects are compatible with the file management of the operating system; they can generate files directly on disk using your own import/export methods.
More specifically, forbidden characters such as ":" are encoded in method names. Generated files may be integrated automatically in a version control system.
Here are the encoded characters:
Character | Encoding |
" | %22 |
* | %2A |
/ | %2F |
: | %3A |
< | %3C |
> | %3E |
? | %3F |
| | %7C |
\ | %5C |
% | %25 |
Examples:
Form?1 is encoded Form%3F1
Button/1 is encoded Button%2F1
For reasons related to the principle of the compilation process, only certain commands in this theme can be used in compiled mode. The following table indicates the available of the commands in compiled mode:
Command | Can be used in compiled mode |
Current method path | Yes |
FORM EDIT | No (*) |
FORM GET NAMES | Yes |
METHOD Get attribute | Yes |
METHOD GET ATTRIBUTES | Yes |
METHOD GET CODE | No (*) |
METHOD GET COMMENTS | Yes |
METHOD GET FOLDERS | Yes |
METHOD GET MODIFICATION DATE | Yes |
METHOD GET NAMES | Yes |
METHOD Get path | Yes |
METHOD GET PATHS | Yes |
METHOD GET PATHS FORM | Yes |
METHOD OPEN PATH | No (*) |
METHOD RESOLVE PATH | Yes |
METHOD SET ACCESS MODE | Yes |
METHOD SET ATTRIBUTE | No (*) |
METHOD SET ATTRIBUTES | No (*) |
METHOD SET CODE | No (*) |
METHOD SET COMMENTS | No (*) |
(*) The error -9762 "The command cannot be executed in a compiled database." is generated when the command is executed in compiled mode.
Product: 4D
Theme: Design Object Access
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)