Saltar para o conteúdo principal
Versão: 21 R3

WA Get context

WA Get context ( * ; object : Text ) -> Object
WA Get context ( object : Variable ) -> Object

ParâmetroTipoDescrição
*Operador→Se especificado, object é um nome de objeto (string). Se omitido, object é uma variável.
objectText, Variable→Nome do objeto (se * for especificado) ou Variável (se * for omitido).
ResultadoObject←Context object if previously defined, otherwise null.
História
ReleaseMudanças
20 R9Adicionado

Descrição​

The WA Get context command retrieves the context object defined for $4d in the Web area designated by the * and object parameters using WA SET CONTEXT. Se WA SET CONTEXT não foi chamado para a área web, o comando retorna null.

nota

The command is only usable with an embedded web area where the Use embedded web rendering engine and Access 4D methods parameters are set to true.

Exemplo​

Checking if a context exists:

var $contextObj:=WA Get context(*; "myWebArea")

If ($contextObj=Null)
ALERT("No context set for this web area.")
Else
ALERT("Context is defined!")
End if

Veja também​

WA SET CONTEXT

Propriedades​

Número de comando1849
Thread safenão