Skip to Content
Jun 02, 2017 at 12:59 PM

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



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,