Page 1 of 1

insert new data and update at the same time

Posted: Tue Jan 13, 2015 2:28 am
by She

Hi Team.
Im confusing if this is possible screenshot is in below:

Image

if this is possible please help me out. . .
.
Thank you,


insert new data and update at the same time

Posted: Tue Jan 13, 2015 4:34 am
by Yurii Orishchuk

Hi Sherwin,

It's not currently clear about your problem.

If you need to work with single row(in db collection) - you should link this row to some thing.. For example deviceID or userId.

So workflow will be:

  1. App starts.

  2. Get deviceid/userid.

  3. Get row from collection by deviceid/userid.

  4. If row has been found - update this row with needed data.

  5. If row has not been found - insert new row with needed data.

    That's all.

    Regards.