on 04-10-2014 4:52 PM
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 Order |
System
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 Provider |
UI5 version 1.16.4
It 'happened to someone else?
How can I fix the problem?
Thank you for your help.
Regards,
Nicola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aksel,
I have tried the solution proposed in your posted link and it works.
I have a custom create sales order application, so I can include the javascript code in the index of the app and everything works fine.
Yes, I know that the problem is still there for the original Fiori application suite.
Customize all the applications is not the best way.
I hope that someone could find a solution for this issue.
Regards,
Nicola
For fiori Apps, you can do either of below steps copying code of workaround from here
1) You can do jQuery.sap.require("folderLocation.workaround"); in your app.js or component.js . But make sure you register the folderLocation using jQuery.sap.registerModulePath() or sap.ui.localResources()
2) Alternative for above one, copy the code of workaround and paste it anywhere before you do the first oData crud operations.
Few things you can try,
Upgrade your UI5 library version. Latest is 1.18
Implement release notes :
1948368 - Fiori Create Sales Order Wave 1 Common Library Fixes
1947789 - Fiori Create Sales Order Wave 1 Fixes
Check if these can be applied or go with UI library update.
1939288 - Hotfix 1.16.5 for UI AddOn SP06 SC: UI2_SRVC
Regards,
Tejas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check this link for UI5 library fixes for your version 1.16, try to find if there are any fixes done to the new UI library version related to Chrome browser. I see many bug fixes related to Chrome 31, 30..See if 33 34 also have some fixes. Check the link in detail to findout.
Documentation/ReleaseNotes/ReleaseNotes-1.18 – SAPUI5 Wiki (TIP CORE User Interface)
This clearly means, you need to upgrade your UI5 library version
There are many bug fixes if you upgrade your browser or Ui version,so keep everthin updated is what I see here.
Regards,
Tejas
We got the same Problem, any SAPUI5 odata-update methods are not working anymore...
Problem comes with Chrome version jump 33>34
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.