Titanium

[ALOY-409] Collection binding giving error on inline rows in TableView

GitHub Issuen/a
TypeBug
PriorityLow
StatusResolved
ResolutionFixed
Resolution Date2012-11-30T22:39:48.000+0000
Affected Version/sn/a
Fix Version/sAlloy 0.3.3, 2012 Sprint 24
Componentsn/a
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-11-30T21:54:21.000+0000
Updated2018-03-07T22:26:01.000+0000

Description

from Benjamin Hatfield: So, I was experimenting with the binding branch last week with the following code:
<Alloy>
<Collection src="book" />
<Window class="container">
<TableView dataCollection="book" >
<TableViewRow title="{title}" />
</TableView>
</Window>
</Alloy>
And it threw this error: [ERROR] Script Error = 'null' is not an object (evaluating '$model.__transform') at index.js (line 27). I defined a transform function, but I got the same results. I just figured you were still working on it. However, today, I noticed you had a test application for binding and noticed that you use Require. So, I placed my TableViewRow into its own view and required it, and voila, it worked.

Comments

  1. Tony Lukasavage 2012-11-30 Uses appropriate runtime variable name depending on whether the item to be rendered is inline or in a

JSON Source