Hi,
i have a problem in calling the attach press function from the view for eg:
consider
var oMasterPage2 = new sap.m.Page("master2",{
title : "Master2",
navButtonPress : function() {
oSplitApp.backMaster();
},
content : [ new sap.m.List({
mode:"SingleSelectMaster",
select: function(oEv) {
if(oEv.getParameter("listItem").getId() == "listDetail2") {
oSplitApp.toDetail("detail2");
}else {
oSplitApp.toDetail("detail1");
}
},
items : [ new sap.m.StandardListItem("listDetail2",{
title : "To Detail 2"
}), new sap.m.StandardListItem("listDetail",{
title : "To Detail 1"
}) ]
}) ]
});
so from the above code if i write in mvc how should i call the attachNavButtonPress and attachSelect event? can anyone help me out i solving this issue?