Skip to Content
0
Former Member
Apr 28, 2016 at 09:58 AM

Creating JSView with viewContent without ViewName

42 Views

Hi,

We want to create JSView when we are having viewContent as string. For this we don't have viewName, neither we want to create view file for the same. Can we create jsView with such condition?

var oView = sapui.view({

viewName : "AppView", // we don't want to pass viewName

viewContent : sJSContent, // we want to create view by passing this only

type : sapui.core.mvc.ViewType["JS"]

});

Can we do something like that?

Thanks & Regards,

Rhythm