4D v14.3

WA SET PREFERENCE

Home

 
4D v14.3
WA SET PREFERENCE

WA SET PREFERENCE 


 

WA SET PREFERENCE ( {* ;} object ; selector ; value ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable
object  Form object in Object name (if * is specified) or Variable (if * is omitted)
selector  Longint in Preference to be modified
value  Boolean in 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 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.

 
PROPERTIES 

Product: 4D
Theme: Web Area
Number: 1041

 
HISTORY 

New
Created: 4D v11 SQL Release 2
Modified: 4D v14

 
SEE ALSO 

WA GET PREFERENCE

 
ARTICLE USAGE

4D Language Reference ( 4D v14.3)

Inherited from : WA SET PREFERENCE ( 4D v11 SQL Release 6)
Parent of : WA SET PREFERENCE ( 4D v14 R2)