Hi Friends,
is it possible to create a model dynamically like below?
Here the ConfigLine.ENTITY_NAME is 'MATERIAL' and the Model should be "JMODMATERIAL" later.
var jModName = "JMOD" + ConfigLine.ENTITY_NAME;
var jModName = new sap.ui.model.json.JSONModel();
oModel.read(entity, null, null, false,
function(RESP, oResponse) {
jModName.setData(RESP);
}, null);
And later:
var jModName = "JMOD" + ConfigLine.ENTITY_NAME;
var tabData =jModName.getData();
But it does not work.
Any help would be appreciated.
Rg. Joerg