Hi,
I have to different layouts in view, would want to apply to different JSON models .How can I do that.
Layout1 ---JSON model1
Layout2 ---JSON model2
Here is the sample code of mine
var aData1 = {
lab1 : "First Name",
lab2 : "Last Name",
input1 : "ABC",
input2 : "DEF" }
var omodel1= new sap.ui.model.json.JSONModel();
omodel1.setData(aData1);
sap.ui.getCore().setModel(omodel1); // Here is applied for whole view, but I want it to apply only for layout
var oLayout = new sap.ui.commons.layout.MatrixLayout(this.createId("matrix1"),{
//id : "matrix1",
layoutFixed : false
});
Can some body help me. Thanks.
Regards,
Ram