on 08-30-2022 11:01 AM
General flow of the view : Home->statistic->list->details
Getting issue after pressing back button.
Below are the scenarios
Working scenario (level 1)
when back from view list -> statistic.Not working scenario (level 2)
When back from view detail->list -> statistic.
It seems that numbers are not properly rendered.
Note: After clicking F12 key two times, it starts working.
Kindly suggest how to resolve this issue.
Regards
Ketan
Hello,
The issue is resolved by handling the back button logic as suggested by SAP.
Earlier logic for reference:
goBackToList: function (oEvent) {
var oRouter = sap.ui.core.UIComponent.getRouterFor(this);
oRouter.navTo("R_ListBack");HomeHome
}
New Logic:
goBackToList: function (oEvent) {
var oRouter = sap.ui.core.UIComponent.getRouterFor(this);
var oHistory = History.getInstance();
var sPreviousHash = oHistory.getPreviousHash();
if (sPreviousHash !== undefined) {
window.history.go(-1);
} else {
var oRouter = this.getOwnerComponent().getRouter();
oRouter.navTo("Home", {}, true);
}
}
Check this link for more details.
Regards
Ketan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.