Skip to content

Instantly share code, notes, and snippets.

@pandu536
Created August 13, 2014 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandu536/e3d6feb49b8ec9131de8 to your computer and use it in GitHub Desktop.
Save pandu536/e3d6feb49b8ec9131de8 to your computer and use it in GitHub Desktop.
jQuery.sap.declare("ZGreenfield.Component");
sap.ui.core.UIComponent.extend("ZGreenfield.Component", {
createContent : function() {
// create root view
var oView = sap.ui.view({
id : "App",
viewName : "ZGreenfield.greenfield_refinery.launchdashboard",
type : "JS",
viewData : { component : this }
});
// Using a local model for offline development
var oModel = new sap.ui.model.json.JSONModel("jsonFiles/.");
oView.setModel(oModel);
// done
return oView;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment