Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24436] ListView: support id for required ListView Templates

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsfeature
ReporterChristoph Eck
AssigneeUnknown
Created2017-02-28T11:00:27.000+0000
Updated2018-02-28T19:55:04.000+0000

Description

*Problem* Can not access required ListView template by id. *actual behavior*

Compile and start project

in the log is shown listSection: 1, Script Error message = "undefined is not an object (evaluating '$.listTemplate.setValue')";

*expected behavior*

Compile and start project

in the log is shown listSection: 1, listTemplate: 2

*Test case* Use the attached files below. *Log* _actual behavior_
[INFO] :   listSection: 1
[ERROR] :  Script Error {
[ERROR] :      column = 19;
[ERROR] :      line = 53;
[ERROR] :      message = "undefined is not an object (evaluating '$.listTemplate.setValue')";
[ERROR] :      sourceURL = "file:///Users/chris/Library/Developer/CoreSimulator/Devices/CFBD0992-1A8A-4C85-8848-4749FE608902/data/Containers/Bundle/Application/33078C7B-8A0B-4A0F-A998-DB32425BDBC1/ListViewRequireTemplateId.app/alloy/controllers/index.js";
[ERROR] :      stack = "Controller@file:///Users/chris/Library/Developer/CoreSimulator/Devices/CFBD0992-1A8A-4C85-8848-4749FE608902/data/Containers/Bundle/Application/33078C7B-8A0B-4A0F-A998-DB32425BDBC1/ListViewRequireTemplateId.app/alloy/controllers/index.js:53:19\ncreateController@file:///Users/chris/Library/Developer/CoreSimulator/Devices/CFBD0992-1A8A-4C85-8848-4749FE608902/data/Containers/Bundle/Application/33078C7B-8A0B-4A0F-A998-DB32425BDBC1/ListViewRequireTemplateId.app/alloy.js:232:54\nglobal code@file:///Users/chris/Library/Developer/CoreSimulator/Devices/CFBD0992-1A8A-4C85-8848-4749FE608902/data/Containers/Bundle/Application/33078C7B-8A0B-4A0F-A998-DB32425BDBC1/ListViewRequireTemplateId.app/app.js:3:23";
[ERROR] :  }
_expected behavior_
[INFO] :   listSection: 1
[INFO] :   listTemplate: 2

Attachments

FileDateSize
app.tss2017-02-28T10:58:24.000+0000780
index.js2017-02-28T10:58:11.000+000075
index.tss2017-02-28T10:58:24.000+0000155
index.xml2017-02-28T10:58:32.000+0000299
listSection.js2017-02-28T10:58:11.000+0000187
listSection.tss2017-02-28T10:58:24.000+000022
listSection.xml2017-02-28T10:58:32.000+0000170
listTemplate.js2017-02-28T10:58:11.000+0000187
listTemplate.tss2017-02-28T10:58:24.000+000022
listTemplate.xml2017-02-28T10:58:32.000+0000133

Comments

  1. Christoph Eck 2017-02-28

    In the compiled index.js I could find the reason for this issue.
           var __alloyId0 = {};
           Alloy.createController("listTemplate", {
               __itemTemplate: __alloyId0
           });
           $.__views.listSection = Alloy.createController("listSection", {
               id: "listSection"
           });
       
  2. Sharif AbuDarda 2017-02-28

    Hello, Thanks for submitting the ticket. Our engineers will loom into it.

JSON Source