Community Questions & Answers

Cloud Query Order Syntax

I want to query images in descending order (I want the newest first). What I have below is not working, they come back randomly every time. ~~~ Cloud.Photos.query({ order: "-created_at", limit: 3, skip: currentQueries*3 } ~~~ What should the...

String matching in ACS

Hi Community, Is there a way of string pattern matching in ACS, e.g ~~~ SELECT * FROM suppliers WHERE supplier_name like '%bob%'; ~~~ In the example above , the query is looking for all suppliers whose name contains the characters 'bob'.

Query Posts in ACS using an array of User Ids

I am using ti.cloud 2.0.5 with SDK 2.0.2 GA on OSX Lion, developing for iOS. I can successfully query posts using a single user_id but I have been unable to pass an array. My overall goal here is to show all posts from my friends. I have successfully...

how to delete item from model anywhere of the app

Hi, I am learning alloy and I am liking it's model thing but I got stuck. somewhere in my code a user is able to kind of flag an item from the tableviewrow. This item's ID is then saved to memory using `Ti.App.Properties` to variable `flaggedId`. I...

What database to work with?

Hey there. Im building my first Titanium application for mobile. Its a very simple application where the idea more or less is to add the users information to a database and then return statistics based on all the user inputted data. Its only based on 3...

How to query the ACS logs

Is there an API to query the ACS logs? I'm adding additional logging on my side, but I need to investigate something that happened recently. There isn't a filter available in the cloud website to narrow down the records. Thanks, John

Parse.com Query Builder

Two questions, 1.) Is there any interest in a Parse.com query builder? Any feedback would be appreciated if you could give it a try: http://parse.whitneyland.com 2.) Would it be better to generate a full Titanium code method ready to drop in, or to...

ACS - Query Users by user ids

Titanium SDK: 3.0.0 GA, **Cloud version: 2.3.0**, Mac OSX 10.8.2 I've been trying to query users by id, I've tried: ~~~ Cloud.Users.query({ page: 1, per_page: 1000, //id:{'$in': contactsArray.join()}, where: { user_ids: {'$in' :...

ACS Complex Where Clause on Custom Fields

All, I am just baffled by the syntax of the where clause used in ACS queries. If someone could kindly help me out, I'd appreciate it. I need to find records where custom_data.fieldX exists and custom_data.fieldX is false Many thanks in advance Bruce

Use "order" in ACS Query.

Im trying to order ACS photos query but "order = created_at" doesnt seem to work. Tips anyone? Codesnippet: Cloud.Photos.query({ page: 1, per_page: 100, order = created_at, }, function (e) { for (var i = 0; i <...

passing string into sqlite select where in (xyz)

i need to pass a string eg '3,7,9' to another js where that then queries an sqlite database using the IN query - ive tried every combination of quotes, doublequotes, escaping etc and cant seem to work it out eg: ~~~ arraylines ='3,7,9'; if...

ACS: Query Places Based on Array of Place IDs

I am trying to query ACS Places based on an array of place IDs. My code looks like this: ~~~ Cloud.Places.query({ per_page: 30, where: { place_id: { '$in': ["506dc85a025afe7c2207100b","507f29659fdb0155d00003c9"] } } },...

Single row output in tableview??

Hi there. I was wondering, how do i only output 1 row in a table output? Im following the example of bountyhunter, but am making a resume for mobile. Im only checking it on IOS at the moment. Should i make a new SELECT query for the tableview? I should...

How to Add a Line Break to an SQLite Query

I have a lot of long queries in an app, and it would be really nice to be able to use line breaks in the query to make it more readable. I can do this in PHP, but every time I do it in Titanium I get a syntax error. Below is a simplified example. This...

Javascript Date and Time format for ACS

I am trying to Query Events by Date: ~~~ ... selectedDate = e.row.date; Ti.API.info(selectedDate); ~~~ Console Traces: `[INFO] 2012-09-30 03:15:57 +0000` ~~~ Cloud.Events.query({ page: 1, per_page: 10, where: { start_time:...

acs custom object field name

is there a way to get the field names stored in a class the following brings me the data from the class Cloud.Objects.query({ classname : 'classname', per_page : 100, where : { user : id } ......... ...... how can I display all fieldnames?

ACS query questions

When I have a login on my app, should I be storing the user_id somewhere after successful login, either as a var within one of my modules, or as an app property? Which one is better and why? Right now, it seems I can query my custom objects without even...

ACS Query for Check-In's

Hello. I currently have a list where i query all the check-ins that the users make. However, the list won't query if a user decides NOT to add a picture to the check-in. Buttomline is: I am giving my users a opportunity to add a photo to their check-in....

query users by location

hi, i would like to query my users based on their location. i have added "coordinates" property to my users. i know i can query custom objects based on location but can i also do that on users? just to make it clear, does the following code is...

how do i get IDs from ACS call

hi, i am working on a moblie app with ACS in titanium studio and i want to get id from a query. i want my code to perform something like this: ~~~ function getUserID(){ var id; Cloud.Users.query({ page: 1, per_page: 10, ...

Json Help

So, I'm developing an android app. I have a search, based on json. I'm getting an error when the answer to the search returns to my javascript. That error looks like the answer returns null, but the answer is written in my UI, so I have no idea what's the...

Problem with "left"

So, I have this code that creates dinamically row into a tableview. As you can see, I have a left:"30 px" defined so that the text wont be to close to the right border of the screen. The problem is that, when I get the result to my query for the...

Showing 1-50 of 71 1 2