She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

insert new data and update at the same time

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

Image

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

insert new data and update at the same time

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.

Return to “Issues”