var refresh = function(){ data = getRowData(); Ti.API.info('Pulling ' + data.length + ' characters'); var moreData = remoteData.pull(data); Ti.API.info('Setting table rows'); table.setData(moreData); };
//Store the fields directly to the rowData characters.push({ charname: name, charserver: server }); rows.next(); } return characters; } Ti.API.info('Doing initial data pull'); var data = getRowData(); Ti.API.info('Setting initial table rows'); exports.read = remoteData.pull(data); exports.person = function Person(name, server){ //Set general object properties this.name = name; this.server = server; this.full_name = function(){ return this.name + " (" + this.server + ")"; }; //Private Method to refresh table rows var refresh = function(){ data = getRowData(); Ti.API.info('Pulling ' + data.length + ' characters'); var moreData = remoteData.pull(data);