-
31 Dec 2012 2:50 AM #1
context parsed wrong when editing "object" property
context parsed wrong when editing "object" property
REQUIRED INFORMATION
Architect Build tested:- Build: 676
- ExtJS 4.1
- I find it's hard to edit any "object" properties in SA2.
- When I edit "style" property of a panel, and put something like
- {
opacity: '0.8';
background-color: #3d71b8
}
or just - opacity: '0.8';
background-color: #3d71b8
they are all parsed as string in SA2, and get results as
'{\r\n opacity: \'0.8\';\r\n background-color: #3d71b8\r\n}'
or
'opacity: \'0.8\';\r\nbackground-color: #3d71b8'
- As said before
Operating System:- Win7
-
1 Jan 2013 3:09 PM #2
The object will have to be a valid JS object.
In the event that you put in an invalid object, like the examples above Sencha Architect will automatically convert it to a string (so that we continue to create valid JS).
Try pasting in:
background-color needs to be quoted since it has a - in it. And the color needs to be quoted since it has a # in it.Code:{ opacity: 0.8, "background-color": "#3d71b8" }Aaron Conran
@aconran
Sencha Architect Development Team
-
1 Jan 2013 6:31 PM #3
-
2 Jan 2013 11:29 AM #4
Same issue about proxy api
Same issue about proxy api
BTW, plz help me to write such api in the write way, I really get puzzle with it:
api:
{create :'/controller/new',}
read :'/controller/load',
update :'/controller/update',
destroy :'/controller/destroy_action'
It's in document of Ext.data.proxy.Server, and I try a lot of way to put them in SA2, but give up at the end.
-
2 Jan 2013 11:32 AM #5
I just copy/pasted what you have above and worked fine?
Aaron Conran
@aconran
Sencha Architect Development Team
-
2 Jan 2013 11:33 AM #6
so what about setting the maxValue for the date picker?
so what about setting the maxValue for the date picker?
I have tried the following:
new Date()
new Date();
'new Date()'
'new Date();'
all without success. I have also chosen 'object' from the dropdown on the left side. According to the API documentation ith should just be:
new Date()
Very frustrated.
-
2 Jan 2013 11:43 AM #7
Setup things that use JS expressions in event handlers.
http://www.sencha.com/forum/showthre...l=1#post882465Aaron Conran
@aconran
Sencha Architect Development Team
-
2 Jan 2013 11:18 PM #8
-
3 Jan 2013 5:34 AM #9
Finally it's solved :
{
create : 'office/user/create',
read : 'office/user/read',
update : 'office/user/update',
destroy : 'office/user/destroy'
}
Need bracket inside
.
It's a little hard for user
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote
And sorry for my fault.