Hi,
I have a problem with the create sales order app (ui5_sd_so_cr).
Everything works fine until Google Chrome browser updates to version 34.0.1847.116 m .
The create sales order application has an error when i try to checkout the cart.
This error is in the SalesOrderCreatePriceAndAvailabilityCheck.controller.js and SalesOrderCartDetails.js in this function:
l.oSOCartModel.refreshSecurityToken(function (a, b) {
l.oSOCartModel.create("/SalesOrders", m, null, function (c, d) {
com.sap.kelley.salesordercreate.utils.ModelUtils.updateCartModelFromSimulationResponse(d);
oSObusyIndicator.close();
}, function (g) {
oSObusyIndicator.close();
var d = g.response.body;
var f = jQuery.parseXML(d);
var e = f.getElementsByTagName("message")[0].childNodes[0].nodeValue;
var c = new sap.m.Dialog({
title: sap.ca.common.uilib.message.AlertMessageBoxType.ERROR.title,
content: [new sap.m.Label({
text: e
})],
leftButton: new sap.m.Button({
text: l.oBundle.getProperty("XBUT_OK"),
tap: function () {
if (j) {
l._onNavigateBack();
}
c.close();
}
}),
});
c.addStyleClass("sapSOC-SingleButtonDialog");
c.open();
})
}, function (a) {
oSObusyIndicator.close();
var b = new sap.m.Dialog({
title: sap.ca.common.uilib.message.AlertMessageBoxType.ERROR.title,
content: [new sap.m.Label({
text: sap.ui.getCore()
.getModel("i18n")
.getProperty("ERROR_REFRESH_SECURITY_TOKEN")
})],
leftButton: new sap.m.Button({
text: l.oBundle.getProperty("XBUT_OK"),
tap: function () {
if (j) {
l._onNavigateBack();
}
b.close();
}
}),
});
b.addStyleClass("sapSOC-SingleButtonDialog");
b.open();
}, false);
The error is in the line 07. Cannot read property 'body' of undefined
Variable g is undefined.
I tested the application with other browsers (IE, Firefox, Safari) and everything works perfectly. Only Chrome has this kind of problem.
UISRA
UISRA017 100 0002 SAPK-10002INUISRA017 HTML5 Create OrderSystem
SAP_BASIS 731 0007 SAPKB73107 SAP Basis Component GW_CORE 200 0006 SAPK-20006INGWCORE SAP GW CORE 200 IW_BEP 200 0007 SAPK-20007INIWBEP Backend Event ProviderUI5 version 1.16.4
It 'happened to someone else?
How can I fix the problem?
Thank you for your help.
Regards,
Nicola