Quote Originally Posted by aconran View Post
I would recommend against using truly global variables but I would recommend using application specific variables.

One way you could achieve this would be to go into your Application's launch method and create a global property which can be accessed throughout all of your source.

For example:
Code:
MyApp.globals = {
   key: 123,
   key2: 'abc'
};
The touch20/yql.xda example does something similar. You can download the sample projects from this link:
http://www.sencha.com/forum/showthre...Download-links
How do you access these global properties from an event such as when you click a button? I think I added the parameters properly? I replaced "MyApp.globals", with the name of my application that I defined --> "<AppName>.globals", and when I try to access it in the js event function, I get an error saying that "<AppName>.globals does not exist.???

Paul