I am new in SAPUI5. I have recently registered a trial account from SAP in order to use their SAP web IDE. How to separate one application from another application which is in use. I have read some articles from the internet, and try to write a small test. However, it doesn't work.
The below code is from test 1.
data-sap-ui-resourceroots='{
"sap.ui.demo.wt",
"sap.ui.demo.mt"
}'>
</script>
</script>
<script>
sap.ui.getCore().attachInit(function () {
new sap.ui.core.ComponentContainer({
name: "sap.ui.demo.wt"
}).placeAt("content");
});
var oComp = sap.ui.getCore().createComponent({
name: "sap.ui.demo.wt",
id: "Comp2",
settings: {appTitle: "Hello World 2"}
});
var oCompCont = new sap.ui.core.ComponentContainer("CompCont2", {
component: oComp
});
oCompCont.placeAt("content");
</script>
The below code is from test 2.
data-sap-ui-resourceroots='{
"sap.ui.demo.mt": "./"
}'>
</script>
<script>
sap.ui.getCore().attachInit(function () {
new sap.ui.core.ComponentContainer({
name: "sap.ui.demo.mt"
}).placeAt("content");
});
</script>
I know that there is some problems within data-sap-ui-resourceroots
, because two applications can not recognize the path from the others. Thus, I let test 1 as a under folder in test 2. However, when I run test 1 which located under test2, the console showed only one time test 2. How can I solve it. Do I need to register the component first?