[AC-2081] iOS & Android: rowData attribute for TableViewRow click event is null if custom property is provided in constructor
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-02T01:18:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | clickEvent, rowdata, tableview, tableviewrow |
Reporter | Markus Wutzler |
Assignee | Mauro Parra-Miranda |
Created | 2012-11-26T10:56:20.000+0000 |
Updated | 2016-03-08T07:41:03.000+0000 |
Description
It seems that the click event doesn't provide the rowData attribute anymore. Everything worked fine in 2.1.3GA but since 2.1.4 the rowData attribute seems to be null.
Or is there a special assignment for variables i want to retrieve via rowData?
It would help if you could provide a small test case that we can drop into a project and run. In the meantime, did you try using "row" instead of "rowData"?
The issue only occurs if the additional item is specified within a create Method:
In this example you cannot ask for e.rowData.myCustomInfo but only for e.source.myCustomInfo.
In this case myCustomInfo is available as e.rowData.myCustomInfo. For now i think this is no bug, but maybe this could be added to the documentation. In case you think it's not a bug, you can close the ticket.
Looks like a bug to me. It would speed things up if you could put together a two-part test case for this, and if I can reproduce I'll move it to TiMob. Cheers.
Ok, I'll try to provide this as soon as possible.