Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

Is it posible select from collections where the active token?

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!!

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Is it posible select from collections where the active token?

Hello,

Can you show us you request parameters.

Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

Is it posible select from collections where the active token?

< 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..

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Is it posible select from collections where the active token?

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...

Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

Is it posible select from collections where the active token?

Thanks!! I'll check it..

Return to “Issues”