4D v14.3WA SET EXTERNAL LINKS FILTERS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
WA SET EXTERNAL LINKS FILTERS
WA SET EXTERNAL LINKS FILTERS
The WA SET EXTERNAL LINKS FILTERS command sets up one or more external link filters for the Web area designated by the * and object parameters. External link filters determine whether a URL associated with the current page via a link must be opened in the Web area or in the default Web browser of the machine. When the user clicks on a link in the current page, 4D consults the list of external link filters in order to check whether the URL requested must be opened in the browser of the machine. If so, the page corresponding to the URL is displayed in the Web browser and the On Open External Link form event is generated. Otherwise (default operation), the page corresponding to the URL is displayed in the Web area. The evaluation of the URL is based on the contents of the filtersArr and allowDenyArr arrays. The filtersArr and allowDenyArr arrays must be synchronized.
If there is a contradiction at the configuration level (the same URL is both allowed and denied), the last setting is the one taken into account. To disable URL filtering, call the command and pass empty arrays or pass, respectively, the values "*" and True in the last elements of the filtersArr and allowDenyArr arrays. Important: The filtering established by the WA SET URL FILTERS command is taken into account before that of the WA SET EXTERNAL LINKS FILTERS command. This means that if a URL is denied because of a WA SET URL FILTERS command filter, it cannot be opened in the browser even if it is explicitly specified by the WA SET EXTERNAL LINKS FILTERS command (see example 2). This example causes sites to be opened in external browsers:
ARRAY STRING(0;$filters;0) This example combines the filtering of both sites and external links:
ARRAY STRING(0;$filters;0) |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v11 SQL Release 2 SEE ALSO
WA GET EXTERNAL LINKS FILTERS ARTICLE USAGE
4D Language Reference ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||