cancel
Showing results for 
Search instead for 
Did you mean: 

Create reusable View & Controller in a different project

0 Kudos

Hello folks,

I am pretty sure this might have been implemented.

However, after searching for a bit I couldnt find a good example of Reusable component & Views for UI5.

A good app on UI5 explored is : SAPUI5 Explored

where the sap.m.table component is reused.

Wanted to check if there are good illustrations available to see the component/view reuse across different SAPUI5 projects.

Thanks,

Brian

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

>>good illustrations available to see the component/view reuse across different SAPUI5 projects.

the only difference between across vs. non across is this line

jQuery.sap.registerResourcePath

which tells you from which URL to laod that particular package content, no matter is it view, fragment, component, controller or custom control

0 Kudos

Thanks Maksim,

Was able to invoke a Utility.js file from a different project.

However, when trying to call a view/controller

For eg. Main.controller.js  it replaces .controller with Main/controller and can never find the resource.

former_member182372
Active Contributor
0 Kudos

post the code

Answers (0)