.executeInContext()

Previous Next

Switches the default context of a function call. Use this function if there is a need to cross the boundaries of context, for example, if a VariableSet data source on the root page must be accessed by controls on a subpage.

Returns nothing.

Syntax

.executeInContext( contextfunc )

The required context refers to the root context if it has the value "" (empty string). A subpage within the root context is referred to by the name of the page. Names of pages contained in pages are separated from the name of the containing page by a forward slash ("SubPage/SubSubPage").

The required func is the function call for which the default context is being switched.

 

Examples

$.udb.executeInContext("", function() { … });
$.udb.executeInContext("MyPage", function() { … });
$.udb.executeInContext("MyPage/SubPage", function() { … });

 

 

See Also

The Web Designer Stack

Contexts

.getContext()