You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Web Application - StorageChanged Event
Fired when storage content has changed
Member of Web Application (PRIM_WEB.Application)

Parameters

Name

Type

Data Type

Description

StorageType

*Input

Enumeration

Returns the type of storage that has changed

Details


The StorageChanged event is fired whenever a change is made to the browser's LocalStorage.
This is a convenient method to allow communication between two different WebPages

Example


In this example, a maintenance page has updated an employee record and added a LocalStorageItem that records the ID of the modified employee.
The page that launched the maintenance pages detects the change and uses the value to update a list item.
Evtroutine Handling(#sys_web.StorageChanged)
If (#sys_web.localStorage *IsNot *null)
#Com_owner.Update( #sys_web.localStorage.Value )
Endif
Endroutine

See also

All Component Classes
Technical Reference

  • No labels