Skip to Content
0

Component reusability

Jun 23, 2017 at 01:05 PM

45

avatar image
Former Member

Hi,

i have a custom UI5 application with index.html ( for example 'Parentapplication'). now i have to call another UI5 application which does not have index.html ( for example 'childapplication') from parent application based on triggering of an event ( for example button click in parent application ) .please let me know how to call child application using

component container concept .

iam calling the child app from parent app as below.

Component.js of the child app is under the folder 'Mycomponent'

jQuery.sap.registerModulePath("Mycomponent", "/Mycomponent")

var oComp = sap.ui.getCore().createComponent( {

name : "Mycomponent",

id : "Comp",

url : "Mycomponent",

componentData : { "targetViewName" : "Mycomponent.view.items" }

Regards,
Sarath

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers