cancel
Showing results for 
Search instead for 
Did you mean: 

Routing to detail view doesn't happen if same item is again selected in Master view

0 Kudos

Hello,

I have created a master-detail application based on the template and added a dropdown box on the master, on choosing which the detail list will get loaded.

Once the master is loaded, by default, I set the first item to selected so that the detail gets displayed -> the same as if the user selects the item

oList.setSelectedItem(aItems[0], true /*selected*/ , true /*fire event*/ )

Everything works fine for the first time, when I choose another item in the dropdown that has no value, a Nodata page is displayed in the detail. Again choose the first one again, the detail view is not triggered, basically the _onObjectMatched of

this.getRouter().getRoute("object").attachPatternMatched(this._onObjectMatched, this);

is not called and it keeps showing the old page. When I choose another item in the same list, it's all fine again,

But this doesn't happen if the second item chosen in the master has data. So, only when a no-data page appears, this happens.

Any advise is appreciated,

thank you,

Satzr

Accepted Solutions (0)

Answers (2)

Answers (2)

maheshpalavalli
Active Contributor
0 Kudos

your hash has to be changed in the url for the route matched method to be triggered. Please check why the hash is not changed..

Best Regards,
Mahesh

Former Member
0 Kudos

Try set RememberSelections = false in the list.