Web Application - StorageChanged Event

Fired when storage content has changed

Member of Web Application (PRIM_WEB.Application)

Parameters

NameTypeData TypeDescription
StorageType*InputEnumerationReturns 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

Febuary 18 V14SP2