Page 1 of 1

ToDo app

Posted: Sun Feb 03, 2013 10:24 pm
by Latchezar Mladenov

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?


ToDo app

Posted: Sun Feb 03, 2013 10:52 pm
by maxkatz

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.


ToDo app

Posted: Mon Feb 04, 2013 9:25 am
by Latchezar Mladenov

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?


ToDo app

Posted: Mon Feb 04, 2013 10:07 am
by Maryna Brodina

Hello! You would need to create DB to register users


ToDo app

Posted: Sat Sep 07, 2013 4:46 pm
by Deon

Max, where does your code go?


ToDo app

Posted: Sat Sep 07, 2013 5:24 pm
by maxkatz

In mapping, for acl column


ToDo app

Posted: Sat Sep 07, 2013 6:19 pm
by Deon

No acl column


ToDo app

Posted: Sat Sep 07, 2013 7:25 pm
by maxkatz

Create the parameter in Response tab.


ToDo app

Posted: Sat Sep 07, 2013 7:51 pm
by Deon

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.


ToDo app

Posted: Sat Sep 07, 2013 8:13 pm
by Deon

Ok, wow I stumbled across it