Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

How to read Array from database?

Hi!
In my DB i have a Column that is an Array.
Image

How do i get/list up those?

I've tried with the link bellow but thats more for listing up rows, not one column (Array).
https://docs.appery.io/docs/database-...

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to read Array from database?

Hello Nicklas,

You can read an array column at the same way as you read all other columns.
Could you clarify what you have tried and what exactly does not work?

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

How to read Array from database?

Ok, we can use the "Channels" in the device-collection as an example.
What I need, is to change f.eks. one of the channels.

Lets say that the channels is [1,2,6] and i want to change it to [1,3,6].

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to read Array from database?

Please look at this example how to update a collection "Devices": https://docs.appery.io/reference#push...

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

How to read Array from database?

I have seen that one but I dont understand how to set up the Body in the request of the service. Is it like this?
Image

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

How to read Array from database?

I found this one now. I will look into that one. Thank you so far :)
https://docs.appery.io/reference#data...

Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

How to read Array from database?

I have tried for 2 hours now to create a mapping to send array to the DB, but I cant make it work. Could you make an example of mapping to me?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to read Array from database?

Nicklas,

Unfortunately the creation of such a sample would require additional development time, but I hope this link could be useful for you:
https://getsatisfaction.com/apperyio/...

Return to “Issues”