on 06-12-2014 2:03 PM
Hello,
i have a split app.
Master sap.m.List --> Sub-Master sap.m.List
The Master navigates to the Sub-Master, the Sub-Master opens the detail view.
On the Sub-Master shows a Nav-Button back and navigates back to the Master-List.
I am using src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js
My problem is when navigating back from the Sub-Master, that I can not select the "selected" item on the Master again (and navigate forward).
Here is part of the master - i put all the methods I tried... When testing I just let one method in the code...
<List
id="list"
mode="{device>/listMode}"
items="{/tabWorkPlace}"
press="handleListSelect"
itempress="handleListSelect"
select="handleListSelect"
>
<ObjectListItem
press="handleListItemPress"
tab="handleListItemPress"
title="{Description}"
However, the only thing which listens is from List the select method, the others don't work...
And with this select method I can not "re-select" the active item and navigate to the subpage.
List Mode is listMode : (jQuery.device.is.phone) ? "None" : "SingleSelectMaster".
What am I doing wrong...?
BR and thanks a lot!
Denise
Hi Denise,
"My problem is when navigating back from the Sub-Master, that I can not select the "selected" item on the Master again (and navigate forward)."
When navigating back from Sub-Master you should see that the listitem you selected before is still selected.
Solution for your problem (which is working for me):
Deselect listitem before navigating to Sub-Master
Regards,
Edwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Denise,
I had the same problem, however I could fix it adding in the select method the following lines:
var oList = sap.ui.getCore().byId(listId);
var oSelectedItem = oList.getSelectedItem();
oList.setSelectedItem(oSelectedItem,false); // This action deselects item and allow you select the item again
Regards
Pablo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Denise,
we experienced the same problem some weeks ago and did not find a solution for it. A selected item will not fire the select event again. But it also does not fire press, tap or other events.
I would think that this is an error or a missing feature. Although an item is selected I expect that the events press, itempress, tap etc. are still fired.
Cheers,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.