Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2009
    Posts
    93
    Vote Rating
    0
    roshniblr is on a distinguished road

      0  

    Default [OPEN-1150] TimeField is missing minValue and maxValue validation

    [OPEN-1150] TimeField is missing minValue and maxValue validation


    Hi,

    I am just trying to see the minText and maxTest error. Following is my snippet od code.

    new Ext.form.TimeField({
    minValue: '9:00 AM',
    maxValue: '6:00 PM',
    increment: 30
    });So if I put 7:00 PM, i guess I should get an error. But I'm not seeing any error. Why is it so?

  2. #2
    Sencha User
    Join Date
    Nov 2009
    Posts
    93
    Vote Rating
    0
    roshniblr is on a distinguished road

      0  

    Default


    Also when I'm trying to input any invalid data , its not showing me any error. After inputting invalid data when I click anywhere on the page the value from the timefield disappears. Am I doing something wrong?

  3. #3
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Try to pass Date objects as minValue and maxValue - it may be that strings above are not parsed correctly (lowercase am/pm?). In any case, you can check if min/maxValues contain expected values after the field is rendered.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #4
    Sencha User
    Join Date
    Nov 2009
    Posts
    93
    Vote Rating
    0
    roshniblr is on a distinguished road

      0  

    Default


    But in the timefiled, in the drop down the values are '9:00 AM' to '6:00 PM', that means values are displayed accoring to minValue and maxValue but the error is not displayed. Also when I'm trying to input some invalid data, say any characters and special characters, it does not even display the invalid text. Where am I going wrong?

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    In Ext 3.2+, TimeField is missing a getErrors implementation that checks the minValue and maxValue.

    I'll move this thread to the bug section.

  6. #6
    Sencha User
    Join Date
    Nov 2009
    Posts
    93
    Vote Rating
    0
    roshniblr is on a distinguished road

      0  

    Default


    So currently TimeField in 3.2 version is missing all the validation messages except "required" message?
    When allowBlank:false, then I'm getting "This field is required" message.
    Thanks Condor.

  7. #7
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    TimeField currently uses the getErrors from TextField (validator, allowBlank, minLength, maxLength, vtype, regex).

    Before the getErrors method was introduced, TimeField used the validation from DateField, but that is now also no longer possible now DateField validation clears the time in minValue/maxValue validation.

  8. #8
    Sencha User
    Join Date
    Nov 2009
    Posts
    93
    Vote Rating
    0
    roshniblr is on a distinguished road

      0  

    Default


    Thanks Condor. Can I track this bug? I mean can I get the bug ID?

  9. #9
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Your issue has been entered in Trac for review. Thank you for the report.

Similar Threads

  1. [FIXED] [2.0.1] DateField doesn't refresh the MinValue/MaxValue
    By vinicius.rabelo in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 14 Aug 2009, 7:12 AM
  2. Change minValue, maxValue of TimeField
    By anhkpb in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 29 Jul 2009, 1:43 AM
  3. Timefield minValue and maxValue
    By austin1030 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 3 Mar 2009, 6:15 PM
  4. How to change TimeField minValue, maxValue and increment dynamically ?
    By disizben in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 21 Mar 2008, 12:16 AM

Thread Participants: 3