Community Questions & Answers

Problem with getting data from array

Hi, I have some code which creates a Table View Row for the data in an array. The code works fine up until the event listener. I create a variable stringTitle which is suppose to get the "title" data from each row and the value goes into the...

Passing custom array data to a picker row

Hi, trying to pass the name of the labels on screen into a picker so the user can change the label order. Currently im collecting the label text and pushing it into an array, but having trouble getting that to print inside the picker here's the current...

i18n arrays (w. objects) - How to?

I want to internationalize my app and it works fine with i18n until i try to use arrays (with or without objects) -------- I need to get the length from the array, but its always undefined. -------- Where am I wrong? -------- ### in i18n...

prob of fetching

I have a prob. when displaying a set of choice for such a question questions.fetch({query:'SELECT * FROM '+QUESTION+' WHERE qstId = '+args}); for(var i=0; i< questions.models.length ;i++){ rows.push(questions.models[i].id); //Ti.API.error("afficher...

array parsing

hi I have problem in my project .Actually parsing the data from two url's. first i'm getting the data from business partner table and i'm getting id's and with that id's and calling the data from aduser table ~~~ var getnamearray = [ ]; var...

Problem with returning an array

Hi, I declared an array, then I put data inside and when I make an alerte I see the data I pushed. But when I return the array, it is empty, can someone tell me why ? ~~~ function createAnnotations() { var annoatationData = [];//<----- declaring my...

Variable By Reference

Hello, I'm trying to figure out how to access a variable by reference in Titanium. I've created an array of views, and I want to swap between them at will. I add say view_array[1] to my window, make changes, and then swap to view_array[2]. When I try...

remove particular item from array

Hi - I have an array of objects.... for example ~~~ var myarray = new array(); myarray.push({id:4,name:'matt'}); myarray.push({id:7,name:'matt'}); myarray.push({id:22,name:'matt'}); ~~~ I know the "id", for example "4". How do I...

Alloy.Globals.* array??

I want to use arrays as global variables and read them from .tss file, but Titanium gives me errors when I declared/used like this: alloy.js ~~~ var array = []; array[0] = 64; array[1] = 96; Alloy.Globals.array = array; ~~~ index.tss **(gives me error...

Alloy custom table row

Hi All I am trying to populate a tableview with a simple array of names. The table view has a custom view with a label in it. I am trying to this Alloy, all the examples I have is titanium online. Could anyone please tell me how to pass a simple array...

Skip Button for iPhone

I have a few statements in an array and I'd like to cycle through them with a skip button. I've added an event listener to the button but it only seems to effect the button and not my statements. Here's the code example: ~~~ //Label for Statement var...

Showing 1-50 of 296 1 2 3 4 5 6