Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24436

ListView: support id for required ListView Templates

    Details

    • Type: Improvement
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Titanium SDK version: 6.0.2.GA
      Javascript Engine: V8
      Platform & version: iOS
      Device Details: iOS simulator iPhone 5s 10.2
      Host Operating System: Mac OS X 10.12.2
      Titanium Studio version: 4.8.1.201612050850

      Description

      Problem
      Can not access required ListView template by id.

      actual behavior

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

      expected behavior

      1. Compile and start project
      2. 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

        1. app.tss
          0.8 kB
        2. index.js
          0.1 kB
        3. index.tss
          0.2 kB
        4. index.xml
          0.3 kB
        5. listSection.js
          0.2 kB
        6. listSection.tss
          0.0 kB
        7. listSection.xml
          0.2 kB
        8. listTemplate.js
          0.2 kB
        9. listTemplate.tss
          0.0 kB
        10. listTemplate.xml
          0.1 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chris35 Christoph Eck
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code