4D v16.3WA SET PREFERENCE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
WA SET PREFERENCE
|
WA SET PREFERENCE ( {* ;} object ; selector ; value ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, object is an object name (string) If omitted, object is a variable | |||||
object | Form object |
![]() |
Object name (if * is specified) or Variable (if * is omitted) | |||||
selector | Longint |
![]() |
Preference to be modified | |||||
value | Boolean |
![]() |
Value of the preference (True = allowed, False = not allowed) | |||||
The WA SET PREFERENCE command sets different preferences for the Web area designated by the * and object parameters.
Pass the preference to be modified in the selector parameter and the value to be assigned to it in the value parameter. In selector, you can pass one of the following constants, found in the Web Area theme:
Constant | Type | Value | Comment |
WA enable contextual menu | Longint | 4 | Allow the display of a standard contextual menu in the Web area |
WA enable Java applets | Longint | 1 | Allow the execution of Java applets in the Web area. |
WA enable JavaScript | Longint | 2 | Allow the execution of JavaScript code in the Web area |
WA enable plugins | Longint | 3 | Allow the installation of plug-ins in the Web area |
WA enable URL drop | Longint | 101 | Allow dropping of URLs or files in the Web area (default = False) |
WA enable Web inspector | Longint | 100 | Allow the display of the Web inspector in the area |
For each preference, pass True in value to activate it and False to deactivate it.
Note: The use of Web plugins and Java applets is not recommended in Web areas because they may lead to instability in the operation of 4D, particularly at the event management level.
To enable URL drops in the 'myarea' Web area:
WA SET PREFERENCE(*;"myarea";WA enable URL drop;True)
Product: 4D
Theme: Web Area
Number:
1041
Created: 4D v11 SQL Release 2
Modified: 4D v14
Modified: 4D v14 R2
4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)