{ "id": "101386", "key": "TIMOB-10949", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-20T20:58:17.000+0000", "created": "2012-09-18T01:44:07.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity", "qe-ios090112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-20T20:58:17.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": "The date picker created without a value property returns null for getValue method till date is changed in the picker. This works fine in Android.\r\n\r\nThis is not a regression. The issue occurs atleast as far as 2.0.1\r\n\r\nSteps to Reproduce:\r\n1. Create a test application with code below\r\n2. Launch the application and click on the Get Value button and check console\r\n3. Change the date\r\n4. Again click on the Get Value button and check console\r\n\r\nActual Result: After step 2: The getValue returns null\r\nAfter step 4: The getValue returns the selected value in the picker\r\n\r\nExpected Result: After step 2: The getValue should return the selected value (as the current date is shown selected in the picker by default)\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n    backgroundColor: '#000',\r\n    layout: 'vertical',\r\n    navBarHidden: true\r\n});\r\n  \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\nwin.add(datePicker);\r\nwin.add(button);\r\n  \r\nwin.open();\r\n{code} ", "attachment": [], "flagged": false, "summary": "iOS: Picker: getValue method for date picker, created without value property, return null till change event occurs", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.2.201208301612\r\nTitanium SDK: 2.1.3.v20120915120319\r\niOS: iOS Simulator v5.1, 6.0", "comment": { "comments": [ { "id": "243627", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-22T05:26:29.000+0000", "updated": "2013-03-22T05:26:29.000+0000" }, { "id": "422399", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T20:58:17.000+0000", "updated": "2017-06-20T20:58:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }