{ "id": "111140", "key": "TIMOB-13064", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-27T20:53:41.000+0000", "created": "2013-03-13T15:09:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "datepicker", "getvalue", "module_picker", "qe-testadded", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-25T07:05:40.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem description\r\n\r\nWhen i call getValue() of date picker it returns null. It is necessary to store the date value form the picker 'change' event to be able to retrieve it.\r\n\r\nh2. Steps to reproduce\r\n\r\nUse the following code to reproduce:\r\n\r\n{code}\r\nvar mainWindow = Ti.UI.createWindow({\r\n title : 'Lab',\r\n backgroundColor : 'white',\r\n fullscreen : false,\r\n navBarHidden : true,\r\n exitOnClose : true,\r\n orientationModes : [Titanium.UI.PORTRAIT]\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n type : Ti.UI.PICKER_TYPE_DATE,\r\n selectionIndicator : true,\r\n useSpinner : true\r\n});\r\n\r\nvar showDate = Ti.UI.createButton({\r\n title : 'show date',\r\n bottom : 20\r\n});\r\nshowDate.addEventListener('click', function(e) {\r\n alert(picker.getValue());\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL\r\n});\r\nview.add(picker);\r\nview.add(showDate);\r\n\r\nmainWindow.add(view);\r\nmainWindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Date Picker getValue() returns null", "creator": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "subtasks": [], "reporter": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "environment": "Application type: mobile, \r\nTitanium SDK: 3.0.2,\r\nPlatform & version: iOS 6.1,\r\nDevice: iOS simulator and device (ipad and ipod touch),\r\nHost Operating System: OSX 10.8.2,", "comment": { "comments": [ { "id": "242306", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified occurs with sample code above and:\nSDK: 2.1.3.GA\nSDK 3.0.0.GA\nSDK: 3.0.2.GA\nSDK: 3.1.0.v20130314120115\nTitanium Studio, build: 3.0.2.201302191606 ", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T20:50:31.000+0000", "updated": "2013-03-14T20:50:31.000+0000" }, { "id": "244190", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/4037", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T22:28:54.000+0000", "updated": "2013-03-26T22:28:54.000+0000" }, { "id": "246129", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "getValue() method is returning the appropriate values on alert.\r\n\r\nVerified on:\r\nDevice : iPad mini, iOS version: 6+\r\nSDK: 3.1.0.v20130405170202\r\nCLI version : 3.1.0-beta\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201304011603", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-06T07:38:08.000+0000", "updated": "2013-04-06T07:38:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }