Skip to content

Instantly share code, notes, and snippets.

@jorgt
Created March 7, 2018 05:37
Show Gist options
  • Save jorgt/1838977f3a3473c2a583c0684164dd25 to your computer and use it in GitHub Desktop.
Save jorgt/1838977f3a3473c2a583c0684164dd25 to your computer and use it in GitHub Desktop.
var path = "/sap/bc/ui5_ui5/sap/zmp_i_posreq/";
var modulePath = "com.riotinto.inbox.mp.positionrequest";
jQuery.sap.registerModulePath(modulePath, _path);
jQuery.sap.require(modulePath + ".Component");
//add container to whatever element. component data can only be set at constructor time
//so destroy and re-make if required.
var container = new sap.ui.core.ComponentContainer({
name: modulePath,
component: modulePath,
settings: {
componentData: {
startupParameters: {
myParam: ["my-value"]
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment