on 08-26-2020 8:18 AM
Hello Experts,
In the Fiori Launchpad, in one of the UI5 Application, the user wants to bookmark the pages in the app, the issue is that the pattern that is matched in the application doesn't come up in the URL but the functions and navigations are working perfectly. But the patterns were coming up in the URL when the app was executed standalone means, not in the launchpad. Can anyone help on this issue:
When executed as a standalone app the pattern MATCHED # value shows up:
When executed in Fiori LP the pattern MATCHED # value DOES NOT show up: I have also maintained Semantic Navigation Checked in Catalog Config of the tile.
Thanks & Regards,
Zayid
what is the code to do the actual navigation? Because there is a difference between calling the route or calling the pattern if I'm not mistaking (one doesn't change the pattern)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Andy,
Thanks for being prompt. Below is my code for navigation,
onNavigateToDetail: function(oEvent) {
this.oRouter.navTo("detail", {
monthID: monthID,
title: title
});
var oItem = oEvent.getSource();
oItem.setNavigated(true);
this.getOwnerComponent().BusyDialogGlobal && this.getOwnerComponent().BusyDialogGlobal.open();
}
On Pattern Matched CB in "detail" view, I can access the monthID and title as well, But pattern isn't coming up in the URL to bookmark the page.
Thanks,Hello Andy,
Below is the Manifest Code:
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "application.xxx.view",
"controlId": "app",
"controlAggregation": "pages",
"transition": "slide",
"bypassed": {
"target": [
"notFound"
]
},
"async": true
},
"routes": [
{
"name": "appHome",
"pattern": "",
"titleTarget": "",
"greedy": false,
"target": "home"
},
{
"pattern": "detail/{monthID}/:title:",
"name": "detail",
"target": "detail"
}
],
"targets": {
"home": {
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "Home",
"viewLevel": 1
},
"detail": {
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "Detail",
"viewLevel": 2
},
"notFound": {
"viewName": "NotFound",
"transition": "show"
}
}
}
Thanks,
Zayid
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.