我试图在我的查询中获取 200 多个元素。因此,我已根据此文档修改了查询应返回的结果限制,但这不起作用。任何的想法?
我正在尝试以下操作:
var tasksWithActualsQuery = Ext.create('Rally.data.WsapiDataStore',
{
model: 'Task',
limit: Infinity,
fetch: ['CreationDate', 'Actuals'],
filters:
[
{
property: 'CreationDate',
operator: '<',
value: 'LastMonth'
}
]
});
tasksWithActualsQuery.load({
callback: function(records, operation)
{
if(operation.wasSuccessful())
{
var tasksWithActualsCount = 0;
Ext.Array.each(records, function(record) {
if (record.get('Actuals') != null)
{
tasksWithActualsCount++;
}
});
var tasksCount = records.length;
alert(tasksCount);
}
}
});