Page 1 of 1

Is it posible select from collections where the active token?

Posted: Sun Jul 21, 2013 3:08 am
by Romeo

I tried to put the token y a column y then select only the item form the active user, but i can't get the values!!


Is it posible select from collections where the active token?

Posted: Sun Jul 21, 2013 4:35 am
by Igor

Hello,

Can you show us you request parameters.


Is it posible select from collections where the active token?

Posted: Sun Jul 21, 2013 6:18 am
by Romeo

< Query_service

< X-Appery-Database-Id
X-Appery-Session-Token
where .... then added a js. with --- return'{"token column ":"value "}';
trying to get only the items with the user logged in..


Is it posible select from collections where the active token?

Posted: Sun Jul 21, 2013 3:46 pm
by Igor

when you put/update values in collection you should have additional field "isActive" and put value "true" or "false" ("0" or "1"). Then select values where "isActive" is "true".
We have a good tutorial about "Backend Services" queries : http://docs.appery.io/documentation/b...


Is it posible select from collections where the active token?

Posted: Sun Jul 21, 2013 7:39 pm
by Romeo

Thanks!! I'll check it..