4D v12.4

OPEN 4D PREFERENCES

Home

 
4D v12.4
OPEN 4D PREFERENCES

 

OPEN 4D PREFERENCES 


 

OPEN 4D PREFERENCES ( selector {; access} ) 
Parameter Type   Description
selector  String in Key designating a theme or a page or a group of parameters in the Preferences or Settings dialog box
access  Boolean in True=Lock the other pages of the dialog box False or omitted=Leave the other pages of the dialog box active

The OPEN 4D PREFERENCES command opens the Preferences dialog box of 4D or the Database Settings of the current 4D application and displays the parameters or the page corresponding to the key passed in selector.

The selector parameter must contain a “key” indicating the dialog box and the page to opened. This key is constructed as follows: /Dialog{/Page{/Parameters}}. Dialog indicates the dialog box to be displayed: you can pass "4D" (for the Preferences) or "Database" (for Database Settings). For example, to indicate the Compiler page of the Database Settings, selector should contain "/Database/Compiler". The list of keys that can be used is provided below. If you just pass a slash ("/") in selector, the command displays the first page of the Database Settings dialog box.

The access parameter lets you control user actions in the Preferences or Database Settings dialog box by locking the other pages. Typically, you may want for the user to be able to customize certain parameters while preventing others from being modified. In this case, passing True in the access parameter means that only the page specified by the selector parameter will be active and modifiable, while access to all other pages will be locked (clicking on the buttons in the navigation bar will have no effect). If you pass False or omit the access parameter, all the pages of the dialog box will be accessible with no restriction.

If you pass an invalid key, the first page of the Database Settings dialog box is displayed.

The following is a list of keys that can be used in the selector parameter:
/4D
/4D/General

/4D/Structure
/4D/Form editor
/4D/Method editor
/4D/Client-Server
/4D/Shortcuts
/Database
/Database/General
/Database/Mover
/Database/Interface
/Database/Interface/Developper
/Database/Interface/User
/Database/Interface/Shortcuts
/Database/Compiler
/Database/Database
/Database/Database/Data storage
/Database/Database/Memory and cpu
/Database/Database/International
/Database/Backup
/Database/Backup/Scheduler
/Database/Backup/Configuration
/Database/Backup/Backup and restore
/Database/Client-Server
/Database/Client-Server/Network
/Database/Client-Server/IP configuration
/Database/Web
/Database/Web/Config
/Database/Web/Options 1
/Database/Web/Options 2
/Database/Web/Log format
/Database/Web/Log scheduler
/Database/Web/Webservices
/Database/SQL
/Database/php
/Database/Compatibility
/Database/Security

Compatibility note: The command continues to function with the keys of previous versions; the correspondance is established automatically by 4D. It is nevertheless recommended to replace former calls using the keys described above instead.

Open the “Methods” page of the 4D Preferences:

 OPEN 4D PREFERENCES("/4D/Method editor")

Open the “Shortcuts” parameters in the Database Settings while locking the other settings:

 OPEN 4D PREFERENCES("/Database/Interface/Shortcuts";True)

Open Database Settings on the first page:

 OPEN 4D PREFERENCES("/")

If the Preferences/Settings dialog box is validated, the system variable OK returns 1. Otherwise, it returns 0.

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 903

The OK variable is changed by the command

 
HISTORY 

New
Modified: 4D v11 SQL
Modified: 4D v12

 
TAGS 

Preferences, Settings, Database parameters, Database settings***