Hi, I need to be able to populate a list on a TaskEdit tab using the store.
I have set it up but the data from the store is not showing, see setup below:
Data setup, although this will come from a web service eventually.
var oScoresList = [];
var oScore = {};
oScore = {};
oScore.id = 123456;
oScore.text = "Bran Freemont";
oScoresList.push(oScore);
oScore = {};
oScore.id = 3322321;
oScore.text = "Thomson Crackmore";
oScoresList.push(oScore);
oScore = {};
oScore.id = 9371564;
oScore.text = "Sarah Freshman";
oScoresList.push(oScore);
The List setup in the task edit:
taskEdit: {
showDeleteButton: false,
editorConfig: {
title: 'My title'
},
items: {
customerTab: null,
oppTab: null,
notesTab: null,
scoresTab: {
title: 'My Scores',
weight: 20,
items: {
scoresList: {
type: 'List',
store: oScoresList,
displayField: 'text',
textField: 'text',
}
}
},
predecessorsTab: false,
successorsTab: false,
advancedTab: false
}
}
I have attached the sample code, to re-create.
- Double click an event.
- The "MY Scores" tab is empty.
Thanks
Brian.