Vaidotas Ražaitis
Posts: 0
Joined: Sat Jan 04, 2014 9:52 pm

Data from different database collections

Hey,

I got a question regarding data from different collections.
I developing an application where users can place their orders.
Currently i'm getting all the data from application into database collection named "Orders_DB". But you all know that device_id's default storage is predefined collection called "Device Data". What i want to do is to get the Device_id stored in "Orders_DB" collection near the order details. This is to know which order was sent from which device.
Because afterwards i want to send Push Notification to the user's device so he would know that his order was started to be processed.

Maybe i can store Device_id as local storage variable and upload it with all other data?

Please advice :)

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Data from different database collections

Hello!

You can use localStorage in this purpose.
The following will be useful
http://docs.appery.io/documentation/b...
https://getsatisfaction.com/apperyio/...

Vaidotas Ražaitis
Posts: 0
Joined: Sat Jan 04, 2014 9:52 pm

Data from different database collections

Guys,

I am still struggling with this one :P
I am still trying to get DeviceID stored as local storage variable, but that doesn't seem to work for me :P

Image

As you can see from the image above i am using Push_Service_Registration service to get deviceID stored into local storage variable Device_ID.

Image

Here i am using Customers_DB_Orders_DB_create_service service to store all local storage variables along with Device_ID into database.

I get all other variables stored into Database, except Device_ID...

Please help me out :D What am i doing wrong? :D

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Data from different database collections

Hello,

It's not clear how exactly you are saving 'Device_ID' in localStorage -- on your screenshots you are mapping it to Reqest parametr only. Can you show the code you using for initialyzing localStorage variable 'Device_ID'?

Return to “Issues”