如何从 Fiori 概览页面 (OVP) 导航? [英] How to navigate from Fiori Overview Page (OVP)?

查看:50
本文介绍了如何从 Fiori 概览页面 (OVP) 导航?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在带有导航的概览页面卡片上制作 POC.我遵循了一些使用 Northwind OData 服务设置卡片和注释的教程.

Trying to make a POC on Overview Page Cards with navigation. I have followed a few tutorials in setting up the cards and annotations using the Northwind OData service.

我想通过点击卡片导航到另一个应用.文档 说这是使用基于意图的导航完成的.我试图导航到的这个应用程序在 Fiori Launchpad 中注册,语义对象为Northwind",动作为Display"

I want to navigate to another app by clicking on the cards. The docs say this is done using intent-based navigation. This app I am trying to navigate to is registered in Fiori Launchpad with semantic object of "Northwind" and action as "Display"

我在 manifest.json 中设置了员工卡,它可以很好地显示记录.

I have the Employees card setup in the manifest.json and it displays the records fine.

但是,当我在annotationPathidentificationAnnotationPath中添加导航参数时,数据不显示,导航不起作用.

However, when I add the navigation parameters in the annotationPath and identificationAnnotationPath, the data is not displayed and the navigation doesn't work.

Manifest.json 卡片片段

Manifest.json card snippet

            "card00": {
                "model": "NorthwindModel",
                "template": "sap.ovp.cards.table",
                "settings": {
                    "title": "{{card00_title}}",
                    "category": "{{card00_category}}",
                    "subTitle": "{{card00_subTitle}}",
                    "entitySet": "Employees",
                    "annotationPath": "com.sap.vocabularies.UI.v1.LineItem#Northwind-Display",
                    "identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#Northwind-Display"
                }
            }

我也试过省略操作,但得到了相同的结果.

I've also tried leaving out the action, but I get the same results.

我做错了什么?从概览页面卡片导航到应用的正确方法是什么?我找不到有关此主题的任何资源.

What am I doing wrong and what is the proper way to navigate to apps from Overview Page Cards? I'm unable to find any resources on this topic.

推荐答案

 <Record Type="com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation">
        <PropertyValue Property="SemanticObject" String="Action"/>
        <PropertyValue Property="Action" String="display"/>
        <PropertyValue Property="Label" String="northwinddemo"/>
        <Annotation Term="com.sap.vocabularies.UI.v1.Importance" EnumMember="com.sap.vocabularies.UI.v1.ImportanceType/Medium"/>
    </Record>

试试这个.也许它应该有效.

try this. maybe it should work.

这篇关于如何从 Fiori 概览页面 (OVP) 导航?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆