Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2534] User-defined hash keys with capital letters are null in Android

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-08-23T14:45:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, case, properties, sensitivity
Reportersupport (at stateim)
AssigneeNeeraj Gupta
Created2011-04-15T03:22:07.000+0000
Updated2017-03-10T18:23:57.000+0000

Description

If a program-specific key is added to a Titanium object, it will return null when the application is built for Android.

The following Table Row has a Name key. Using Android, the Name key will be null when requesting row.Name

var row = Titanium.UI.createTableViewRow({

height : 'auto',
Name: 'Hello'



});

If instead we were to write the following, row.name would give me the proper 'Hello' value:

var row = Titanium.UI.createTableViewRow({

height : 'auto',
name: 'Hello'



});

Comments

  1. Stephen Tramer 2011-04-15

    Assigning to Don for triage.

  2. Junaid Younus 2012-08-23

    Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, unable to reproduce.
       var win = Ti.UI.createWindow({  
           backgroundColor:'white',
           Name: 'Calumon'
       });
       
       alert('Name: ' + win.Name);
       
       win.open();
       
    Ticket marked as resolved.
  3. Lee Morris 2017-03-10

    Closing ticket as the issue cannot be reproduced.

JSON Source