我正在尝试通过Estimation Board编辑并保存投资组合项目的InitialEstimate值,但它会将其重置为原始值。我在电路板上使用了InitialEstimateValue但是当移动卡时,我将InitialEstimate重置为新的列值。
var store = Ext.create('Rally.data.wsapi.Store', {
model: 'PreliminaryEstimate',
fetch: ['ObjectID','ObjectUUID','VersionId','Description','Name','Value','CreationDate','Subscription','Workspace','RevisionHistory'],
autoLoad: false,
limit: Infinity,
disableMetaChangeEvent: true
});
beforecarddroppedsave: function (scope, card, type, sourceColumn, eOpts) {
card.record.data.PreliminaryEstimate = _.omit(_.filter(this.preliminaryEstimateStore.getRange(), function (pe) { return pe.data.Value === card.record.data.PreliminaryEstimateValue })[0]
.data, ['Summary', 'creatable', 'deletable', 'updatable', '_CreatedAt', '_objectVersion', '_uuidRef']);
选项也有新值。它可以成功保存,但旧值不会更改为新值
handleBeforeCardDroppedSave: function (options) {
options.record.save({})
谢谢!
答案 0 :(得分:1)
如果您检查网络流量是否实际通过网络发送该值?我尝试使用setter方法而不是直接操作数据对象。我的猜测是,记录认为它没有任何变化,以保存当前代码的编写方式。
card.record.set('PreliminaryEstimate', '/preliminaryestimatevalue/12345');