Caio
Posts: 0
Joined: Thu Jan 30, 2014 8:36 pm

Query information of created column - Users Collection

Hi,

I’m trying to query information of a created column in the Users collection using a saved local variable. Is it possible to query information of a created column directly on the Users Collection? Or do I need to create another collection with a pointer to Users?

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Query information of created column - Users Collection

Hello! Sure, it's possible - here is more information http://docs.appery.io/documentation/b... (User queries)

Caio
Posts: 0
Joined: Thu Jan 30, 2014 8:36 pm

Query information of created column - Users Collection

Thanks Maryna, but I don't see where this Database service has been created:

Image

Could you please inform what exactly I should do?

I have all services created for the other collections, except for the Users.

Caio
Posts: 0
Joined: Thu Jan 30, 2014 8:36 pm

Query information of created column - Users Collection

I'm sorry I have figured it out already.

One more question:

I've made a test tying to use the following code to query this tipoUsuario column with a saved local variable:

return '{"tipoUsuario" : "'+value+'"}';

Image

Image

Image

But nothing happens.

I've checked the local variable pointing the response to a Label on the UI and it's being saved correctly.

Image

Thanks

Caio
Posts: 0
Joined: Thu Jan 30, 2014 8:36 pm

Query information of created column - Users Collection

Just one correction.

The code used in the where clause is:

return '{"_id" : "'+value+'"}';

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

Query information of created column - Users Collection

Hello,

When you test the query service in Test tab - Were you getting results from the service?
Are the any errors in browser console when you test app?

Caio
Posts: 0
Joined: Thu Jan 30, 2014 8:36 pm

Query information of created column - Users Collection

Igor,

I got it.

Thank you!

Return to “Issues”