Skip to Content
0

Sapui5- Binding more than index From master to detail

Jun 15, 2017 at 08:50 AM

41

avatar image
Former Member

Hi,

I have sapui5 application and I want to display the details of two indices selected from master .

I have added a checkbox in master to select two indexes than, i don't find how to display the details of this two selected items .

Thank you

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

1 Answer

Jun Wu Jun 15, 2017 at 12:08 PM
0

how is the detail? table? two form?

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I have a simple master detail sapui5 application,

When i select an item from master, i will get in the details its name and its description .

I have added a checkbox to be able to check two items from master, than i need to have the name and the description of the two items selected .

I have added this code in master.js

onSelectionChange : function (oEvt) {
var oList = oEvt.getSource();
var aContexts = oList.getSelectedContexts(true);
}
0

I am asking how you want the two details to be displayed. table? or two form?

0
Former Member
Jun Wu

in two form

0

then each form will be bond to a binding context, like the sap demo.

what is bothering you?

0
Former Member
Jun Wu

I don't find how to get the selected items in my detail controller and display them in the view

0