Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25517] Android: TableViewProxy unable to create table view row proxy for object

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-12-15T20:48:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.0.1
ComponentsAndroid
Labelsandroid, merge-7.0.1
ReporterPatrick Reichardt
AssigneeYordan Banev
Created2017-11-15T15:15:27.000+0000
Updated2017-12-20T22:02:04.000+0000

Description

Adding a TableViewSection to a TableView leads to the following error on Android and the table is not displayed. The code under iOS displays the Table (see screenshots)
[ERROR] TableViewProxy: (main) [38,38] Unable to create table view row proxy for object, likely an error in the type of the object passed in...
index.xml
<Alloy>
    <Window backgroundColor="white">
        <TableView id="table">

        </TableView>
    </Window>
</Alloy>
tableViewSection.xml
<Alloy>
    <TableViewSection id="tableSection">

    </TableViewSection>
</Alloy>
index.js
var firstSection = Alloy.createController('tableViewSection', {  headerTitle: 'First section' }).getView();

$.table.insertSectionBefore(0, firstSection);

$.index.open();

Attachments

FileDateSize
android-screenshot.png2017-11-15T14:46:29.000+0000328434
iPhone-8-Plus-screenshot.png2017-11-15T14:46:35.000+000093240
TableViewApp.zip2017-11-15T15:09:21.000+00001683

Comments

  1. Yordan Banev 2017-11-16

    PR: https://github.com/appcelerator/titanium_mobile/pull/9609
  2. Christopher Williams 2017-11-29

    CR is good, unit test works now, so that's good. Just need QE's blessing to merge (I assume we need to wait for 7.0.1 at this point).
  3. Yordan Banev 2017-11-30

    7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9640
  4. Lokesh Choudhary 2017-12-11

    FR passed for master & backport. Waiting for merge to get enabled.
  5. Lokesh Choudhary 2017-12-15

    Resolving as 7.0.1 PR is merged. Will merge master later.
  6. Lokesh Choudhary 2017-12-20

    Master PR merged.
  7. Samir Mohammed 2017-12-20

    Closing ticket. Verified Fix in SDK version 7.0.1.v20171218104141 and 7.1.0.v20171220095337. Test and other information can be found at: Master: https://github.com/appcelerator/titanium_mobile/pull/9609 7.0.x: https://github.com/appcelerator/titanium_mobile/pull/9640

JSON Source