{ "id": "169762", "key": "TIMOB-25274", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-18T19:15:19.000+0000", "created": "2017-09-13T14:28:19.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" }, { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55956", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158372", "key": "TIMOB-22422", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-6134", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } }, { "id": "56249", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "170572", "key": "TIMOB-25595", "fields": { "summary": "Windows: selecting search result with searchbar and in tableview shows empty row", "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": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-02T18:42:02.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen calling setData, child elements of the TableViewRow that have been added once are not added\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nvar data = [];\r\nvar row = Ti.UI.createTableViewRow();\r\nvar lbl = Ti.UI.createLabel({\r\n text: 'label'\r\n})\r\nrow.add(lbl)\r\ndata.push(row);\r\nvar table = Titanium.UI.createTableView({\r\n top: 100,\r\n data: data\r\n});\r\nvar btn = Ti.UI.createButton({\r\n title: 'Add new data',\r\n top: 5\r\n});\r\nbtn.addEventListener('click', function() {\r\n var newData = [];\r\n var newRow = Ti.UI.createTableViewRow();\r\n var newLbl = Ti.UI.createLabel({\r\n text: 'label again'\r\n })\r\n newRow.add(newLbl)\r\n newData.push(newRow);\r\n table.setData(newData)\r\n});\r\nvar oldbtn = Ti.UI.createButton({\r\n title: 'Add old data',\r\n top: 50\r\n});\r\noldbtn.addEventListener('click', function() {\r\n table.setData(data)\r\n})\r\n_window.add(btn);\r\n_window.add(oldbtn)\r\n_window.add(table);\r\n_window.open()\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js and build for Windows\r\n# Click 'Add old data' button\r\n# Click 'Add new data' button\r\n\r\nh5.Actual\r\n\r\n'Add old data' does not add the label to the tableviewrow\r\n\r\nh5.Expected\r\n\r\nThe label should be visible in both cases\r\n", "attachment": [], "flagged": false, "summary": "Windows: setData does not add UI elements that already existed", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.1.2.GA, 6.2.0.v20170912203804, 7.0.0.v20170906135653", "closedSprints": [ { "id": 978, "state": "closed", "name": "2017 Sprint 25 SDK", "startDate": "2017-12-03T23:22:15.144Z", "endDate": "2017-12-17T23:22:00.000Z", "completeDate": "2017-12-18T22:32:02.770Z", "originBoardId": 114 }, { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 984, "state": "closed", "name": "2017 Sprint 26 SDK", "startDate": "2017-12-17T22:34:59.726Z", "endDate": "2017-12-31T22:34:00.000Z", "completeDate": "2018-01-02T16:57:05.655Z", "originBoardId": 114 }, { "id": 985, "state": "closed", "name": "2018 Sprint 01 SDK", "startDate": "2017-12-31T16:58:54.631Z", "endDate": "2018-01-14T16:58:00.000Z", "completeDate": "2018-01-17T22:44:27.028Z", "originBoardId": 114 }, { "id": 990, "state": "closed", "name": "2018 Sprint 02 SDK", "startDate": "2018-01-14T22:48:43.544Z", "endDate": "2018-01-28T22:48:00.000Z", "completeDate": "2018-01-29T16:22:42.911Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427839", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This looks to have started somewhere along the 6_0_X -> 6_1_X path", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-13T14:35:21.000+0000", "updated": "2017-09-13T14:35:21.000+0000" }, { "id": "431828", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1166", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-12-07T07:17:05.000+0000", "updated": "2017-12-07T07:17:05.000+0000" }, { "id": "435124", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket; Verified fix in SDK Version: 7.1.0.v20180228160738 and SDK Version: 7.2.0.v20180301101144.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-02T18:41:48.000+0000", "updated": "2018-03-02T18:41:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }