Latchezar Mladenov
Posts: 0
Joined: Thu Jan 10, 2013 11:19 pm

ToDo app

I made the tutorial ToDo app but there is a huge issue. When I install the app from many device when i add note it has added on the other phone too. Is there any way to fix this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

ToDo app

Correct, any phone will see all the todo items. It's just how the tutorial is designed. For every user to see his/her todo items only -- you would need to add registration/sign in capability. When you save items, you would add the user id into the ACL column in the database. When you do a get, you will only load items for the currently signed in user.

Here is an example how to set the ACL column from JavaScript:
code
var acl = {};
acl[id]= { "read": true, "write": true };
return acl;
/code

where 'id' is the user id.

Latchezar Mladenov
Posts: 0
Joined: Thu Jan 10, 2013 11:19 pm

ToDo app

Can I make the javascript with loading the start screen with pop up for registration? Is it enough to complete the registration or i should create database for saving the users?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

ToDo app

Hello! You would need to create DB to register users

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

ToDo app

Max, where does your code go?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

ToDo app

In mapping, for acl column

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

ToDo app

No acl column

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

ToDo app

Create the parameter in Response tab.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

ToDo app

How. Sorry but this is not obvious, there are many places to put this code. Can you please be specific. I cannot ad parameters to the Response Tab.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

ToDo app

Ok, wow I stumbled across it

Return to “Issues”