{ "id": "164427", "key": "TIMOB-24116", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-24T12:28:56.000+0000", "created": "2016-11-08T14:11:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "55222", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158455", "key": "TIMOB-22505", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-15015", "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": "53420", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158462", "key": "TIMOB-22512", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-15646", "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 } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:57:35.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\n*This only occurs when the data property is set before the headerTitle/headerView property*\r\n\r\n\r\nWhen attempting to set either a headerView or a headerTitle on a tableview the property is not reflected.\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar data = [{title: 'Alan'}, {title: 'Alice'}, {title: 'Alexander'}, {title: 'Amos'}, {title: 'Alonzo'}, {title: 'Brad'}, {title: 'Brent'}, {title: 'Billy'}, {title: 'Brenda'}, {title: 'Potsie'}];\r\nvar header = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n height: 100\r\n});\r\nvar tableview = Titanium.UI.createTableView({\r\n data: data,\r\n headerTitle: 'This is a test-test',\r\n // headerView: header\r\n});\r\n_window.add(tableview);\r\n_window.open();\r\n{code}\r\n\r\n*Workaround*\r\n\r\nMove the data property after the headerTitle/headerView\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js\r\n# Build for Windows Platform\r\n\r\nh5.Actual result\r\n\r\nheaderTitle and headerView are not set\r\n\r\nh5.Expected result\r\n\r\nheaderTitle and headerView should be set", "attachment": [], "flagged": false, "summary": "Windows: TableView.headerView/headerTitle cannot be set after setting data", "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": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-69\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161107075927", "closedSprints": [ { "id": 758, "state": "closed", "name": "2016 Sprint 24 SDK", "startDate": "2016-11-19T01:32:06.991Z", "endDate": "2016-12-03T01:32:00.000Z", "completeDate": "2016-12-05T01:53:38.311Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "400582", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This only happens when the data property is set before the headerTitle/headerView, reducing severity to minor and adding workaround", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-11-08T14:33:55.000+0000", "updated": "2016-11-08T14:33:55.000+0000" }, { "id": "401734", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/896", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-23T04:07:26.000+0000", "updated": "2016-11-23T04:07:26.000+0000" }, { "id": "440373", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed tickets from 2016 and earlier. If this ticket should not have been closed, please reopen it.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:57:35.000+0000", "updated": "2018-08-06T17:57:35.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }