cancel
Showing results for 
Search instead for 
Did you mean: 

Common controller extension functions in multiple UI5 apps

a_oezsoy
Explorer

Hi,

I currently have a CAP project that includes multiple UI5 apps. The structure is similar to the following:

/
|--app/
   |--app1/ // application 1
      |--webapp/
         |--ext/controller/
            |--app1viewX.controller.js
   |--app2/ // application 2
      |--webapp/
         |--ext/controller/
            |--app2viewX.controller.js
|--db/...
|--srv/...
|...

These 2 controller extension files contain the exact same function. My goal is to extract this function to a common file, where both applications' controller extensions can call it.

Is there a way to do this?

Important to note that the build process packages these 2 applications independent from each other (one HTML5 app created from app/app1, another one from app/app2).

Thanks

Best regards,

Atakan

Accepted Solutions (0)

Answers (0)