Page 1 of 2

Set Session Storage Variable

Posted: Mon Apr 16, 2012 9:25 am
by Paolo

why in "Add Action" don't you insert also the voice "Set Session Storage Variable"?
There is another fast way to set a session sorage variable?
thanks


Set Session Storage Variable

Posted: Mon Apr 16, 2012 4:16 pm
by maxkatz

Use Set Local Storage variable.


Set Session Storage Variable

Posted: Mon Apr 16, 2012 4:24 pm
by Paolo

but I'd like to save a variable as session variable and not as local variable...just for one session


Set Session Storage Variable

Posted: Mon Apr 16, 2012 5:06 pm
by maxkatz

Use Run Custom JavaScript and use Session Storage: http://html5app.com/blog/?cat=43


Set Session Storage Variable

Posted: Mon Apr 16, 2012 5:19 pm
by Paolo

yes I already use thanks, my thread was just an advice for a next version of Tiggzi to add another voice "Set Session Storage Variable" in "Add Action"


Set Session Storage Variable

Posted: Mon Apr 16, 2012 5:20 pm
by maxkatz

I guess we could add an option to the existing action which storage you want to use.


Set Session Storage Variable

Posted: Mon Apr 16, 2012 5:26 pm
by Paolo

yes it will be better ;-)


Set Session Storage Variable

Posted: Wed Nov 27, 2013 11:52 pm
by Bryce

Hello. I'd like to pick up on this thread and ask a question about sessionStorage.

I understand that I can set a "sessionStorage" variable using javascript
ie.
presessionStorage.setItem('{itemname}', '{value'})/pre

However, how can I then use a sessionStorage value to map to a Request, or to map from a Response in the service mapping UI in Appery?


Set Session Storage Variable

Posted: Thu Nov 28, 2013 5:01 am
by Illya Stepanov

Hello Bryce,

In mapping editor you can use 'add JS' fields for passing sessionStorage values.


Set Session Storage Variable

Posted: Thu Nov 28, 2013 5:09 am
by Bryce

Hello. Can you expand on this a bit more please? Where/how to I "add JS field"?

In the screen shot below, you can see that I have the option to add "Local Storage Variable" only... where do I add JS field?
Image