简体   繁体   中英

SAPUI5 - Open new app through component.js

I'm developing a type of Launchpad do Fiori but using data from Sage X3. Do you know if it's possible have 2 local aplications where one calls another through Component.js ?

Can you help me with this ?

Best Regards

Please check out the following SO question Fiori - Cross Application Navigation and this SCN blog Cross Application Navigation between SAPUI5 applications .

In a nutshell, you must run the app(s) inside either the "real" Fiori Launchpad or you must run both of them in the local Fiori sandbox (if you are using WebIDE). Then you can navigate from one to another using the CrossApplicationNavigation service to go from one to another using the semantic objects of the apps. Something along the lines:

// You should also check if the sap.ushell.Container exists before this
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
    target: { 
        semanticObject: "Your target object", 
        action: "The action for the object" 
    }, 
}); 

To get your WebIDE test environment, you should look at this documentation: Testing Multiple SAP Fiori Applications .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM