Local Storage

Stable Version 1.0.3 (OutSystems 11)
Published on 15 Jan by 
Created on 27 December 2018
Details
Local Storage allows you to store data on the client side from the Web Storage API. This API accesses the local storage area of the browser without time limit, ie, the stored data will be available whenever you use this page/app. Also, we can use the session storage, is limited to the lifetime of the window.
Read More

With this component, we are able to create variables in localStorage and sessionStorage. We don't need to store in local entities some flags/data, and we can create, read and delete "global variables" for the application. That avoid queries to entities to get only one flag for example.


Local Storage:

ActionDescription
CheckIsSetItemLocalStorageCheck if a item is set in local storage
ClearAllLocalStorageClear all items in local storage
GetItemLocalStorageGet item from local storage
RemoveItemLocalStorageRemove item from local storage
SetItemLocalStorageSet item to local storage


Session Storage:

ActionDescription
CheckIsSetItemSessionStorageCheck if a item is set in session storage
ClearAllSessionStorageClear all items in session storage
GetItemSessionStorageGet item from session storage
RemoveItemSessionStorageRemove item from session storage
SetItemSessionStorageSet item to session storage


Extra:

ActionDescription
CheckBrowserSupportCheck if browser support storage


+info: https://www.w3schools.com/html/html5_webstorage.asp

What’s new (1.0.3)

Icons added in the actions

Reviews (1)
4 Feb
in version 1.0.3
Very useful component. We can emulate Site Properties in the mobile side without query the local database from each screen.  It is a mandatory component if you are developing mobile apps.
Category
Components, Mobile Plugins
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Paulo Cação who created this component.
Dependencies
Local Storage has no dependencies.
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads