cancel
Showing results for 
Search instead for 
Did you mean: 

Update the detail page in a splitview based on the masterview selection

Former Member
0 Kudos

Hi Al

I want to display  a SplitApp as shown below

when the list is selected in the master page. a list  showing the details of the selected items in the masterpage  has to be displayed in the detail.

The list doesnot get updated.

The code i am using is given below:

var context =evt.getSource().getSelectedItems();

  var obj=evt.getParameter("listItem").getBindingContext("mock").getObject();

  var app=this.getView();

var oModel=app.getModel("mdl");//model that is bound to the list

var modelData=oModel.getData();

modelData.mData.push(obj)

oModel.updateBindings();

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Could you try : oModel.refresh(); ?

Regards,

Marc

Former Member
0 Kudos

Hi,

yes i tried but did not help

Former Member
0 Kudos

when  checked in the chrome console the model bound to the list gets updated but the items in the list does not get updated

Former Member
0 Kudos

Hi,

you may have to refresh your list's model : yourList.getModel().refresh ?

Here is an Exemple with JsBin

Message was edited by: Marc BROSSAIS

Former Member
0 Kudos

Thank u Marc for your reply.It works fine after using refresh()

Answers (0)