{ "id": "169717", "key": "TIMOB-25243", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-09-14T09:27:39.000+0000", "created": "2017-09-07T11:32:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" }, { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55886", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158181", "key": "TIMOB-22231", "fields": { "summary": "Ti.UI.Picker Test Suite: Titanium.UI.Picker TIMOB-13064", "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:37: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\nAccessing the value property of using the getValue func of a picker always returns undefined\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose: true,\r\n layout: 'vertical'\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n top:50\r\n});\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:'Bananas'});\r\ndata[1]=Ti.UI.createPickerRow({title:'Strawberries'});\r\ndata[2]=Ti.UI.createPickerRow({title:'Mangos'});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes'});\r\n\r\npicker.add(data);\r\npicker.selectionIndicator = true;\r\n\r\nwin.add(picker);\r\nwin.open();\r\nvar showDate = Ti.UI.createButton({\r\n title: 'get value',\r\n bottom: 20\r\n});\r\nshowDate.addEventListener('click', function(e) {\r\n console.log('.value ' + picker.value)\r\n console.log('getValue ' + picker.getValue());\r\n});\r\n\r\npicker.addEventListener('change', function(evt) {\r\n console.log('Changed ' + evt.value);\r\n});\r\n\r\n\r\nwin.add(showDate)\r\n{code}\r\n\r\nh5.Repro steps\r\n\r\n# Add the code above to an existing app.js\r\n# Build for Windows\r\n# Select a value from the picker\r\n# Click the button\r\n\r\nh5.Actual\r\n\r\nUndefined is logged from the change event and getValue and value prop\r\n\r\nh5.Expected", "attachment": [], "flagged": false, "summary": "Windows: value prop for picker always returns undefined", "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.0.4.GA, 6.1.2.GA, 6.2.0.v20170906064110\r\nWindows 10", "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427681", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This seems to work fine for date pickers \r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar datePicker = Ti.UI.createPicker({\r\n type: Ti.UI.PICKER_TYPE_DATE,\r\n useSpinner: false\r\n});\r\n\r\ndatePicker.addEventListener('change', function(e) {\r\n Ti.API.info('change event: value = ' + e.value);\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Get value'\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n Ti.API.info(datePicker.value);\r\n Ti.API.info(datePicker.getValue());\r\n});\r\n\r\n_window.add(datePicker);\r\n_window.add(button);\r\n_window.open()\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-07T13:51:43.000+0000", "updated": "2017-09-07T13:51:43.000+0000" }, { "id": "427870", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "According to the [API doc|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-value], {{value}} only works with date and time pickers. I also tested the test code on iOS and it returns {{undefined}}, so I would think this is not a bug.\r\n\r\n{code}\r\n[INFO] .value undefined\r\n[INFO] getValue undefined\r\n{code}\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T09:27:40.000+0000", "updated": "2017-09-14T09:27:40.000+0000" }, { "id": "439922", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:37:02.000+0000", "updated": "2018-08-06T17:37:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }