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 6050235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:39:58+00:00 2026-05-23T07:39:58+00:00

I get null on view.children[0] The view is a Titanium.UI.View-object and has just one

  • 0

I get null on

view.children[0]   

The view is a Titanium.UI.View-object and has just one child Titanium.UI.ImageView-object that need to access. How do I fix this?
I have had a look at How to query the child views of a parent view using Titanium? but it doesn’t work for me. I found this, http://developer.appcelerator.com/question/31361/how-to-access-child-view-of-a-tableview-row , it could be a reason for my problem, any clue if this bug has been fixed?

Here is the more detailed code.

function (parentView, id, leftMargin) {
var cellImageView = cellImageView = Titanium.UI.createImageView({
    url: imageUrl
});
var cellView = Ti.UI.createView({
    id: id,
    left: leftMargin,
    parent: parentView
});
cellView.addEventListener('click', function (e) {
    Titanium.API.info("you clicked1:" + e.source.id);
    OnNumClick(e.source, e.source.parent);
});
cellView.add(cellImageView);
return cellView;
}

OnNumClick = function (cellViewObj) {
Titanium.API.info("cellViewObj:" + cellViewObj);
Titanium.API.info("cellViewObj.children:" + cellViewObj.children);    
};

result:
[INFO] [7,10537] cellViewObj:ti.modules.titanium.ui.ViewProxy@437ba5a8
[INFO] [15,10628] cellViewObj.children:null

  • 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-23T07:39:58+00:00Added an answer on May 23, 2026 at 7:39 am

    My bad, I upgraded from Titanium SDK 1.2 to 1.6 (for some reason my setup was not working with 1.6 earlier), and it finally worked. Thanks for your help Muhammad.

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

Sidebar

Related Questions

I get the warning childNodes is null or not an object' with different line
Can someone tell me why I get the null value for activationLink variable in
In Java, is it possible to attempt a cast and get back null if
Quite often, in programming we get situations where null checks show up in particularly
Can get all triples with value null in specific field? All people with date_of_birth
I get this message when compiling C++ on gcc 4.3 error: ‘NULL’ was not
Does the method get called with a null value or does it give a
I get the following error on firebug: this._processor is null and the error is
I'm trying to get a reference to cell and it appears null. If I'm
Is there a way to get the code below to return null if no

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.