PDA

View Full Version : [CLOSED] adding an Ext.data.TreeStore, root property converted to string when a variable added



HyGy
6 Dec 2012, 3:58 AM
REQUIRED INFORMATION

Architect Build tested:

Build: 676
Project Type:

ExtJS 4.1.x
Description:

When adding a root property to tree store, and one parameter is a variable, it converts to a string.
Steps to reproduce the problem:

drop a tree store to stores
edit root property

{
expanded: true,
children: variableName
}
The result that was expected:

set the children from an external variable or internal/external function call

The result that occurs instead:

architect converts the object to a string: root: '{\r\n expanded: true,\r\n children: variableName\r\n}',
Operating System:

Windows 7

aconran
6 Dec 2012, 11:42 AM
The property grid does not support JavaScript Expressions.

The 2.2 release will have features to make this easier via processConfigs or setting it up via initialize.