TableViewRows not showing up

You must Login before you can answer or comment on any questions.

I'm having some problems with a TableView I'm trying to create for my app. I'm using REST to pull information from a website I'm developing. The information comes back the way it's supposed to but when I try to add them to my tableview it just shows blank rows.

The console also outputs a bunch of these warnings:

[WARN] [object TiUITableViewRow] has an auto height value of 0, meaning this view may not be visible.

What am I doing wrong? I'm very new to the Titanium Mobile SDK so any help would be appreciated.

//Put the data together to put it inside a TableView
                var itemList = response.documentElement.getElementsByTagName('item');
 
                tableviewArray = [];
 
                for (var i = 0; i < itemList.length; i++)
                {
                    //alert(itemList.item(i).nodeValue);
                    //var foo = itemList.item(i).getElementsByTagName("item").item(0).text;
                    //tableViewArray.push({Title:foo});
 
                    var foo = "";
                    var foo = itemList.item(i).textContent;
                    tableviewArray.push( {Title: foo} );
                };
 
                //Add the professionsTable to our window
                var myTableView = Titanium.UI.createTableView({data: tableviewArray});
                self.add(myTableView);
            }
Thanks, Dro Sarhadian

1 Answer

Accepted Answer

Hi Dro,

I think Instead of using Title you need to use title.

Your Answer

Think you can help? Login to answer this question!