How to pass data from one window to another in Titanium?

How to pass data from one window to another in Titanium?

Content Index :

How to pass data from one window to another in Titanium?
Tag : development , By : user185949
Date : November 28 2020, 01:01 AM

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Titanium Pass Textfield Value to New Window

Tag : javascript , By : Simon Capewell
Date : March 29 2020, 07:55 AM
may help you . I am attempting to take the value of a textfield and pass it to a new window (Javascript file) using Ti.App.fireEvent (http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.App-method-fireEvent) so that I can eventually insert it into a database when a button is pressed... So far I have a variable that stores the value of the textfield called usernameValue. This will then be sent to an http parameter value. There has to be something simple that I'm missing. Let me know if more information is needed to make this question more clear. , when sending data
Ti.App.fireEvent('app:populateUsername', { "username" : usernameValue });
Ti.App.addEventListener('app:populateUsername', function(_data)
    // all the data passed

    // the value is here
    Ti.API.info("the name passed as a parameter " + _data.username));

how to pass data from one window to another in titanium (classic)?

Tag : javascript , By : Chris Hanley
Date : March 29 2020, 07:55 AM
should help you out Please just check below Code and use in your code. you can perform your work like this.
         //alert("RS Name : " +e.row.title);
         var winn = Ti.UI.createWindow({ 
             row_title : e.row.title,
             all_info: e.row,
        //var hostelwin = require('hotelpage').gethotelWin;
        //var newwin = new hotelwin();
var curtWind = Ti.UI.currentWindow;
// Get Data like this 
var title = curtWind.row_title;
var allData = curtWind.all_info;
// and you can use as per your requirement.

Can't pass Android custom meta-data in Titanium app

Tag : javascript , By : orlandoferrer
Date : March 29 2020, 07:55 AM
I hope this helps . To my understanding on Android meta-data is not supposed to be outside application tag. It can be inside activity,activity-alias,service,receiver,provider or application tag. According to the placement its accessibility is defined. If it is outside application tag it has no use.
Please correct me if I am wrong.

How to Pass the data from Main Window to Child Window to display large data in table using AngulaJS

Tag : html , By : alchemist
Date : March 29 2020, 07:55 AM
hope this fix your issue You can do the same thing with below steps:
Note: New window won't work in the plunker. So you have to try this in realtime in your local.
<tr class="features" ng-repeat="list in opMessageLogs">
                        <td ng-click="showText(list.DATA, $index)">{{shortText(list.DATA)}}</td>
var app = angular.module('studentApp', []);

app.controller('StudentCntrl', function($scope,$http, $window) {
    $http.get('data.json').then(function (response){
                $scope.opMessageLogs = response.data

    $scope.shortText = function(data) {
      if(data && data.length > 20) {
        return data.substring(0, 20) + '..';

      return data;


    $scope.showText = function(data, index) {
      var $popup = $window.open("Popup.html", "popup" + index, "width=250,height=100,left=10,top=150");
      $popup.data = data;
<html xmlns="http://www.w3.org/1999/xhtml">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"></script>
    <script type="text/javascript">
        var app = angular.module('MyChildApp', [])
        app.controller('MyChildController', function ($scope, $window) {
            $scope.data = $window.data;
    <div ng-app="MyChildApp" ng-controller="MyChildController">
        Data: <span ng-bind="data"></span>

Appcelerator issue: currentWindow : Titanium.UI.Window - REMOVED from Titanium since SDK 6.0.0

Tag : javascript , By : Juan Pablo
Date : March 29 2020, 07:55 AM
I wish this help you You can use the commonjs structure.
If you need to pass a window from one file to the other, provide it using setters.
// main.js
var details = require('details');

// details.js
var window;
exports.setWindow = function(win){
    window = win;
// details.js
exports.window = window;

// main.js
detailWindow = require('details').window;
function createWindow(){
  var win = Ti.UI.createWindow();
  return win;
Related Posts Related QUESTIONS :
  • How to run an append query in ms access vba as part of a transaction
  • Wrong dates shown in Jekyll-based blog
  • How to concatenate two document lists in a webMethods flow service?
  • How to properly set up a site map addition in a customization project
  • IBM Content Collector error calling external Web Service
  • Is (0*1*)* equal to (0 | 1)*?
  • How do I configure phpMyAdmin to start with a blank sql query from the SQL tab?
  • "Objects are not valid as a React child" Redux error when conditionally connecting a component?
  • Displacy results are not showing
  • Strapi / Graphql. What am i doing wrong?
  • How to add Search bar for django template?
  • lookup in presto using single column against a range in lookup table
  • How can you stop videos being stolen on website?
  • Can't code substitution happen in Hybrid Flow?
  • Removed widget remains on parent
  • setup saga middleware with redux-starter-kit's configureStore()
  • How to get cookies from response of scrapy splash
  • I need to do a firebase stream and not a Http Get
  • Unable to compile node-runtime
  • SQLSTATE[42S22]: Column not found: 1054 Unknown column '' in 'where clause'
  • How to extract only the number from a variable
  • disable linter in DAML studio
  • RxJS: How to set exhaustMap concurrent?
  • How to remove perforce (p4) on Ubuntu
  • How do they know mean and std, the input value of transforms.Normalize
  • Why this type is not an Interface?
  • SugarCRM Rest API set_relationship between Contacts and Documents
  • Jira dashboard organization
  • Web worker importScripts fails to place script variables in global scope
  • Always errors - The "path" argument must be one of type string, Buffer, or URL. Received type undefined
  • How to create an observable of a stream of infinite items
  • Not efficiently to use multi-Core CPU for training Doc2vec with gensim
  • webGL gl_Position value saving outside shaders
  • Is it okay for a resolver to have side effects besides resolving the type?
  • Move 32bit register into a 8 bit register
  • Is there a way to update, not overwrite, worker_env for a Dask YarnCluster within a script?
  • Lotus Notes Deployment
  • How Do I Add Active Directory To APIM Using Terraform?
  • How to get the old parameter values in Blazor OnParameterSet?
  • How to debug "ERROR: Could not reach the worker node."?
  • How chain indefinite amount of flatMap operators in Reactor?
  • extract dates and times from string in Redshift
  • How do I make a column of 3 cards match in height in bootstrapVue?
  • how to replace missing values from another column in PySpark?
  • only read last line of text file (C++ Builder)
  • Snakemake --forceall --dag results in mysterius Error: <stdin>: syntax error in line 1 near 'File' from Graphvis
  • How Can I Remove Demo Products From APIM Created With Terraform?
  • How to avoid cloning a big integer in rust
  • Break a row of words into word groups in Hive
  • How can I add a path variable to existing files in an Installshield project converted from MSI
  • Certain languages are not available in postman; is there a way to enable it?
  • Concatenation step of U-Net for unequal number of channels
  • HL Fabric - states, transactions but varied keys
  • How to handle "flood wait" errors when using telethon.sync?
  • Any way to make closure which takes a destructured array?
  • What is the Difference between @PeculiarVentures 's `webcrypto` and `node-webcrypto-ossl`?
  • DWG Sheet Combination failing on AutoDesk Forge
  • karate.log(args) on afterScenario hook is not embedded on surefire json file
  • How do I output latest distinct values of specific fields and all other colums?
  • Clarification on lit-element components and where to browse them
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com