{ "id": "121033", "key": "TIMOB-15451", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-11-18T18:49:21.000+0000", "created": "2013-10-10T07:24:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "iOS7", "listview", "qe-closed-3.2.2" ], "versions": [], "issuelinks": [ { "id": "33269", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "121397", "key": "TIMOB-15541", "fields": { "summary": "iOS: ListView - appendSection() will not display items in the ListView when opening a new window for the first time", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-10T08:50:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "After setting a ListView with custom template in a navigation window, the listItems are not correctly displayed first time when you use appendSection(). \r\n\r\nTitanium SDK version 3.2.0.v20131009134844 : KO\r\n\r\nworks with 3.1.4\r\n\r\nSee below for test case.", "attachment": [], "flagged": false, "summary": "iOS: ListView with custom Template in navigationWindow : listItems not displayed first time when calling appendSection()", "creator": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "environment": "Ti SDK 3.2\r\nIOS 7\r\nXCdode 5", "comment": { "comments": [ { "id": "274564", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "TEST CASE\n\nclick on 'dataset' to display the listView in the second window:\nresult : Section not displayed\nGo Back\nclick again on dataset: the Sections are displayed\n\n{code}\n\ndetailTemplate = {\n\t\n childTemplates: [\n \n { \n type: 'Ti.UI.Label', \n bindId: 'theName', \n properties: { \n \n \tcolor:'black',\n font:{fontSize:14,fontWeight:'bold'},\n\t\t\t\ttop:1,\n\t\t\t\tleft:8,\n\t\t\t\t\n }\n },\n { \n type: 'Ti.UI.Label', \n bindId: 'theCategorie', \n properties: { \n \t \n \tcolor:'darkGray',\n \tfont:{fontSize:14,fontWeight:'bold'},\n\t\t\t\tbottom:1,\n\t\t\t\tleft:8,\n\t\t\t\t\t\t\t\t\n }\n },\n \n ]\n};\n\n\nvar b1 = Ti.UI.createButton({\n\ttitle : 'dataset1',\n\ttop:20,\n});\n\n\nb1.addEventListener('click', function() {\n\t\n\tvar data1 = [\n\n \t{ theName: { text: 'Row 1'},theCategorie:{ text: 'Cat 1'} },\n \t{ theName: { text: 'Row 2'},theCategorie:{ text: 'Cat 2'} },\n \t{ theName: { text: 'Row 3'},theCategorie:{ text: 'Cat 3'} }\n \n ];\n \n \n\tvar listSection1 = Titanium.UI.createListSection({items: data1,headerTitle: 'Data1 Custom Item Template'});\n\tlistView.appendSection(listSection1);\n\t\n\t rootWin.openWindow(win2);\n});\n\n\nvar win1= Ti.UI.createWindow({title:'Custom Item Template'});\nwin1.add([b1,]);\n\n\nvar win2 = Ti.UI.createWindow();\n\nvar listView = Titanium.UI.createListView(\n\t\n\t\t\t\t\t{templates: { 'detailTemplate':detailTemplate },\n\t\t\t\t\tdefaultItemTemplate: 'detailTemplate',\n\t\t\t\t}\n);\n\t\n\t\t\nlistView.addEventListener('itemclick', function(e){\n\t\n\t//alert ( JSON.stringify(e));\n\tTi.API.info(JSON.stringify(e));\n\tvar item = e.section.getItemAt(e.itemIndex);\n\tTi.API.info(JSON.stringify(item));\n\t\n\t\t\n});\n\nwin2.add(listView);\n\nvar rootWin = Ti.UI.iOS.createNavigationWindow({window:win1});\nrootWin.open();\n\n\n{code}", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-10-10T07:26:17.000+0000", "updated": "2013-10-10T07:26:17.000+0000" }, { "id": "296274", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ListView with custom template working fine.\r\nHence closing the issue.\r\n\r\nUsed the below mentioned code to test.\r\n\r\nAppc Studio:3.2.2.201402280732\r\nSdk:3.2.2.v20140305122111\r\nalloy:1.3.1\r\ntitanium:3.2.1\r\ntitanium-code-processor:1.1.0\r\nXcode: 5.1 Beta 5\r\nOsx: Maverick(10.9.2)\r\nDevice:iPod Touch3(v7.1 beta5)", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T08:50:08.000+0000", "updated": "2014-03-10T08:50:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }