maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Query Service Does not work when I want to display list based on query.

You need quotes around SuperSpar

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query Service Does not work when I want to display list based on query.

Aaagh, I tried it but must have had the double quotes on the inside of the single quotes or something. Thank you. thank you. I have been battling with this over stupid syntax issue. Thats what happens when you copy code straight from incorrect posts I guess.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query Service Does not work when I want to display list based on query.

Can I use this same method for the acl column. I a post you provided

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query Service Does not work when I want to display list based on query.

I have used this...

var acl = {};
acl[value]= { "read": true, "write": true };
return acl;

but it does not seem to work.

I have noticed that the values in the acl column of the database are enclosed in quotes. Could that be a reason.

I used a list service for this.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Query Service Does not work when I want to display list based on query.

Please show us several screen shots with data/mapping.

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

Query Service Does not work when I want to display list based on query.

Hello!
1) You added request parameter "acl", but it doesn't affect service. If you need to make a search request in column use Query service.
2) You use "acl" field to restrict user access to data. It means when you retrieve data through service permissions from "acl" field will be taken into account. So if current logged user isn't set in "acl" field of some record, servise hides this record. If REST service returns emty list then current user doesn't have necessary permission.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query Service Does not work when I want to display list based on query.

I want to restict user access. On login I set storage variable id with _id from user table.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query Service Does not work when I want to display list based on query.

I want to show all records for logged on user. No filter.

Return to “Issues”