John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

can i create datamodels in local storage?

Hello,

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

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

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...

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

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

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

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..

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

can i create datamodels in local storage?

We'll update ASAP.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

ok i'll be waiting

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

can i create datamodels in local storage?

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

can i create datamodels in local storage?

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.

Return to “Issues”