在创建模式下看不到Fiori Elements对象页面中的关联

2020-09-09 08:59发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好, 我通过使用CDS视图中...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


你好,

我通过使用CDS视图中的UI注释和Fiori Elements的"列表报告应用程序"模板为CRM活动创建了一个应用程序。 在活动的主要CDS视图中,我与其他三个CDS视图具有关联[0 .. *],其中包含与活动相关的伙伴关系(同事,联系人和负责雇员)。 在"查看"模式和"编辑"模式下,对象页面的所有功能都可以正常工作。 这三个关联在应用程序的UI中显示为参考构面。 请参见下图:

但是,在"创建"模式下,不显示关联的三个方面。 请参见下图:

如何在创建模式下也可以使用关联的三个方面?

问候

Johan

(23.2 kB)
4条回答
SAP小菜
2020-09-09 09:48

是的,在三个关联CDS中,我具有以下注释:

 @ObjectModel:{
     createEnabled:是的,
     updateEnabled:是,
     deleteEnabled:是,
     语义关键字:['activity_partner_colleague']
 }
 

manifest.json看起来像这样:

 {
 " _version":" 1.8.0",
 " sap.app":{
 " id":" fioriactivity",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 "标签":{
 "关键字":[]
 },
 "数据源": {
 " mainService":{
 " uri":"/img/sap/opu/odata/sap/Z_ACTIVITY_SRV/",
 " type":" OData",
 "设置":{
 "注释":[
 " Z_ACTIVITY_ANNO_MDL",
 " localAnnotations"
 ],
 " localUri":" localService/metadata.xml"
 }
 },
 " Z_ACTIVITY_ANNO_MDL":{
 " uri":"/img/sap/opu/odata/IWFND/CATALOGSERVICE; v = 2/Annotations(TechnicalName ='Z_ACTIVITY_ANNO_MDL',Version ='0001')/$ value/",
 " type":" ODataAnnotation",
 "设置":{
 " localUri":" localService/Z_ACTIVITY_ANNO_MDL.xml"
 }
 },
 " localAnnotations":{
 " uri":" annotations/annotations.xml",
 " type":" ODataAnnotation",
 "设置":{
 " localUri":" annotations/annotations.xml"
 }
 },
 " GROUP_COMPANY_SEARCH":{
 " uri":"/img/sap/opu/odata/sap/Z_FORETAG_HIERARKI_SRV/",
 " type":" OData",
 "设置":{
 " odataVersion":" 2.0"
 }
 }
 },
 "离线":false,
 " sourceTemplate":{
 " id":" ui5template.smartTemplate",
 "版本":" 1.40.12"
 }
 },
 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":"",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 },
 " supportedThemes":[
 " sap_hcb",
 " sap_belize"
 ]
 },
 " sap.ui5":{
 "资源":{
 " js":[],
 " css":[]
 },
 "依赖关系":{
 " minUI5Version":" 1.38.34",
 " libs":{},
 "组件": {}
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/i18n.properties"
 },
 " @ i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/i18n.properties"
 },
 " i18n | sap.suite.ui.generic.template.ListReport | ZCDS_ACTIVITY":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/ListReport/ZCDS_ACTIVITY/i18n.properties"
 },
 " i18n | sap.suite.ui.generic.template.ObjectPage | ZCDS_ACTIVITY":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/ObjectPage/ZCDS_ACTIVITY/i18n.properties"
 },
 " i18n | sap.suite.ui.generic.template.ObjectPage | ZCDS_ACTIVITY_PARTN_COLLEAGUE":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/ObjectPage/ZCDS_ACTIVITY_PARTN_COLLEAGUE/i18n.properties"
 },
 " i18n | sap.suite.ui.generic.template.ObjectPage | ZCDS_ACTIVITY_PARTN_CONTACT":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/ObjectPage/ZCDS_ACTIVITY_PARTN_CONTACT/i18n.properties"
 },
 " i18n | sap.suite.ui.generic.template.ObjectPage | ZCDS_ACTIVITY_PARTN_EMP_RESP":{
 " type":" sap.ui.model.resource.ResourceModel",
 " uri":" i18n/ObjectPage/ZCDS_ACTIVITY_PARTN_EMP_RESP/i18n.properties"
 },
 " group_company_search":{
 " dataSource":" GROUP_COMPANY_SEARCH",
 " type":" sap.ui.model.odata.v2.ODataModel"
 },
 "":{
 " dataSource":" mainService",
 " preload":是的,
 "设置":{
 " defaultBindingMode":" TwoWay",
 " defaultCountMode":"内联",
 " refreshAfterChange":false
 }
 }
 },
 "扩展":{
 "扩展名":{
 " sap.ui.controllerExtensions":{
 " sap.suite.ui.generic.template.ObjectPage.view.Details":{
 " controllerName":" fioriactivity.ext.controller.ObjectPageExtension",
 " sap.ui.generic.app":{
 " ZCDS_ACTIVITY":{
 " EntitySet":" ZCDS_ACTIVITY"
 }
 }
 }
 }
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 }
 },
 " sap.ui.generic.app":{
 " _version":" 1.3.0",
 "设置":{
 " forceGlobalRefresh":否,
 " objectPageDynamicHeaderTitleWithVM":正确
 },
 "页面":{
 " ListReport | ZCDS_ACTIVITY":{
 " entitySet":" ZCDS_ACTIVITY",
 "零件": {
 " name":" sap.suite.ui.generic.template.ListReport",
 "列表":是的,
 "设置":{
 " smartVariantManagement":是
 }
 },
 "页面":{
 " ObjectPage | ZCDS_ACTIVITY":{
 " entitySet":" ZCDS_ACTIVITY",
 "零件": {
 "名称":" sap.suite.ui.generic.template.ObjectPage"
 },
 "页面":{
 " ObjectPage | to_activity_partner_colleague":{
 " navigationProperty":" to_activity_partner_colleague",
 " entitySet":" ZCDS_ACTIVITY_PARTN_COLLEAGUE",
 "零件": {
 "名称":" sap.suite.ui.generic.template.ObjectPage"
 }
 },
 " ObjectPage | to_activity_partner_contact":{
 " navigationProperty":" to_activity_partner_contact",
 " entitySet":" ZCDS_ACTIVITY_PARTN_CONTACT",
 "零件": {
 "名称":" sap.suite.ui.generic.template.ObjectPage"
 }
 },
 " ObjectPage | to_activity_partner_emp_resp":{
 " navigationProperty":" to_activity_partner_emp_resp",
 " entitySet":" ZCDS_ACTIVITY_PARTN_EMP_RESP",
 "零件": {
 "名称":" sap.suite.ui.generic.template.ObjectPage"
 }
 }
 }
 }
 }
 }
 }
 },
 " sap.platform.hcp":{
 " uri":""
 },
 " sap.platform.abap":{
 " uri":"/img/sap/bc/ui5_ui5/sap/zfioriactivity/webapp",
 " _version":" 1.1.0"
 }
 }
 

一周热门 更多>