Page 1 of 1

saving arrays from localstorage to database

Posted: Tue Jan 20, 2015 2:17 am
by katsuo

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.


saving arrays from localstorage to database

Posted: Tue Jan 20, 2015 6:55 am
by Alena Prykhodko

Hi Katsuo,

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


saving arrays from localstorage to database

Posted: Tue Jan 20, 2015 6:59 am
by katsuo

Hi Alena,

This is not possible?

Thanks.


saving arrays from localstorage to database

Posted: Wed Jan 21, 2015 10:18 am
by Ihor Didevych

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({});
}