Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 02, 2017 at 01:13 PM

    Try set RememberSelections = false in the list.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 02, 2017 at 07:25 PM

    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

    Add comment
    10|10000 characters needed characters exceeded