Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (order)
Browsing index pages (21 articles)

Having trouble with ACS query

I have custom objects that I am trying to retrieve 2 at a time and display the most recently updated first. The problem is when I set "order=updated_at" or "order=-updated_at" it both pulls the oldest...

View Article


5 Buttons Clicked in Order Prompt Alert

Hey all, I wanted to it so that when 5 buttons are pressed in correct order an alert shows, and if buttons are not clicked in order another alert shows... For example: A, B, C, D & E to be pressed...

View Article


Multiple Buttons Clicked in Order Prompt Alert

Hello, i want to make it so that when 9 buttons are pressed in order an alert is prompted. the code below works with 3 buttons however i want to expand to 9 buttons but I'm finding it very difficult....

View Article

Button Plays 2 Sounds in Order

Hey all, i want the playButton to play the goatsound first, than play the roostersound. With the code below, they both play at the same time!! please help! var goatsound =...

View Article

Buttons plays 3 sounds in order

Hey all, i want to make a button play 3 sounds in the order that i choose, with the code that i have below,they all play at the same time. note:each sound has a button attached to it and when the sound...

View Article


3 Buttons Clicked in Order Prompt Alert

Hey all, I want an alert to appear when 3 buttons are pressed in a specific order. For example i have 3 buttons of 'A', 'B' & 'C'. If buttons are pressed in alphabetical order, an alert will show...

View Article

How to save dashboard items order?

Hi guys, I'd like to ask you for help. I created DashboardView with 20 items. When my app starts, it's everything OK. Problem shows, when user edits order of the Dashboard items. I don't know how...

View Article

OptionDialog - sorting / order of the possible options gets scrambled

I'm generating an OptionDialog based on a hash of key:label pairs, where the key is a value that is send to an API. The order of the hash gets scrambled when I'm generating an array for the...

View Article


How to sort a collection, particularly descending

I was going to ask this question, but I found an answer so I thought I should post it since I hadn't seen this in the Q&A. Is this the most appropriate way to handle sorting a collection? Sort in...

View Article


Save reordered tableview data in db?

Hi there, I have a tableview which the user can reorder the items and that's great. However, when the user closes the app, the reordering is lost. Btw, the data is stored in a sqlite database. Does...

View Article

sqlite question (pro, I think)

I don't really know how to get this problem solved. I want to order a sql request by field which is changed before. Let's say the sql is as follow:SELECT title FROM library ORDER BY author ASCThe...

View Article

node.ACS CustomObjects order not correct

Does Cloud.Objects.query order by work like this? I'm guess not because it's not working for me. I created a custom object (Provider) that contains a string name lastName. I then loop through the list...

View Article

Using order with Cloud.Objects

Does Cloud.Objects.query order by work like this? I'm guess not because it's not working for me. I created a custom object (Provider) that contains a string name lastName. I then loop through the list...

View Article


Order tableviewrow by calculated distance

Hi guys, can anyone help me out with ordering tableviewrows by calculated distance. I've got a while loop where I fetch all the data from my database. Inside my while loop I calculate the distance for...

View Article

ACS Order place by nearest

Hello. I am trying to order at list by nearest place. This is working fine with this code:Cloud.Places.query({ page: 1, per_page: 20, where: { lnglat: { '$nearSphere': [latitudefast,longitudefast], }...

View Article


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...

View Article

Sorting of database information

Hi i have a local database when called, are not sorted in alphabetical order. what it does not is just pulling out data from the database in the order i saved it initially. I would like my database...

View Article


ACS - Custom Object Sorting Not Working

Hello, It seems that when I request returned results to be order by any custom field (i.e. not last_updated etc..) on a custom object, the returned results are in any order. Code: var sdk = new...

View Article

Swap children in horizontal view

Hi, I have a horizontal view and I need to swap the children so that two elements take each other's original position. Now myView.children is read-only , is there some way in which the following can be...

View Article

disable json.parse sort

Is there a way to disable the standard sorting in a json.parse ? i put in a object with {[1]{item:sad,item2:asda},[2]{item:sdasdw,item2:123a}) and so on.. and it gives them back in an order not...

View Article
Browsing index pages (21 articles)


Latest Images