Skip to Content
0

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

Jun 02, 2017 at 12:59 PM

69

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Kuppireddi Sireesh Jun 02, 2017 at 01:13 PM
0

Try set RememberSelections = false in the list.

Share
10 |10000 characters needed characters left characters exceeded
Mahesh kumar palavalli Jun 02, 2017 at 07:25 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded