Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3220] Date Picker

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-12-30T05:25:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRon Arnold
AssigneeShak Hossain
Created2013-06-08T18:18:42.000+0000
Updated2016-03-08T07:57:37.000+0000

Description

Steps to Reproduce

build a module with various information items needed such as last name, first name, dob. The date picker will initiate once selected but when date is selected it does not place the result in the field location. I do see the correct info being picked up via the console.

Actual Result

no date shown after selection.

Expected Result

see the date of birth

Attachments

FileDateSize
.log2013-06-08T18:18:50.000+0000743760
diagnostic7833861243361200242.log2013-06-08T18:18:55.000+00007042

Comments

  1. Carter Lathrop 2013-06-11

    Hello Ron, Can you please provide test case that shows the behavior? A simple test case of under 50 lines in the form of an app.js should be able to show the bug behavior and will allow for mutual understanding of the problem on both sides and ensure a quicker review time. For future reference: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report Regards, Carter
  2. Mostafizur Rahman 2013-12-09

    Hello, I tested this issue the test code below. It is most likely fixed or this feature already exists. Please test this issue using the latest release and let us know your feedback. In my sample code, I used date picker with max and min date and an also add submit button for display picker value in console.

    Testing Environment:

    Ti CLI 3.3.0 Ti Studio build: 3.2.0.201311272052 Titanium SDK: 3.1.3 and later Android SDK: 2.3.3 iOS -Simulator -iPhone Retina 3.5 inch/iOS 7.0 Android Device-4.2.2 h5. Test Case
       var win = Titanium.UI.createWindow({
       	layout : 'vertical',
       	title : 'TextField Test',
       	navBarHidden : false
       });
       
       var picker = Ti.UI.createPicker({
       	type : Ti.UI.PICKER_TYPE_DATE,
       	minDate : new Date(2009, 0, 1),
       	maxDate : new Date(2014, 11, 31),
       });
       
       win.add(picker);
       
       var submit = Ti.UI.createButton({
       	title : 'Submit',
       
       });
       
       submit.addEventListener('click', function() {
       
       	Ti.API.info('createPicker: ' + picker.value);
       });
       
       win.add(submit);
       
       win.open();
       
       

    Steps to Reproduce:

    Create a simple project.

    Update this code in app.js

    Run this with testing environment

    Code will display date picker and submit button

    Click on button

    Date picker value will display in console

    Thanks
  3. Ritu Agrawal 2013-12-11

    [~4rensycs] We tried to build a sample test case for date picker and its working fine for us. Please use the above test case and let us know if the problem still persists.
  4. Shak Hossain 2013-12-28

    Closing as the feature exist in current build of the sdk. A sample illustrating this was posted.

JSON Source