Update happens only on the last row, instead of first
<pre><code>function createTextFields(obj) {
    for (var i = 0; i &lt; obj.length; i++) {
        var dataDump = {};
        for (var key in obj[i]) {
            var textField = Ti.UI.createTextField(pm.combine($$.labelBrown, {
            left: 200,
            height:35,
            value:obj[i][key],
            width:550,
            keyboardType:Ti.UI.KEYBOARD_NUMBER_PAD,
            layout:'horizontal',
            backgroundColor:'transparent',
            id:i
         }));

            dataDump[key] = textField.value;
            var callback = function (vbKey) {
                    return function (e) {
                        dataDump[vbKey] = e.source.value;
                    };
                }(key);
        }
        globalData.push(dataDump);
    }

}
</code></pre>

<p>I am using the simlar code for Adding the data and it works fine. I posted the problem yesterday and it got resolved... </p>

<p><a href="http://stackoverflow.com/questions/7095288/last-object-is-always-getting-updated">Last Object is always getting updated?</a></p>

<p>Now when i go to edit page, it shows me four text fields or number of text fields added... now when i edit something and click on save... the value get's updated on the fourth or the last TextFields Object... </p>
