PDA

View Full Version : [DUP] Space in object property removed by Sencha Architect



sencha-ogs
7 Sep 2012, 8:10 AM
HI,

Sencha Architect Version 2.1.0 Build 613

To reproduce the issue:
1. Add an Ext.Field.DatePicker to an Ext.Container
2. Goto Property value
3. Change 'Type' from Date to Object
4. Hit Button (Edit) to edit value
5. In Code-View enter text new Date()
6. Select Container in Project Inspector
7. The config of value contains newDate() now, which leads to an exception when code is executed.

Desired behaviour: The space should not be deleted - if I insert the space outside of Sencha Architect again, the code executes successfully.

aconran
7 Sep 2012, 12:31 PM
sencha-ogs -

Being able to put raw javascript expressions in the property grid is not supported at this time. We're aware of the need for it and will have support for you to add JS Expressions for your configs in a future version.

aconran
7 Sep 2012, 12:31 PM
For now, the proper way to do this is via an event handler or override.

sencha-ogs
8 Sep 2012, 6:22 AM
Thx for the quick answer aconran,

I got around this by creating a variable and using it in the value property, which worked fine.