WA SET PREFERENCE

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2


WA SET PREFERENCE ({*; }object; selector; value)

ParameterTypeDescription
**If specified, object is an object name (string)
If omitted, object is a variable
objectForm objectObject name (if * is specified) or
Variable (if * is omitted)
selectorLongintPreference to be modified
valueBooleanValue of the preference (True = allowed,
False = not allowed)

Description

The WA SET PREFERENCE command can be used to set 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:

ConstantTypeValue
wa enable Java appletsLongint1
wa enable JavaScriptLongint2
wa enable pluginsLongint3
wa enable contextual menuLongint4

For each preference, pass True in value to activate it and False to deactivate it.

Here is the meaning of the selectors:

wa enable Java applets: Used to allow the execution of Java applets in the Web area.

wa enable JavaScript: Used to allow the execution of JavaScript code in the Web area.

wa enable plugins: Used to allow the installation of plug-ins in the Web area.

wa enable contextual menu: Used to allow the display of a standard contextual menu in the Web area

See Also

WA GET PREFERENCE.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next