Skip to Content
0
Dec 17, 2013 at 06:55 AM

Building mobile app in mvc

28 Views

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?