View Full Version : setting properties to objects.
6 Feb 2012, 8:48 AM
Is there a way to set string type properties to string objects? For example… a proxy has a url property. Let’s say I have a string object with the url. How can I set the url property to the string object? When I try to do so Designer sets the url property to a string literal of the name of the object.
6 Feb 2012, 9:32 AM
url is a string
Does that answer your query? Please give an example what you are trying to do.
6 Feb 2012, 10:26 AM
Using the url property as an example, let's say I have a string object called staticUrl in MyApp namespace...
MyApp.staticUrl = '/someBackEndScript';
I'd like to set up the url property as such...
url: MyApp.staticUrl, // Setting url to the value of object MyApp.staticUrl. This is what I'd like to do.
However, Designer sets the url property to the name of the object as such...
url: 'MyApp.StaticUrl', //Setting url name of the object
6 Feb 2012, 11:26 AM
There is currently no way to use variables in these properties.
27 Aug 2012, 9:37 AM
Is there any way to achieve what cantorh (http://www.sencha.com/forum/member.php?115900-cantorh) is trying to do?, Maybe override some attribute or function somewhere to get this kind of functionallity.
Due the application isn't very portable in the other way.
Thanks in advance.
27 Aug 2012, 9:55 AM
Yes you can use overrides and/or set a variable in an event handler.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.