This issue duplicates another issue.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Boise
    Posts
    2
    Vote Rating
    0
    colinsmith1 is on a distinguished road

      0  

    Default when setting min/max value of Date Field, new Date() is formatted as a string

    when setting min/max value of Date Field, new Date() is formatted as a string


    Architect Build tested:
    • Build: 588
    Project Type:
    • ExtJS 4.1 in Sencha Architect 2.1
    Description:
    Architect formats anything typed into the maxValue or minValue property of a Date Field as a string, making it impossible to set min and max value as dynamic properties (ie you can't use Javascript's Date() method because Architect formats it as __ maxValue: 'new Date()', __).

    Steps to reproduce the problem:
    • Add a Date Field
    • Choose object from the [Date/Object] menu in the property column of either min or maxValue
    • Type new Date() in the code editor
    • view results -- no min or max value rules are enforced
    The result that was expected:
    By setting the value to new Date() I wanted a rule enforced that a start or end date of TODAY would apply to my datepicker

    The result that occurs instead:
    Nothing changes; it's as if I hadn't entered anything into the min or maxValue fields

    HELPFUL INFORMATION

    Screenshot:
    • attached
    Operating System:
    • OSX/Win7
    Attached Images

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Boise
    Posts
    2
    Vote Rating
    0
    colinsmith1 is on a distinguished road

      0  

    Default Can anyone replicate?

    Can anyone replicate?


    I'm not going crazy here, right?

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,352
    Vote Rating
    127
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Yes, we can replicate.

    JavaScript expressions are not supported in the property grid. We are working on being able to support processable configurations that can use raw JS expressions.

    You can set these values in event handlers today.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1