View Full Version : [DUP] when setting min/max value of Date Field, new Date() is formatted as a string

31 Aug 2012, 12:16 PM
Architect Build tested:

Build: 588
Project Type:

ExtJS 4.1 in Sencha Architect 2.1
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



Operating System:


4 Sep 2012, 9:38 AM
I'm not going crazy here, right?

4 Sep 2012, 11:33 AM
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.