Sapui5 Router is not working for the second time in Master Detail AppSAPUI5 SplitApp Master and Detail Page not workingCancel the router navigation in SAPUI5SAPUI5 routing Single Master to Multiple DetailsSAPUI5 Custom Nav Router on Master DetailHow to navigate from detail page to second master page SAPUI5Navigation from Full-Screen View to Master-Detail View SAPUI5SAPUI5 - bindElement doesn't work the second timeMaster-Detail view - SAPUI5 : Passing argument from Master to Detail controllerMaster Detail View [Binding not working] SAPUI5SAPUI5: Sum of sap.ui.table.Table column in Master-Detail view
c++ conditional uni-directional iterator
How could it be that 80% of townspeople were farmers during the Edo period in Japan?
How to continually let my readers know what time it is in my story, in an organic way?
Assembly writer vs compiler
Wifi is sometimes soft blocked by unknown service
Cuban Primes
What do the "optional" resistor and capacitor do in this circuit?
the correct order of manual install WP and SSL on server
What dog breeds survive the apocalypse for generations?
Polynomial division: Is this trick obvious?
Slice a list based on an index and items behind it in python
It is as easy as A B C, Figure out U V C from the given relationship
Does addError() work outside of triggers?
How to describe a building set which is like LEGO without using the "LEGO" word?
Testing blind license applicants
Given 0s on Assignments with suspected and dismissed cheating?
Are there microwaves to heat baby food at Brussels airport?
Why are goodwill impairments on the statement of cash-flows of GE?
Why commonly or frequently used fonts sizes are even numbers like 10px, 12px, 16px, 24px, or 32px?
Does the wearer know what items are in which patch in the Robe of Useful items?
Were any of the books mentioned in this scene from the movie Hackers real?
What metal is most suitable for a ladder submerged in an underground water tank?
Wiring a 4 channel relay - is this possible?
UUID type for NEWID()
Sapui5 Router is not working for the second time in Master Detail App
SAPUI5 SplitApp Master and Detail Page not workingCancel the router navigation in SAPUI5SAPUI5 routing Single Master to Multiple DetailsSAPUI5 Custom Nav Router on Master DetailHow to navigate from detail page to second master page SAPUI5Navigation from Full-Screen View to Master-Detail View SAPUI5SAPUI5 - bindElement doesn't work the second timeMaster-Detail view - SAPUI5 : Passing argument from Master to Detail controllerMaster Detail View [Binding not working] SAPUI5SAPUI5: Sum of sap.ui.table.Table column in Master-Detail view
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Hello Everyone,
Im facing an issue in Routing in Master Detail Application. When im clicking on Master Record for the first time. It is redirecting to Detail View. But if i click on another record in Master View, Router is not navigating to Detail View..
Can some one help me to clear my issue ??
If you see the above pic, When i hit on First Record corresponding details are loaded in Detail View.
If i hit on second Record(highlighted in Red) my Detail page is not getting triggered.
Below is the code im trying...
Master.controller.js
onItemPress: function (oEvent)
var contextPath = oEvent.getParameter('listItem');
var getPath = contextPath.getBindingContext("masterModel").getPath().split("/")[1];
sap.ui.getCore().selRecordData = contextPath.getBindingContext("masterModel").getModel().getData()[getPath];
this._router.navTo("detail");
,
Detail Controller.js
onInit: function ()
var oComponent = this.getOwnerComponent();
this._router = oComponent.getRouter();
this._router.getRoute("detail").attachPatternMatched(this._routePatternMatched, this);
,
_routePatternMatched: function ()
var detailModel = new sap.ui.model.json.JSONModel();
detailModel.setData(sap.ui.getCore().selRecordData);
this.getView().setModel(detailModel, "detailModel");
manifest.json
"routing":
"config":
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "sap.m.serviceRequestLast.view",
"controlAggregation": "pages",
"controlId": "idSplitApp",
"clearControlAggregation": false
,
"routes": [
"pattern": "",
"name": "master",
"target": [
"detail",
"master"
]
,
"pattern": "detail",
"name": "detail",
"target": [
"master",
"detail"
]
],
"targets":
"master":
"viewName": "Master",
"controlAggregation": "masterPages",
"viewLevel": 1
,
"detail":
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "Detail",
"controlAggregation": "detailPages",
"viewLevel": 2
Can some one please help me to sort my issue..
Thank you in advance..
sapui5
add a comment |
Hello Everyone,
Im facing an issue in Routing in Master Detail Application. When im clicking on Master Record for the first time. It is redirecting to Detail View. But if i click on another record in Master View, Router is not navigating to Detail View..
Can some one help me to clear my issue ??
If you see the above pic, When i hit on First Record corresponding details are loaded in Detail View.
If i hit on second Record(highlighted in Red) my Detail page is not getting triggered.
Below is the code im trying...
Master.controller.js
onItemPress: function (oEvent)
var contextPath = oEvent.getParameter('listItem');
var getPath = contextPath.getBindingContext("masterModel").getPath().split("/")[1];
sap.ui.getCore().selRecordData = contextPath.getBindingContext("masterModel").getModel().getData()[getPath];
this._router.navTo("detail");
,
Detail Controller.js
onInit: function ()
var oComponent = this.getOwnerComponent();
this._router = oComponent.getRouter();
this._router.getRoute("detail").attachPatternMatched(this._routePatternMatched, this);
,
_routePatternMatched: function ()
var detailModel = new sap.ui.model.json.JSONModel();
detailModel.setData(sap.ui.getCore().selRecordData);
this.getView().setModel(detailModel, "detailModel");
manifest.json
"routing":
"config":
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "sap.m.serviceRequestLast.view",
"controlAggregation": "pages",
"controlId": "idSplitApp",
"clearControlAggregation": false
,
"routes": [
"pattern": "",
"name": "master",
"target": [
"detail",
"master"
]
,
"pattern": "detail",
"name": "detail",
"target": [
"master",
"detail"
]
],
"targets":
"master":
"viewName": "Master",
"controlAggregation": "masterPages",
"viewLevel": 1
,
"detail":
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "Detail",
"controlAggregation": "detailPages",
"viewLevel": 2
Can some one please help me to sort my issue..
Thank you in advance..
sapui5
Is the selRecordData getting the information correctly when you click the second item ? What value is show on the debugger ?
– Geraldo Megale
Mar 23 at 16:16
Yes..selRecordData contain selected row details....the problem is with navigation for second time....
– user3496976
Mar 24 at 1:31
Aside from this totally not being the way you should do what you want to do: Is the Details _routePatternMatched hit on the second click?
– cschuff
Mar 29 at 7:51
add a comment |
Hello Everyone,
Im facing an issue in Routing in Master Detail Application. When im clicking on Master Record for the first time. It is redirecting to Detail View. But if i click on another record in Master View, Router is not navigating to Detail View..
Can some one help me to clear my issue ??
If you see the above pic, When i hit on First Record corresponding details are loaded in Detail View.
If i hit on second Record(highlighted in Red) my Detail page is not getting triggered.
Below is the code im trying...
Master.controller.js
onItemPress: function (oEvent)
var contextPath = oEvent.getParameter('listItem');
var getPath = contextPath.getBindingContext("masterModel").getPath().split("/")[1];
sap.ui.getCore().selRecordData = contextPath.getBindingContext("masterModel").getModel().getData()[getPath];
this._router.navTo("detail");
,
Detail Controller.js
onInit: function ()
var oComponent = this.getOwnerComponent();
this._router = oComponent.getRouter();
this._router.getRoute("detail").attachPatternMatched(this._routePatternMatched, this);
,
_routePatternMatched: function ()
var detailModel = new sap.ui.model.json.JSONModel();
detailModel.setData(sap.ui.getCore().selRecordData);
this.getView().setModel(detailModel, "detailModel");
manifest.json
"routing":
"config":
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "sap.m.serviceRequestLast.view",
"controlAggregation": "pages",
"controlId": "idSplitApp",
"clearControlAggregation": false
,
"routes": [
"pattern": "",
"name": "master",
"target": [
"detail",
"master"
]
,
"pattern": "detail",
"name": "detail",
"target": [
"master",
"detail"
]
],
"targets":
"master":
"viewName": "Master",
"controlAggregation": "masterPages",
"viewLevel": 1
,
"detail":
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "Detail",
"controlAggregation": "detailPages",
"viewLevel": 2
Can some one please help me to sort my issue..
Thank you in advance..
sapui5
Hello Everyone,
Im facing an issue in Routing in Master Detail Application. When im clicking on Master Record for the first time. It is redirecting to Detail View. But if i click on another record in Master View, Router is not navigating to Detail View..
Can some one help me to clear my issue ??
If you see the above pic, When i hit on First Record corresponding details are loaded in Detail View.
If i hit on second Record(highlighted in Red) my Detail page is not getting triggered.
Below is the code im trying...
Master.controller.js
onItemPress: function (oEvent)
var contextPath = oEvent.getParameter('listItem');
var getPath = contextPath.getBindingContext("masterModel").getPath().split("/")[1];
sap.ui.getCore().selRecordData = contextPath.getBindingContext("masterModel").getModel().getData()[getPath];
this._router.navTo("detail");
,
Detail Controller.js
onInit: function ()
var oComponent = this.getOwnerComponent();
this._router = oComponent.getRouter();
this._router.getRoute("detail").attachPatternMatched(this._routePatternMatched, this);
,
_routePatternMatched: function ()
var detailModel = new sap.ui.model.json.JSONModel();
detailModel.setData(sap.ui.getCore().selRecordData);
this.getView().setModel(detailModel, "detailModel");
manifest.json
"routing":
"config":
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "sap.m.serviceRequestLast.view",
"controlAggregation": "pages",
"controlId": "idSplitApp",
"clearControlAggregation": false
,
"routes": [
"pattern": "",
"name": "master",
"target": [
"detail",
"master"
]
,
"pattern": "detail",
"name": "detail",
"target": [
"master",
"detail"
]
],
"targets":
"master":
"viewName": "Master",
"controlAggregation": "masterPages",
"viewLevel": 1
,
"detail":
"viewType": "XML",
"transition": "slide",
"clearAggregation": true,
"viewName": "Detail",
"controlAggregation": "detailPages",
"viewLevel": 2
Can some one please help me to sort my issue..
Thank you in advance..
sapui5
sapui5
edited Mar 24 at 1:32
user3496976
asked Mar 23 at 15:15
user3496976user3496976
5413
5413
Is the selRecordData getting the information correctly when you click the second item ? What value is show on the debugger ?
– Geraldo Megale
Mar 23 at 16:16
Yes..selRecordData contain selected row details....the problem is with navigation for second time....
– user3496976
Mar 24 at 1:31
Aside from this totally not being the way you should do what you want to do: Is the Details _routePatternMatched hit on the second click?
– cschuff
Mar 29 at 7:51
add a comment |
Is the selRecordData getting the information correctly when you click the second item ? What value is show on the debugger ?
– Geraldo Megale
Mar 23 at 16:16
Yes..selRecordData contain selected row details....the problem is with navigation for second time....
– user3496976
Mar 24 at 1:31
Aside from this totally not being the way you should do what you want to do: Is the Details _routePatternMatched hit on the second click?
– cschuff
Mar 29 at 7:51
Is the selRecordData getting the information correctly when you click the second item ? What value is show on the debugger ?
– Geraldo Megale
Mar 23 at 16:16
Is the selRecordData getting the information correctly when you click the second item ? What value is show on the debugger ?
– Geraldo Megale
Mar 23 at 16:16
Yes..selRecordData contain selected row details....the problem is with navigation for second time....
– user3496976
Mar 24 at 1:31
Yes..selRecordData contain selected row details....the problem is with navigation for second time....
– user3496976
Mar 24 at 1:31
Aside from this totally not being the way you should do what you want to do: Is the Details _routePatternMatched hit on the second click?
– cschuff
Mar 29 at 7:51
Aside from this totally not being the way you should do what you want to do: Is the Details _routePatternMatched hit on the second click?
– cschuff
Mar 29 at 7:51
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315204%2fsapui5-router-is-not-working-for-the-second-time-in-master-detail-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315204%2fsapui5-router-is-not-working-for-the-second-time-in-master-detail-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is the selRecordData getting the information correctly when you click the second item ? What value is show on the debugger ?
– Geraldo Megale
Mar 23 at 16:16
Yes..selRecordData contain selected row details....the problem is with navigation for second time....
– user3496976
Mar 24 at 1:31
Aside from this totally not being the way you should do what you want to do: Is the Details _routePatternMatched hit on the second click?
– cschuff
Mar 29 at 7:51