Я пытаюсь создать собственное хранилище данных ралли и передать его в сетку ралли. Но я получаю следующую ошибку: «Неиспользуемая ошибка: невозможно настроить хранилище без определенных моделей». Но я указал модель таможни магазина.Rally Custom Data Store Issue
Uncaught Ошибка: Не удается настроить магазин без каких-либо моделей определяется
var retrievedRecords = myStore.getRecords();
var defectRecords = [];
Ext.Array.each(retrievedRecords, function(record) {
//Perform custom actions with the data here
//Calculations, etc.
defectRecords.push({
FormattedID: record.get('FormattedID'),
Name: record.get('Name'),
State: record.get('State'),
Release: record.get('Release'),
FixedInBuild: record.get('FixedInBuild'),
SubmittedBy: record.get('SubmittedBy'),
Owner: record.get('Owner'),
CreationDate: record.get('CreationDate'),
ReleaseNote: record.get('ReleaseNote')
});
});
this.newStore = Ext.create('Rally.data.custom.Store', {
data: defectRecords,
model: 'Defect',
autoSync:true,
listeners: {
load: this._newStoreOnLoad(),
scope: this
},
autoLoad: true
});
ли я что-то отсутствует?
Спасибо!