katsuo
Posts: 0
Joined: Tue Jan 20, 2015 2:17 am

saving arrays from localstorage to database

Hi Team,

  1. Image

  2. how to do the ff:
    If row has been found - update this row with needed data.
    If row has not been found - insert new row with needed data.

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

saving arrays from localstorage to database

Hi Katsuo,

Current Mongo DB doesn't provide any bulk actions for users.

katsuo
Posts: 0
Joined: Tue Jan 20, 2015 2:17 am

saving arrays from localstorage to database

Hi Alena,

This is not possible?

Thanks.

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

saving arrays from localstorage to database

Hi Katsuo,

yes, it is.

You sould write a loop inside which will be: - filling params - calling service
something like:
for (var i=0;i< some_length;i++){
USED_Settings_IN_SERVICE.current_id = VALUE_OF_NEXT_ID;
YOUR_SERVICE_NAME.execute({});
}

Return to “Issues”