TolliumContexts (open)
Container for context objects. Contexts are set on a screen/controller, and are inherited by children screens (and can be overridden there). Use contexts->^mycontextname for private contexts.
Syntax
LOADLIB "mod::tollium/lib/internal/contexts.whlib";
OBJECTTYPE TolliumContexts
Constructor
Properties
- PROPERTY applytester
Current relavant applytester (OBJECT of type ApplyRuleTester)
- PROPERTY controller
Tollium controller
- PROPERTY editdocumentapi
Edit document API
- PROPERTY formcomponentapi
formcomponentapi
- PROPERTY mergefields
merge fields api
- PROPERTY objectpropsapi
object properties api
- PROPERTY opener
Current opener of screens (screen ?? controller) - use for ->RunScreen etc
- PROPERTY richdocument
Current richdocument opening the widget editor. Used to determinte rtdtype
- PROPERTY screen
Current screen.
- PROPERTY user
Current user
- PROPERTY userapi
Current user API
- PROPERTY webshop
Webshop
- PROPERTY wrdschema
WRD schema
- PROPERTY ^
Access contexts via contexts->^contextname
Functions
- OBJECT FUNCTION GetContext(STRING contextname)
Get the requested context, without an exception if it is not set. FIXME: remove this API
- BOOLEAN FUNCTION IsSet(STRING contextname)
Is the requested context set? FIXME: remove this API
- MACRO UpdateContext(STRING contextname, OBJECT newcontext)
Set/update a context. FIXME: remove this API