UI5를 사용하여 작업 목록 응용 프로그램을 만들고 있습니다. 문제는 내가 항목을 작성한 후 바로 다른 항목을 작성하면 Default Changeset Implementation allows only one operation
오류가 발생한다는 것입니다. $ 배치 헤더를 확인한 결과, MERGE와 POST가 있는데, MERGE가 어떤 이유로 이전 항목을 업데이트하는 것을 볼 수 있습니다. 누구든지 약간의 빛을 비추 수 있습니까? 그것은 백엔드 오류가 아닌 UI5 오류 수 있을까요? 이것은 하나/생성/업데이트 호출을 삭제 이상을 포함하는 일괄 요청에만 발생과는 관련이 있어요 :-) 난 당신이 SAP GW를 사용하고 있어야합니다 말할 수있는 오류에서 새 항목submitChanges 두 요청 전송
_onMetadataLoaded: function() {
var oModel = this._oView.getModel();
this.resetAllCombos();
var that = this;
sap.ui.core.BusyIndicator.show();
oModel.read("/USERS_SET", {
success: function(oData) {
var oProperties = {
Qmnum: "0",
Otherstuff: "cool"
};
that._oContext = that._oView.getModel().createEntry("/ENTITYSET", {
properties: oProperties
});
that._oView.setBindingContext(that._oContext);
sap.ui.core.BusyIndicator.hide();
//update plant based dialogs
that._setPlantDialogFilters(that, that._oView, splant);
}
});
},
handleSavePress: function(oEvent) {
//prevent duplicate presses
var oSource = oEvent.getSource();
oSource.setEnabled(false);
var oView = this.oView;
var oRouter = this._oRouter;
var oResourceBundle = this._oResourceBundle;
if (this.checkErrors()){
var that = this;
sap.ui.core.BusyIndicator.show();
oView.getModel().submitChanges({
success: function(oData) {
var x = that;
// navigate to the new product's object view
var sQmnum = oView.byId("Qmnum").getValue();
// unbind the view to not show this object again
if (sQmnum !== 0 && sQmnum !== "" && that._oView.getModel().hasPendingChanges() === false){
oView.unbindObject();
// show success messge
var sMessage = oResourceBundle.getText("newIssueCreated", sQmnum);
MessageToast.show(sMessage, {
closeOnBrowserNavigation: false
});
sap.ui.core.BusyIndicator.hide();
x.returnToMainPage();
}else{
oSource.setEnabled(true);
sap.ui.core.BusyIndicator.hide();
}
},
error: function(oError) {
}
});
}else{
oSource.setEnabled(true);
}
},
}