在尝试使用 Rally.data.BulkRecordUpdater 时,我遇到了一些问题。首先,文档不正确。提供的示例:
Rally.data.BulkRecordUpdater({
records: [record1, record2],
propertiesToUpdate: {
Parent: '/hierarchicalrequirement/123.js'
},
success: function(readOnlyRecords){
//all updates finished, except for given read only records
},
scope: this
});
应该:
Rally.data.BulkRecordUpdater.updateRecords({
records: [record1, record2],
propertiesToUpdate: {
Parent: '/hierarchicalrequirement/123.js'
},
success: function(readOnlyRecords){
//all updates finished, except for given read only records
},
scope: this
});
其次,当尝试使用此方法更新记录时,我不断收到无法调用方法“get”的错误 - 我假设这是因为我提供的记录格式不正确。我只是在从 wsapi 查询中提取的记录上调用它。我尝试将对象放在另一个对象中:
{data: record}
但它似乎仍然没有帮助。任何想法将不胜感激!