SAPUI5 - reuse fragments across multiple applications

I was wondering if/how I can reuse a fragment definition created in application 1 within application 2?

Background: I have 4 application (due to technical reasons there need to be 4 standalone fiori applications) displaying similar data.

My approach would have been to create fragments and reuse them across all 4 applications.

But how can I load fragments from another application?

Most stuff I've found either is limited to relative paths or JavaScript modules....

1 answer

  • answered 2017-12-13 13:54 Pete

    After diggig a little further, I noticed that I can register the desired module path using

    jQuery.sap.registerModulePath("name.space", "/sap/bc/ui5_ui5/sap/bsp_name");
    

    Afterwards name.space is available in XML view and can be used to load the fragments. i18n is not loaded though but this I can handle.