Page 1 of 3

can i create datamodels in local storage?

Posted: Sat May 25, 2013 12:05 am
by John Herdean

I would like to know if there is a way to save datamodels inside local storage, name the datamodel, create a list of data elements, and call up such datamodel?


can i create datamodels in local storage?

Posted: Sat May 25, 2013 12:53 am
by Igor

Hello,

Please clarify, what do you mean by the "datamodels"? We are talking about the DOM?


can i create datamodels in local storage?

Posted: Sat May 25, 2013 1:05 am
by John Herdean

ok so for example, a user is going through a menu of products. and throughout the process i want to save a block of data that can later call up when the user is checking out. I see you guys have local storage elements, but its going to be really hard to manage saving a block of data elements with one level local storage. So instead i want to create a block of data elements. Lets say i have a data model called menu_items, and inside I have 5 elements. And I want to be able to save those 5 elements inside that datamodel to be used at a later point in time - maybe i retrieve some or all the elements from that datamodel...


can i create datamodels in local storage?

Posted: Sat May 25, 2013 1:06 am
by John Herdean

i dont know what you mean by DOM...?


can i create datamodels in local storage?

Posted: Sat May 25, 2013 1:08 am
by John Herdean

or you can think of this as creating local storage items, and organizing them in folders. So, lets say I have multiple folders and each folder contains any number of local storage items..


can i create datamodels in local storage?

Posted: Sat May 25, 2013 1:15 am
by John Herdean

the same way you create a page and have a list of elements where you can easily map one to another, but the page acting as a block of local storage where the information will be stored. And it be able to map to more than one service


can i create datamodels in local storage?

Posted: Sat May 25, 2013 2:09 am
by Igor

We'll update ASAP.


can i create datamodels in local storage?

Posted: Sat May 25, 2013 3:02 am
by John Herdean

ok i'll be waiting


can i create datamodels in local storage?

Posted: Sat May 25, 2013 3:14 am
by John Herdean

the other thing i wanted to know, is can you save an entire service response to local storage. Basically, creating a model with all its elements to be used later and mapped the same way you do for a page. The easiest way to look at my question is the same way you populate a page, but instead of only populating a page, also save all the elements in a data model (or a folder of local storage items) so that data model and all its elements be retrieved for later use (i.e. another page will use it or send that block of data back to the server)...

I guess this is just another way to explain what i mean by creating data models (and their local storage items) so that they can be mapped to other services or pages for later usage.


can i create datamodels in local storage?

Posted: Sun May 26, 2013 4:39 pm
by maxkatz

Local storage is standard browser storage. It has basic API shown here: https://developer.mozilla.org/en-US/d...

There are libraries out there that build on top of this API and provide extra features as well as data model capability.

As for saving a service response into local storage -- you can do that.