Antonio Saioni
Posts: 0
Joined: Thu Jul 02, 2015 12:32 pm

using a js to get a field from users collection

In users collection i've added a field called "categoria" actually if you are a user i need to open the user page and if you are a contractor you'll go to contractor page.
but i'm not able to create a js to extract this information.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

using a js to get a field from users collection

Hi Antonio -

I'm not sure I understand what you are trying to achieve with such approach.

To get data from the database you will need to invoke service, here you can find more details: https://devcenter.appery.io/documenta...

Antonio Saioni
Posts: 0
Joined: Thu Jul 02, 2015 12:32 pm

using a js to get a field from users collection

Hi Illya, the users collection return only id and token and i need another field called "categoria".
honestly i'm not so keen on apperyio, i've read documentation about but i don't understand how get data via js.

and i want to write a js to get from users collection id token and categoria instead of mapping and invoking service

thanks for your patience..

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

using a js to get a field from users collection

Hello Antonio,

You can not read such data before getting from the DB. You are able to get it via service or simple GET request

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

using a js to get a field from users collection

You will need to create your own service for the users table.

https://getsatisfaction.com/apperyio/...

This is what it sounds like you need to do, as am I. I have several new columns on the users table and I rad and update them all the time in my app.

Return to “Issues”