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;








0















enter image description hereHello 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..










share|improve this question
























  • 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

















0















enter image description hereHello 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..










share|improve this question
























  • 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













0












0








0








enter image description hereHello 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..










share|improve this question
















enter image description hereHello 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현