{ "id": "166350", "key": "TIMOB-24436", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-02-28T11:00:27.000+0000", "priority": null, "labels": [ "feature" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:04.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "*Problem*\r\nCan not access required ListView template by id.\r\n\r\n*actual behavior*\r\n# Compile and start project\r\n# in the log is shown listSection: 1, Script Error message = \"undefined is not an object (evaluating '$.listTemplate.setValue')\";\r\n\r\n*expected behavior*\r\n# Compile and start project\r\n# in the log is shown listSection: 1, listTemplate: 2\r\n\r\n*Test case*\r\nUse the attached files below.\r\n\r\n*Log*\r\n_actual behavior_\r\n{code}\r\n[INFO] : listSection: 1\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 19;\r\n[ERROR] : line = 53;\r\n[ERROR] : message = \"undefined is not an object (evaluating '$.listTemplate.setValue')\";\r\n[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\";\r\n[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\";\r\n[ERROR] : }\r\n{code}\r\n\r\n_expected behavior_\r\n{code}\r\n[INFO] : listSection: 1\r\n[INFO] : listTemplate: 2\r\n{code}", "attachment": [ { "id": "61739", "filename": "app.tss", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:24.000+0000", "size": 780, "mimeType": "application/octet-stream" }, { "id": "61742", "filename": "index.js", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:11.000+0000", "size": 75, "mimeType": "text/javascript" }, { "id": "61738", "filename": "index.tss", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:24.000+0000", "size": 155, "mimeType": "application/octet-stream" }, { "id": "61735", "filename": "index.xml", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:32.000+0000", "size": 299, "mimeType": "text/xml" }, { "id": "61741", "filename": "listSection.js", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:11.000+0000", "size": 187, "mimeType": "text/javascript" }, { "id": "61737", "filename": "listSection.tss", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:24.000+0000", "size": 22, "mimeType": "application/octet-stream" }, { "id": "61734", "filename": "listSection.xml", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:32.000+0000", "size": 170, "mimeType": "text/xml" }, { "id": "61740", "filename": "listTemplate.js", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:11.000+0000", "size": 187, "mimeType": "text/javascript" }, { "id": "61736", "filename": "listTemplate.tss", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:24.000+0000", "size": 22, "mimeType": "application/octet-stream" }, { "id": "61733", "filename": "listTemplate.xml", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T10:58:32.000+0000", "size": 133, "mimeType": "text/xml" } ], "flagged": false, "summary": "ListView: support id for required ListView Templates", "creator": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 6.0.2.GA\r\nJavascript Engine: V8\r\nPlatform & version: iOS\r\nDevice Details: iOS simulator iPhone 5s 10.2 \r\nHost Operating System: Mac OS X 10.12.2 \r\nTitanium Studio version: 4.8.1.201612050850", "comment": { "comments": [ { "id": "408115", "author": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "body": "In the compiled index.js I could find the reason for this issue.\r\n{code}\r\n var __alloyId0 = {};\r\n Alloy.createController(\"listTemplate\", {\r\n __itemTemplate: __alloyId0\r\n });\r\n $.__views.listSection = Alloy.createController(\"listSection\", {\r\n id: \"listSection\"\r\n });\r\n{code}", "updateAuthor": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-28T11:03:41.000+0000", "updated": "2017-02-28T11:04:04.000+0000" }, { "id": "408121", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Thanks for submitting the ticket. Our engineers will loom into it. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-28T14:21:45.000+0000", "updated": "2017-02-28T14:21:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }