Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2053] Blackberry: Tableview.setData crash

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-06-17T13:19:16.000+0000
Affected Version/sn/a
Fix Version/sBB Preview 2
ComponentsiOS
Labelsblackberry, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T03:09:08.000+0000
Updated2011-06-17T13:19:16.000+0000

Description

See http://developer.appcelerator.com/helpdesk/view/48551">Helpdesk 48551

Example:

var win = Ti.UI.currentWindow;
 
var data = [
 
    {title:'I am row text 1', rightImage:'images/folder.png', leftImage:'images/report.png'},
    {title:'I am row text 2', rightImage:'images/folder.png', leftImage:'images/report.png'},
    {title:'I am row text 3', rightImage:'images/folder.png', leftImage:'images/report.png'},
    {title:'I am row text 4', rightImage:'images/folder.png', leftImage:'images/report.png'},
    {title:'I am row text 5', rightImage:'images/folder.png', leftImage:'images/report.png'},
    {title:'I am row text 6', rightImage:'images/folder.png', leftImage:'images/report.png'}
 
];
 
var data1 = [
 
    {title:'new row text one', rightImage:'images/folder.png', leftImage:'images/report.png'},
    {title:'new row text two', rightImage:'images/folder.png', leftImage:'images/report.png'}
];
 
 
var tableview = Ti.UI.createTableView({data:data, rowHeight:120});
 
tableview.addEventListener('click', function(e)
{
    tableview.setData(data1);
    /*var w = Ti.UI.createWindow();
    var l = Ti.UI.createLabel({text:'you clicked row ' + e.index});
    w.add(l);
    w.open();*/
});
 
win.add(tableview);
 
win.open();

Comments

  1. Dawson Toth 2011-04-15

    We have another customer interested in this.

    Additional HD Ticket

    http://developer.appcelerator.com/helpdesk/view/67271">http://developer.appcelerator.com/helpdesk/view/67271

  2. Jon Alter 2011-06-17

    Closing because no longer applicable to current version of BlackBerry

JSON Source