4D v15

WA GET PREFERENCE and WA SET PREFERENCE

Home

 
4D v15
WA GET PREFERENCE and WA SET PREFERENCE

WA GET PREFERENCE and WA SET PREFERENCE  


 

Originally introduced in 4D v14 R2

For security reasons, changing a Web area contents by dropping a file or a URL in the area is disallowed by default starting with 4D v15. The mouse cursor now displays a forbidden icon when the user tries to drop a file or a URL in the area.

In previous releases, it was necessary to install a specific filter, using WA SET URL FILTERS for example, to prevent such actions.

If you want to allow this feature in 4D applications, you now need to set a new Web area preference: wa enable url drop.

A new preference is available in the selector parameter for the WA SET PREFERENCE command to enable a URL or file drop in the Web Area:

ConstantTypeValueComment
WA enable URL dropLongint101Allow the drop of a URL or file in the Web area (default = False)

If you want to enable a URL drop in the Web area, this preference must be set before loading a URL, preferably during the On load form event.

Example  

To enable URL drops in the 'myarea' Web area:

 WA SET PREFERENCE(*;"myarea";WA enable URL drop;True)

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (standard edition) ( 4D v15)