Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7621645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:14:49+00:00 2026-05-31T04:14:49+00:00

I am using multiple window apps being controlle via Tabgroup. I am using .js

  • 0

I am using multiple window apps being controlle via Tabgroup. I am using .js files for each window which are passed as URL with each window. I also have a function.js file where I am writing routines for reusable code;for instance Form generation or table View etc. Now I got stuck in a situation where I have to call a function which generates form element which are in WindowA. In WindowA I explicitly defined all required form elements. Now what do I pass in my function routine that it gets the reference of already created form element.

Please note that TableView created in separate Window, say WinB and I am generating rows by calling a routine written in functions.js. Ia m getting undefined error despite of variables are global in WinA.

How can I get the reference of those variables in entire application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:14:50+00:00Added an answer on May 31, 2026 at 4:14 am

    I highly recommend NOT using Ti.App to pass variables – even if it works. It is not best practice. I know you won’t want to, but Take the time refactoring your code to not use windows with urls – go to a single instance / commonJS approach.

    See https://wiki.appcelerator.org/display/guides/Mobile+Best+Practices and
    https://wiki.appcelerator.org/display/guides/CommonJS+Modules+in+Titanium

    Also see https://github.com/appcelerator-titans/App for current best practice code.

    It will take a while to refactor, but you app will be much more stable, and your code will be much cleaner.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning how to create apps with multiple views using the Window-based application
I'm using a QTabWidget to render multiple documents in a window, and I want
I have multiple databases that I connect to using SQL*Plus in Windows (not the
First off, I am using Windows XP. I have multiple hard drives and it
I am using multiple instances of AVAudioPlayer to play multiple audio files simultaneously. I
I'm using multiple threads in my application. Basically I have a combo box and
I am using multiple scripts to get to a sub-window. I want to know
I have a telerik window with multiple divs inside it whose visibility is set
I'm using a message window and WSAAsyncSelect. How can I keep track of multiple
I'm using VB.Net to launch multiple command line window (same exe file) through Process.StartInfo.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.