Page 1 of 2

Read user from database

Posted: Thu Dec 10, 2015 7:52 pm
by Nicklas

Hello!

I have created a signup_service that works perfectly, but how can i read out the users from the Predefined collections?


Read user from database

Posted: Thu Dec 10, 2015 8:43 pm
by Illya Stepanov

Hi Nicklas -

Please check out our Database API documentation here: https://devcenter.appery.io/documenta...


Read user from database

Posted: Thu Dec 10, 2015 8:52 pm
by Nicklas

I have seen that but I want to Read the whole ROW when i type in username. Not the _ID


Read user from database

Posted: Thu Dec 10, 2015 9:03 pm
by Nicklas

Is it: {database_url}/users/user_username


Read user from database

Posted: Thu Dec 10, 2015 9:26 pm
by Nicklas

I found it ou with the help of this one: https://getsatisfaction.com/apperyio/...

I needed the session-token to!


Read user from database

Posted: Thu Dec 10, 2015 9:49 pm
by Illya Stepanov

Thanks for the update!


Read user from database

Posted: Thu Dec 10, 2015 10:46 pm
by Nicklas

When I have done this, what do I have to do to get a "value" from the database in javascript?
Eks:

codeif (//Value from a Column in the users is 0)
{
//then do something...
}/code


Read user from database

Posted: Thu Dec 10, 2015 11:33 pm
by Nicklas

I see now that this was a bad explanation from me.
Something happen for every user with the value 0 in a column (name of column: one)


Read user from database

Posted: Fri Dec 11, 2015 7:09 pm
by Serhii Kulibaba

Hello,
Can you provide more details, screenshots or exact steps to reproduce this problem?


Read user from database

Posted: Fri Dec 11, 2015 10:32 pm
by Nicklas

There is no problem. I just want to find out how i can read a value from the database with javascript :) For example the value on the picture. The name of the column is admin.

Image