SessionStorage

Posted: 2017-01-24 in SessionStorage

Q:
Lianja.sessionStorage.setItem(“aquivo”, “teste”)
Error: Property ‘Sessionstorage’ undefined
A:
This works for me, in desktop and mobile:

Code:
var lo = Lianja.sessionStorage;
lo.setItem("Hank","Fay");
messageBox(lo.getItem("Hank"));

Take my code, put it in the Ready of a page

Case sensitive. sessionStorage is not the same as Sessionstorage in JavaScript.


SAVE and RESTORE DATASESSION are useful especially in WebViews generated by rsp pages. It was however awkward to nest the saving and restoring properly.
So in 2.1 I have added two new commands
PUSH DATASESSION and POP DATASESSION.
These operate in the same way as SAVE and RESTORE DATASESSION but enable pushing and popping data session state (database, tables, and cursor state)
up to 256 levels deep.



Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s