{ "id": "170907", "key": "TIMOB-25692", "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-02-22T00:23:52.000+0000", "created": "2018-01-22T20:14:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19988", "description": "", "name": "Release 7.0.1", "archived": false, "released": true, "releaseDate": "2017-12-21" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49:36.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": "Hello, \r\nWhen creating a picker on windows and populating it after the view has been opened the change event does not fire. \r\n\r\n*Test Environment:*\r\nAppcelerator Command-Line Interface, version 7.0.1\r\nSDK: 7.0.1.GA\r\nOperating System \r\nName = Microsoft Windows 10 Enterprise 2016 LTSB \r\nWindows 10 emulator\r\n\r\n*Test Code:*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n{code}\r\nindex.js\r\n{code}\r\nfunction populatePicker(e) {\r\n\tvar column = Ti.UI.createPickerColumn();\r\n\tvar pickerRow1 = Ti.UI.createPickerRow({\r\n\t\ttitle: 'One'\r\n\t});\r\n\tvar pickerRow2 = Ti.UI.createPickerRow({\r\n\t\ttitle: 'Two'\r\n\t});\r\n\tcolumn.addRow(pickerRow1);\r\n\tcolumn.addRow(pickerRow2);\r\n\t$.picker.add([column]);\r\n}\r\n\r\nfunction createPicker(e) {\r\n\tvar picker = Ti.UI.createPicker({\r\n\t\ttop: 200,\r\n\t\twidth: Ti.UI.FILL,\r\n\t\theight: 60,\r\n\t\tbackgroundColor: 'white'\r\n\t});\r\n\t$.win.add(picker);\r\n\tvar column = Ti.UI.createPickerColumn();\r\n\tvar pickerRow1 = Ti.UI.createPickerRow({\r\n\t\ttitle: 'One'\r\n\t});\r\n\tvar pickerRow2 = Ti.UI.createPickerRow({\r\n\t\ttitle: 'Two'\r\n\t});\r\n\tcolumn.addRow(pickerRow1);\r\n\tcolumn.addRow(pickerRow2);\r\n\tpicker.add([column]);\r\n\tpicker.addEventListener('change', function(){\r\n\t\talert('Created Picker Changed');\r\n\t});\r\n}\r\n\r\n$.win.open();\r\n\r\n$.picker.addEventListener('change', function(){\r\n\talert('Populated Picker Changed');\r\n});\r\n\r\n{code}\r\nindex.tss\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"red\"\r\n}\r\n\r\n\"Label\": {\r\n\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\"\r\n}\r\n\r\n\"#label\": {\r\n\ttop: 100,\r\n\tfont: {\r\n\t\tfontSize: 12\r\n\t}\r\n},\r\n\"#label2\": {\r\n\ttop: 400,\r\n\tfont: {\r\n\t\tfontSize: 12\r\n\t}\r\n},\r\n\"#picker\":{\r\n\ttop: 500,\r\n\twidth: Ti.UI.FILL,\r\n\theight: 60,\r\n\tbackgroundColor: 'white'\r\n}\r\n{code}\r\n*Steps to Reproduce:*\r\n- Open the sample app attached \r\n- Click on the populate picker label \r\n- Select an item from the picker \r\n- Change event does not fire. \r\n\r\n- Click on the create picker label \r\n- Select an item from the new picker \r\n- Change event fires \r\n\r\n*Expected Result:*\r\nWhen clicking on one of the newly added properties of the picker the change event should fire. \r\n\r\n*Actual Result:* \r\nThe new property is selected but the change event does not fire. \r\n", "attachment": [], "flagged": false, "summary": "Windows: Pickers populated at run time do not fire change events", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "433564", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1174", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-01-24T03:34:47.000+0000", "updated": "2018-01-24T03:34:47.000+0000" }, { "id": "434688", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "7_1_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1196", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-21T02:48:55.000+0000", "updated": "2018-02-21T02:48:55.000+0000" }, { "id": "435131", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] Could you check the Jenkins build that was merged into master from 7_1_X, I am unable to view the changes in 7_1_X using a windows 10 device. (7.1.0.v20180228160738) ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-02T20:18:06.000+0000", "updated": "2018-03-02T20:58:55.000+0000" }, { "id": "440240", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:36.000+0000", "updated": "2018-08-06T17:49:36.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }