Web Application (PRIM_WEB.Application)

Web Application Object

Ancestors - Object (PRIM_OBJT)

Details

The Web Application object is a globally scoped singleton object providing access to web runtime specific features such as the browser Console, Local Storage and the current URL.
 
At runtime the #SYS_WEB variable provides programmatic access to its features.

Properties

NameDescription
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
ConsoleBrowser Console object
DeviceDevice type on which the application is executing
HistoryBrowser History
LoadingImageImage to be displayed in place of the default loading image
LocalStorageProvides access to browser local storage
NameName identifies the component Inherited from Object (PRIM_OBJT)
OnlineTrue if the browser thinks there is a valid connection
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
SessionStorageProvides access to browser session storage
URLReturns the URL for the WebPage
URLParametersCollection of URL parameters derived from the URL QueryString
WebPageWeb Page executed to start the application

Events

NameDescription
CloseQueryFired when the browser navigates away from the WebPage
QueryString
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from Web Application (PRIM_WEB.Application)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Web Application (PRIM_WEB.Application)
DeviceChangedFired when the application is resized and the device changes
PrintEndFired when browser printing finishes
PrintStartFired when browser printing is about to start
RequestFailedFired whenever a request to a server routine fails
Request, Reason, Handled
StorageChangedFired when storage content has changed
StorageType
StorageFailedFired when a change to the storage cannot be commited
StorageType
URLChangedFired whenever the URL changes

Methods

NameDescription
AlertShow the browser Alert dialog
Caption
ConfirmShow the browser Confirm dialog
Caption, ResultCode
CreateBlobCreate a BLOB
Result, Data, MimeType
CreateClobCreate a CLOB
Result, Data
NavigateNavigate to a URL
Url, Target
PrintStart printing the web page
PromptShow the browser Prompt dialog
Caption, Value, ResultCode

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2