{ "id": "117755", "key": "TIMOB-14693", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-05T19:51:27.000+0000", "created": "2013-07-30T00:21:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.3.0", "qe-closed-3.1.2", "qe-nfc", "qe-port", "qe-testadded", "sdk-bb" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-17T23:33: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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Description:\r\n1. Create a BB app with the following code:\r\n{code}\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Test 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Test 1',\r\n window:win1\r\n});\r\n\r\nvar table = Ti.UI.createTableView({\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n data: [\r\n {title: 'row 1', header: 'section 1', subHeader: 'sub header of section 1'},\r\n {title: 'row 2'},\r\n {title: 'row 3'},\r\n {title: 'row 4'},\r\n {title: 'row 5'},\r\n {title: 'row 1', header: 'section 2'},\r\n {title: 'row 2'},\r\n {title: 'row 3'},\r\n {title: 'row 4'},\r\n {title: 'row 5'},\r\n {title: 'row 1', header: 'section 3'},\r\n {title: 'row 2'},\r\n {title: 'row 3'},\r\n {title: 'row 4'},\r\n {title: 'row 5'},\r\n {title: 'row 1', header: 'section 4', subHeader: 'sub header of section 4'},\r\n {title: 'row 2'},\r\n {title: 'row 3'},\r\n {title: 'row 4'},\r\n {title: 'row 5'},\r\n {title: 'row 1', header: 'section 5'},\r\n {title: 'row 2'},\r\n {title: 'row 3'},\r\n {title: 'row 4'},\r\n {title: 'row 5'}\r\n ]\r\n});\r\n \r\nwin1.add(table);\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Test 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Test 2',\r\n window:win2\r\n});\r\n\r\nvar d = [];\r\nfor(var i = 0; i < 10; i++) {\r\n var section = Ti.UI.createTableViewSection({\r\n title: 'Hello section number ' + i,\r\n subTitle: 'This is a subtitle for section #' + i\r\n });\r\n \r\n for(var a = 0; a < 10; a++) {\r\n section.add(Ti.UI.createTableViewRow({\r\n title: 'Section #' + i + ' Row #' + a\r\n }));\r\n }\r\n d.push(section);\r\n}\r\n \r\nvar table1 = Ti.UI.createTableView({\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n data: d\r\n});\r\n \r\nwin2.add(table1);\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\ntabGroup.open();\r\n{code}\r\n\r\n2. Build & run on BB device/simulator\r\n3. Go To test 2 tab.\r\n4. Look at the header for sections \r\n\r\nActual result:\r\n1. We do not see the headers for sections instead we get header same as the subTitle.\r\nThis happens only for Ti.UI.createTableViewSection not for Ti.UI.createTableView", "attachment": [], "flagged": false, "summary": "BlackBerry: No header text on TableViewSection", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nTi Studio : 3.1.1.201306112235\r\nTi BB SDK : 3.1.2.v20130726192706\r\nMac OSX : 10.8.4\r\nAlloy : 1.20-alpha\r\nCLI - 3.1.1\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "263836", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We see this behaviour for alloy apps too.", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-30T00:36:30.000+0000", "updated": "2013-07-30T00:36:30.000+0000" }, { "id": "263944", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/140", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-30T15:40:23.000+0000", "updated": "2013-07-30T15:40:23.000+0000" }, { "id": "265815", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with the provided classic project sample in the description.\n\nAlloy sample project\n{code}\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n{code}\n\nTitanium SDK 3.1.2.v20130808180613 \nAlloy 1.2.0-alpha6\nAppcelerator Studio 3.1.2.201308071912\nCLI 3.1.2-alpha\nNode 0.10.13\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-09T22:26:16.000+0000", "updated": "2013-08-09T22:26:16.000+0000" }, { "id": "279387", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311122225\nTitanium SDK, build: 3.2.0.v20131113094843\nCLI: 3.2.0\nAlloy: 1.3.0\nBlackBerry Simulator: 10.2.0.1791\n\nCode from description and code provided by Federico.\nTable view shows header text, subheader text and tablerow text.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T19:29:56.000+0000", "updated": "2013-11-13T19:29:56.000+0000" }, { "id": "307416", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201405271647\r\nTitanium SDK, build: 3.3.0.v20140603032057 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-beta \r\nnpm@1.3.2 \r\ntitanium@3.3.0-beta2 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)\r\n\r\nand encountered the original issue. Reopened.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-03T22:12:31.000+0000", "updated": "2014-06-03T22:12:31.000+0000" }, { "id": "307713", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/262", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-05T19:51:14.000+0000", "updated": "2014-06-05T19:51:14.000+0000" }, { "id": "308389", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified fixed with:\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201406061445\r\nTitanium SDK, build: 3.3.0.v20140609184912 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-beta \r\nnpm@1.3.2 \r\ntitanium@3.3.0-beta2 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)\r\n\r\nTable view shows header text, subheader text and tablerow text.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-10T23:18:32.000+0000", "updated": "2014-06-10T23:18:32.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }