cancel
Showing results for 
Search instead for 
Did you mean: 

Open two local application through Component.js

06-12-2017 12:41 PM
885 views 4 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,


I'm developing a type of Launchpad do Fiori but using another data.

Do you know if it's possible have two local applications where one calls another through Component.js ?

Like this image :

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

I already have the solution.
Thanks 🙂

Former Member
0 Likes
                        var oShell = sap.ui.getCore().byId("Shell");
                        var oComponenteContainer = new sap.ui.core.ComponentContainer({
                            async: true,
                            name: name,
                            url: url
                        })
                        oShell.setApp(oComponenteContainer);

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Likes
Former Member
0 Likes

Hello Jun,

Thanks for your time,

What is the ID and the target Name ?

My files are as follows 23.png

I putted the code in the following way, but doesn't work:

var oComp = sap.ui.getCore().createComponent( {
	name : "testeui.Component", // Nome of the new app
	id : "Comp3",
	url : "http://localhost/testeui/WebContent/Component.js", //location of new app
	componentData : {
		"targetViewName" : "view"  //First view to open in new app
	}
}); var oCompCont = new sap.ui.core.ComponentContainer("CompCont3", { component : oComp });