Web Application - StorageChanged Event

Fired when storage content has changed

Member of Web Application (PRIM_WEB.Application)


NameTypeData TypeDescription
StorageType*InputEnumerationReturns the type of storage that has changed


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


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 )

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020