[英]How can I link to a view in a separate application?
I have a view containing some tiles. 我有一个包含一些瓷砖的视图。 I want to click one and have it take me to a separate application I have written.
我想单击一个,并将其带到我编写的另一个应用程序中。
Normally I would point it to my view folder to specify a view I wanted to change to. 通常,我会将其指向我的视图文件夹以指定要更改为的视图。 However trying something similar does not seem to work for a view that lives in a separate application folder.
但是,对于位于单独应用程序文件夹中的视图,尝试类似操作似乎无效。
I am also using routing in a component, how can I do this? 我也在组件中使用路由,该怎么做?
I can use 我可以用
window.location.href = 'http://...';
but is there a better way to do it that works alongside the router? 但是有没有更好的方法可以与路由器配合使用呢?
If you'd like to plug sub-apps into a main-app, it is probably best to take the component-style approach, similar to what the Fiori launchpad would do. 如果您想将子应用程序插入主应用程序,则最好采用类似于Fiori启动板的组件式方法。 In a typical Fiori setup, the launchpad is the main app and the app that you would like to navigate to is setup as a component.
在典型的Fiori设置中,启动板是主应用程序,而您要导航到的应用程序则设置为组件。
More information here: https://sapui5.hana.ondemand.com/sdk/#docs/guide/958ead51e2e94ab8bcdc90fb7e9d53d0.html 此处提供更多信息: https : //sapui5.hana.ondemand.com/sdk/#docs/guide/958ead51e2e94ab8bcdc90fb7e9d53d0.html
There's a separate chapter on routing in components here: https://sapui5.hana.ondemand.com/sdk/#docs/guide/acdb6cd408ec4b9eb5e1fe45e607abdd.html 这里有单独的一章介绍组件中的路由: https : //sapui5.hana.ondemand.com/sdk/#docs/guide/acdb6cd408ec4b9eb5e1fe45e607abdd.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.