[TIMOB-24436] ListView: support id for required ListView Templates
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | feature |
Reporter | Christoph Eck |
Assignee | Unknown |
Created | 2017-02-28T11:00:27.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
app.tss | 2017-02-28T10:58:24.000+0000 | 780 |
index.js | 2017-02-28T10:58:11.000+0000 | 75 |
index.tss | 2017-02-28T10:58:24.000+0000 | 155 |
index.xml | 2017-02-28T10:58:32.000+0000 | 299 |
listSection.js | 2017-02-28T10:58:11.000+0000 | 187 |
listSection.tss | 2017-02-28T10:58:24.000+0000 | 22 |
listSection.xml | 2017-02-28T10:58:32.000+0000 | 170 |
listTemplate.js | 2017-02-28T10:58:11.000+0000 | 187 |
listTemplate.tss | 2017-02-28T10:58:24.000+0000 | 22 |
listTemplate.xml | 2017-02-28T10:58:32.000+0000 | 133 |
In the compiled index.js I could find the reason for this issue.
Hello, Thanks for submitting the ticket. Our engineers will loom into it.