简体   繁体   English

如何链接到单独应用程序中的视图?

[英]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.

相关问题 如何将多条路线链接到同一UI视图 - How can I link multiple routes to the same ui view 我如何链接您的 google chrome 扩展程序和 c # 应用程序 - How i can to link your google chrome extension and c # application 如何在不创建新的单独文件的情况下在页面链接上添加密码保护? - How can I add password protection on a link to a page without creating a new separate file? 如何使用 Node.js 制作应用程序,它可以分隔所有具有相同扩展名的文件? - How can i make an application using Node.js, which can separate all the files with same extension? 如何在Chrome中查看带有不安全请求的Web应用程序? - How can I view a web application with insecure and secure requests in Chrome? 如何使用EmberJS在主应用程序模板中显示特定视图 - How can I display a specific view in the main application template with EmberJS ASP.Net MVC(1)-如何传递JSON以查看但不能作为单独的Ajax调用 - ASP.Net MVC (1) - how can I pass JSON to view but not as separate ajax call 如何在单独的 .js 文件上的 React 应用程序中共享变量? - How can I share variables across a react application on separate .js files? 当我用jQuery右键单击图像时,如何删除“查看此图像”链接? - How can I remove “View this image” link when I right click on a image with jQuery? 我可以使用节点在单独的服务器上为Web应用程序供电吗? - Can I use node to power a web application on a separate server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM