Docs for Data Store Component

Hello @Teodor ,

Are there any docs for Data Store ?

3 Likes

It’s just a preview, next week the component will be fully integrated with all its options - no docs have been prepared yet, but it’s easy to use.

  1. Add Data Store in app structure
  2. Define the Data Store schema
  3. From your page, you can insert and update/delete the components using dynamic events.

You can use the data store component as a source for any repeat regions and bootstrap 4 table generator source.

5 Likes

a very cleverly thought-out component. :+1:
@Teodor , @George @patrick

thanks

2 Likes

Please check it and do report anything you think is missing :slight_smile:

1 Like

This component is spectacular

Thanks team wappler

1 Like

Does the data that is stored persist across pages? For example shopping cart pages.

Where is the data stored?

The data is stored in the browser local storage :slight_smile:

Yes data is persistent it stored in browser local storage.

With the next update we will also add an option to use browser session storage.

3 Likes

Thanks guys, just trying to. get my head around what it could be used for and what that workflow would look like.

Anything like a shopping cart, or any kind of data with database like structure which needs to be passed across the pages, after it has been inserted/selected

2 Likes

I’ve only had a quick look at this, so only have a vague idea how it works, but…

I see it will delete all records with the same name, but is there a way to delete all the records (eg to clear the contents of a shopping cart)?

image

Also, what is Get Record(s) for? Is it to get the ID of a record for example? If so, how you can access what has been got?

1 Like

So is this in addition to Session manager and Cookie management?

What are the benefits (or drawbacks) of using Data Store over the existing Session manager?

You can define your schema, store multiple records and insert/update/delete records there just as in a database.

2 Likes

Hi

I can see the insert record option for storing a single record into the data store but how would I loop through multiple records and insert into data store from a serverconnect on the client side.

1 Like

Complete loops and client side workflows, like server connect workflows but client side, are coming very soon :slight_smile:

1 Like

I think this component is going to be a game changer for me, storing variables is great but only lasts on the one page, and i dont really love passing url parameters all over the place, so this should be an amazing addition. Thank you Wappler

3 Likes

So basically this is offline or local db storage…

1 Like

The way I see it yes, I assume it’s reason for being is for mobile apps, where they do not always have an internet connection and need to store data to be sent to the server when there is internet available, but not sure, as if the user closes the browser window then the storage would be lost, so not 100% sure but I think this may be the start of that.

@psweb
actually this example might be a good subject :+1: For example, what can be the most beautiful and practical method in internet problems.

maybe someone can give us good ideas @patrick , @George @Teodor

Great component guys. Nice addition. I will be using it soon.

For wapplers: avoid storing sensitive data in it.

5 Likes