title: Titanium : How to use a varibale getting form one .js file is to be user in to another .js file
body: <p>I have implemented an app in <strong>titanium</strong>. I'm very new to titanium and <strong>JavaScript..</strong></p>
  <p>My requirement is as follows</p>
  <p>I have table view with list of project names</p>
  <p>I <em>need to add/append another project by tapping on Add button, which goes to another list of All projects.</em></p>
  <p>I need to select A project from list of <strong>AllProjects in 2nd window (AllProjects.JS)</strong> and pop to back to <strong>1st window</strong> (<strong>CurrentProjects.JS</strong>) with selected Project and append that selected project in hte currentList of projects.</p>
  <p>I tried as follows</p>
  <p>IN All Projects.js</p>
  <pre><code>$.table.addEventListener('click', function(e) {
      var selected = e.row;
      alert(e.row.title);
      var TodayStatus = new Alloy.createController(&quot;TodayStatus&quot;);
      TodayStatus.SELECTEDPROJECT = e.row.title;
      TodayStatus.getView().open();
  });
  </code></pre>
  <p>I was unable to retrieve <code>SELECTEDPROJECT</code> to the <code>currentProjects.js</code> file</p>
  <p>How to achieve it? Please help me.</p>
  <p>How do I declare <code>SELECTEDPROJECT</code>,  where do I declare <code>SELECTEDPROJECT</code>, how use it, how to assign a value to it?</p>