У меня есть OData Model V2 по умолчанию, и я пытаюсь обновить все свойства сразу.
Каждый раз, когда используется метод setProperty (), модель обновляется сама, и вызывается так много методов.вызывая некоторые проблемы с производительностью.
Как я могу установить изменения, не обновляя модель каждый раз, когда я вызываю метод setProperty () и обновляя модель в конце?
onAccept: function (oEvent) {
var oModel = this.getOwnerComponent().getModel();
oModel.setProperty("/QuoteItemSet(guid'" + this._sTliKey + "')/acceptedRateClass", true);
oModel.setProperty("/QuoteItemSet(guid'" + this._sTliKey + "')/workflowStatus", "02");
oModel.setProperty("/QuoteItemSet(guid'" + this._sTliKey + "')/accepted", true);
oModel.setProperty("/QuoteItemSet(guid'" + this._sTliKey + "')/approvedRate", this._nApprovedRateValue);
oModel.setProperty("/QuoteItemSet(guid'" + this._sTliKey + "')/approvedRateOnEdit", this._nApprovedRateValue);
},