Hi PS,
You have to set the model to the global context then you can retrieve
var oModel = new sap.ui.model.json.JSONModel(); oModel.setData({ "firstName": "Peter", "lastName": "Pan" }); //set the model sap.ui.getCore().setModel(oModel); //get the model sap.ui.getCore().getModel().oData; // Returns the data
Regards,
Ajain