{ "id": "176134", "key": "AC-6688", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-03-24T19:31:06.000+0000", "created": "2021-03-23T15:25:31.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-03-24T22:18:13.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": [], "description": "When trying to insert a row in any section below the first section it doesn't work on Android but it works on iOS as it should be.\r\n\r\nSo insertRowAfter / insertRowBefore doesn't work.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar sectionOne = Ti.UI.createTableViewSection({\r\n headerTitle: 'Section One'\r\n});\r\nsectionOne.add(Ti.UI.createTableViewRow({\r\n title: 'Row 1'\r\n}));\r\nsectionOne.add(Ti.UI.createTableViewRow({\r\n title: 'Row 2'\r\n}));\r\n\r\nvar sectionTwo = Ti.UI.createTableViewSection({\r\n headerTitle: 'Section Two'\r\n});\r\nsectionTwo.add(Ti.UI.createTableViewRow({\r\n title: 'Row 3'\r\n}));\r\nsectionTwo.add(Ti.UI.createTableViewRow({\r\n title: 'Row 4'\r\n}));\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: [sectionOne, sectionTwo]\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: \"Add Row\",\r\n bottom: 16\r\n});\r\nbutton.addEventListener('click', () => {\r\n var row = Ti.UI.createTableViewRow({\r\n title: \"New Row\"\r\n });\r\n\r\n table.insertRowAfter(2, row, {\r\n animated: true\r\n });\r\n});\r\n\r\nwin.add(table);\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Tableview insertRowAfter/Before works with first section only", "creator": { "name": "ahmed.mohamed20320", "key": "ahmed.mohamed20320", "displayName": "Ahmed Mohamed", "active": true, "timeZone": "Africa/Cairo" }, "subtasks": [], "reporter": { "name": "ahmed.mohamed20320", "key": "ahmed.mohamed20320", "displayName": "Ahmed Mohamed", "active": true, "timeZone": "Africa/Cairo" }, "environment": null, "comment": { "comments": [ { "id": "458478", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This has been fixed in the latest {{master}} and {{10_0_X}} branches.\r\n\r\n*TEST CASE*\r\n{code:js}\r\nconst win = Ti.UI.createWindow();\r\n\r\nfunction createSection(header, rows) {\r\n\tconst section = Ti.UI.createTableViewSection({\r\n\t\theaderTitle: header\r\n\t});\r\n\r\n\tfor (let i = 0; i < rows; i++) {\r\n\t\tsection.add(\r\n\t\t\tTi.UI.createTableViewRow({ title: `Row #${i}` })\r\n\t\t);\r\n\t}\r\n\r\n\treturn section;\r\n}\r\n\r\n\r\nconst table = Ti.UI.createTableView({\r\n data: [\r\n \tcreateSection('Section #0', 3),\r\n \tcreateSection('Section #1', 3),\r\n \tcreateSection('Section #2', 3),\r\n\t]\r\n});\r\n\r\ntable.addEventListener('click', e => {\r\n\ttable.insertRowAfter(\r\n\t\te.index,\r\n\t\tTi.UI.createTableViewRow({ title: `New After Row #${e.index}` })\r\n\t);\r\n\ttable.insertRowBefore(\r\n\t\te.index,\r\n\t\tTi.UI.createTableViewRow({ title: `New Before Row #${e.index}` })\r\n\t);\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-24T19:28:07.000+0000", "updated": "2021-03-24T19:30:03.000+0000" }, { "id": "458480", "author": { "name": "ahmed.mohamed20320", "key": "ahmed.mohamed20320", "displayName": "Ahmed Mohamed", "active": true, "timeZone": "Africa/Cairo" }, "body": "I haven't seen any related ticket but after build 9_3_x I confirm this issue has been resolved. Thanks", "updateAuthor": { "name": "ahmed.mohamed20320", "key": "ahmed.mohamed20320", "displayName": "Ahmed Mohamed", "active": true, "timeZone": "Africa/Cairo" }, "created": "2021-03-24T22:18:13.000+0000", "updated": "2021-03-24T22:18:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }