Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1281] ACS query sel not working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2014-06-26T09:35:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterThomas Reinberger
AssigneeShuo Liang
Created2014-06-25T16:54:27.000+0000
Updated2016-03-08T07:37:40.000+0000

Description

when I run the query ACS.Events.query({ sel : JSON.stringify({ "all" : ["id", "name", "start_time", "place.name", "place.latitude", "place.longitude", "place", "user", "user.id", "user.username", "participant_0", "participant_1", "participant_2", "participant_3", "participants"] }), .... I receive place.id and place.name amongst other attributes, but no place.latitude, place.longitude. Same for user.username. the "sel"-attribute seems to be entirely ignored. Full source code can be found here: https://github.com/treinberger/mixnmatch-server controllers event.js

Comments

  1. Shuo Liang 2014-06-26

    Hi, Based on your code, the right code should be
       ACS.Events.query ({
             sel : JSON.stringify ({ "all" : ["id", "name", "start_time",  "place", "latitude", "longitude", "username", "participant_0", "participant_1", "participant_2", "participant_3", "participants"] }
       ),
       
    Please read the document about query sel option. http://docs.appcelerator.com/cloud/latest/#!/guide/search_query
  2. Thomas Reinberger 2014-06-26

    Thank you. I read the documentation but misinterpreted it. Closed.

JSON Source