{ "id": "108542", "key": "TIMOB-12539", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15696", "description": "2013 Sprint 20 API", "name": "2013 Sprint 20 API", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-24T17:58:26.000+0000", "created": "2013-01-25T05:34:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "datepicker", "exalture", "module_picker", "picker", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-10-23T23:15:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h1.Feature Request\r\nAs of API Level 11 there is a picker property called calendarViewShown which will show a calendar as a part of the date picker view as shown in the attached screen shot.\r\n\r\nh3.Original Community Request\r\nwhen using the date picker i get a picker with three columns (day, month and year) but ALSO i am getting a calendar like box on the right containing the number of days. how can i remove the calendar box and keep the picker columns?? i am compiling against android 3.2 SDK\r\n\r\n{code}\r\n\r\n 13\r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nmy code:\r\n\r\n{code}\r\nvar minDate = new Date();\r\n var curMonth = 0;\r\n for (var i = 0; i < 12; i++) {\r\n curMonth = minDate.getMonth();\r\n curMonth--;\r\n minDate.setMonth(curMonth);\r\n }\r\n var now = new Date();\r\n this.visitDatePicker = Ti.UI.createPicker({\r\n type : Ti.UI.PICKER_TYPE_DATE,\r\n maxDate : now,\r\n value : now,\r\n minDate : minDate,\r\n selectionIndicator : true\r\n });\r\n{code}\r\n\r\nposted problem on the forum but didn't get any suggestions yet http://developer.appcelerator.com/question/147296/date-picker-with-box-calendar-like-days-on-the-right ", "attachment": [ { "id": "35139", "filename": "Screenshot_2013-01-26-11-52-40.png", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-26T10:09:44.000+0000", "size": 50044, "mimeType": "image/png" }, { "id": "35224", "filename": "Screenshot_2013-01-31-10-44-27.png", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-31T08:56:03.000+0000", "size": 92289, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Add calendarViewShown to picker ", "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, Titanium SDK: 3.0, Platform & version: Android 4.1, Device: Samsung S3", "comment": { "comments": [ { "id": "236089", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide a screenshot of what you are seeing. I can only see month, day year.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-26T01:33:18.000+0000", "updated": "2013-01-26T01:33:18.000+0000" }, { "id": "236119", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "Attached date picker with days box at the right. thank you", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-26T10:09:44.000+0000", "updated": "2013-01-26T10:11:10.000+0000" }, { "id": "236406", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "hello Alan,\nany thought on why i have such a rendering of the date-picker?", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-29T09:44:44.000+0000", "updated": "2013-01-29T09:44:44.000+0000" }, { "id": "236418", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please try setting your target and min SDK to 10 and confirm if the calendar still appears.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-29T14:14:45.000+0000", "updated": "2013-01-29T14:14:45.000+0000" }, { "id": "236430", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "Ok I will try it, but this will cause the app to use android old UI components right? ", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-29T16:26:06.000+0000", "updated": "2013-01-29T16:26:06.000+0000" }, { "id": "236707", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "on API version 10 the application shows the old UI of date picker and the user manually change the date when clicking in the picker text. any ideas why i am getting a weird picker with API 13?", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-01-31T08:56:03.000+0000", "updated": "2013-01-31T08:56:03.000+0000" }, { "id": "236838", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, the calendarViewShown attribute was added in API level 11 but the attribute is not currently available through Titanium. I will move this ticket and make it a feature request for our future SDK release to expose that as a property.\n\nReference: http://developer.android.com/reference/android/widget/DatePicker.html", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-01T00:16:19.000+0000", "updated": "2013-02-01T00:16:19.000+0000" }, { "id": "236872", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "ok thanks for the followup", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-02-01T05:24:28.000+0000", "updated": "2013-02-01T05:24:28.000+0000" }, { "id": "244296", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "hello,\r\nDo you have any idea when the fix will be released?", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-03-27T15:52:51.000+0000", "updated": "2013-03-27T15:52:51.000+0000" }, { "id": "244694", "author": { "name": "johnnysc22", "key": "johnnysc22", "displayName": "John Scanlon", "active": true, "timeZone": "America/New_York" }, "body": "Also wondering when this is scheduled for a fix. This is a deal breaker for an app I am currently working on.\r\n", "updateAuthor": { "name": "johnnysc22", "key": "johnnysc22", "displayName": "John Scanlon", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-29T20:04:14.000+0000", "updated": "2013-03-29T20:04:14.000+0000" }, { "id": "244988", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All. We will attempt to fix this in 3.2.0", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T20:49:19.000+0000", "updated": "2013-04-01T20:49:19.000+0000" }, { "id": "245413", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "please try to include it with Release 3.1.0 on 16th of April.\r\nRegards", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-04-03T08:28:31.000+0000", "updated": "2013-04-03T08:28:31.000+0000" }, { "id": "253828", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "start working", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-24T07:50:27.000+0000", "updated": "2013-05-24T07:54:32.000+0000" }, { "id": "253829", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "added a new property calendarViewShown\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4328\r\n", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-24T07:53:47.000+0000", "updated": "2013-05-24T07:53:47.000+0000" }, { "id": "254237", "author": { "name": "jimmyrocket", "key": "jimmyrocket", "displayName": "Jimmy Forrester-Fellowes", "active": true, "timeZone": "Europe/London" }, "body": "we have to wait until the end of September for this fix to filter through via v3.2?\r\n\r\n...seriously?!", "updateAuthor": { "name": "jimmyrocket", "key": "jimmyrocket", "displayName": "Jimmy Forrester-Fellowes", "active": true, "timeZone": "Europe/London" }, "created": "2013-05-28T14:22:21.000+0000", "updated": "2013-05-28T14:22:21.000+0000" }, { "id": "254238", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jimmyrocket] We only include new features in major releases. If you like, there is a pull request already--you could add it to a custom build of the SDK for your purposes.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-28T14:30:52.000+0000", "updated": "2013-05-28T14:30:52.000+0000" }, { "id": "256247", "author": { "name": "cogentsean", "key": "cogentsean", "displayName": "Cogent Sean", "active": true, "timeZone": "America/New_York" }, "body": "[~sameeh.harfoush], [~johnnysc22], [~jimmyrocket]\r\n\r\nA workaround for those who can't wait til September or don't want to spend time building a custom version of the SDK. Tested and confirmed on Titanium SDK 3.0.2 w/ T-Mobile Samsung Galaxy S2 running CM10.1-20130423-NIGHTLY.\r\n\r\ndatepicker.xml:\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\ndatepicker.tss:\r\n{code}\r\n'#datePickerContainer': {\r\n width: 320\r\n},\r\n'#datePicker': {\r\n left: 0,\r\n width: '205%'\r\n}\r\n{code}\r\n\r\nTo adjust the width of the date picker, change the width of #datePickerContainer. Leave the #datePicker width set to 205% to ensure that the calendar view is \"off right\" of #datePickerContainer.", "updateAuthor": { "name": "cogentsean", "key": "cogentsean", "displayName": "Cogent Sean", "active": true, "timeZone": "America/New_York" }, "created": "2013-06-05T20:40:43.000+0000", "updated": "2013-06-05T21:03:32.000+0000" }, { "id": "256547", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bijuexalture], Please add a reproducible test case to this. I tried with the galaxy s3 with the following code snippet with no luck:\n\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor: 'white'\n});\n\nvar minDate = new Date();\nvar curMonth = 0;\nfor (var i = 0; i < 12; i++) {\n\tcurMonth = minDate.getMonth();\n\tcurMonth--;\n\tminDate.setMonth(curMonth);\n}\nvar now = new Date();\nvisitDatePicker = Ti.UI.createPicker({\n\ttype : Ti.UI.PICKER_TYPE_DATE,\n\tmaxDate : now,\n\tvalue : now,\n\tminDate : minDate,\n\tselectionIndicator : true\n}); \n\nvar view = Ti.UI.createView({\n\tbackgroundColor:'blue'\n});\n\nview.add(visitDatePicker);\nwin.add(view);\nwin.open();\n{code}", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-06T23:15:22.000+0000", "updated": "2013-06-06T23:15:22.000+0000" }, { "id": "262176", "author": { "name": "ipsus", "key": "ipsus", "displayName": "chris desart", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For those who can't wait, a simple workaround is to use showDatePickerDialog() method. In the modal window calendar is not present.", "updateAuthor": { "name": "ipsus", "key": "ipsus", "displayName": "chris desart", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-17T17:20:48.000+0000", "updated": "2013-07-17T17:20:48.000+0000" }, { "id": "268388", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "showDatePickerDialog() is randomly crashing the app with the following:\r\n\r\n{code}\r\n08-27 14:24:33.941: A/libc(1022): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 1050 (KrollRuntimeThr)\r\n{code}\r\n\r\nAny news on this ??", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-08-27T17:35:58.000+0000", "updated": "2013-08-27T17:35:58.000+0000" }, { "id": "269904", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "New Test case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar minDate = new Date();\r\nvar curMonth = 0;\r\nfor (var i = 0; i < 12; i++) {\r\n curMonth = minDate.getMonth();\r\n curMonth--;\r\n minDate.setMonth(curMonth);\r\n}\r\nvar now = new Date();\r\nvisitDatePicker = Ti.UI.createPicker({\r\n type : Ti.UI.PICKER_TYPE_DATE,\r\n maxDate : now,\r\n value : now,\r\n minDate : minDate,\r\n selectionIndicator : true\r\n}); \r\n \r\nvar view = Ti.UI.createView({\r\n backgroundColor:'blue'\r\n});\r\n \r\nview.add(visitDatePicker);\r\n\r\nvar btnShow= Titanium.UI.createButton({ title :' show' , left : 5 , top : 50}); \r\n btnShow.addEventListener('click',function(){\r\n visitDatePicker.calendarViewShown = true;\r\n });\r\n\r\n var btnHide= Titanium.UI.createButton({ title :' hide',right : 5 , top : 50}); \r\n btnHide.addEventListener('click',function(){\r\n visitDatePicker.calendarViewShown = false;\r\n });\r\n \tview.add(btnShow);\r\n view.add(btnHide);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\nNote : Default value of calendarViewShown is false\r\n\r\nh1. Steps to reproduce:\r\n\r\nstep 1 : Run the above code\r\nstep 2 : Click the hide button\r\nActual result\r\ngetting a calendar like box on the right containing the number of days\r\nexpected result\r\nshow a calendar as a part of the date picker \r\n( a picker with three columns (day, month and year) )", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-06T08:31:59.000+0000", "updated": "2013-09-10T10:22:48.000+0000" }, { "id": "270561", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR:-\n https://github.com/appcelerator/titanium_mobile/pull/4667", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-10T10:57:43.000+0000", "updated": "2013-09-10T10:57:43.000+0000" }, { "id": "272689", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR + FR", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-24T17:58:26.000+0000", "updated": "2013-09-24T17:58:26.000+0000" }, { "id": "274356", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with environment:\r\n\r\nAppc-Studio: 3.2.0.201310092427\r\nSdk:3.2.0.v20131008154043\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3)\r\nXcode: 5\r\n\r\nCalendar being shown on button click on Picker. ", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-09T12:39:23.000+0000", "updated": "2013-10-09T12:39:23.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }