SmartFilterBar:无法读取未定义的属性" getODataEntitySet"

2020-09-06 14:33发布

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

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


大家好,

我正在研究Fiori Elements。 在这方面,我尝试将Smart filter +表​​格合并到我的项目中。

需要帮助解决此问题。

场景很简单。

1。 后端的ZTable

2。 具有字段注释的CDS视图。

3。 引用CDS的OData服务

4。 消耗OData的UI5应用。

运行时出现错误:

未捕获(承诺)TypeError:无法读取M.getParametersByEntitySetName(MetadataAnalyser.js:7)上未定义的属性" getODataEntitySet"

实际错误出在内部代码-MetadataAnalyser中,其中this._oMetaModel未定义:

M.prototype.getParametersByEntitySetName = function(e){var r,a,m,n,b,c,d,o,E,g,h; h = this._oMetaModel.getODataEntitySet(e);

我的清单文件,查看文件在下面:

 {
 " _version":" 1.12.0",
 " sap.app":{
 " id":" com .--------- .. simplifi.libraryapp.reqaccess.zSimplifi_AppRequest",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 "数据源":{
 " mainService":{
 " uri":"/img/sap/opu/odata/SAP/ZSAMPLECDS_SRV/",
 " type":" OData",
 "设置":{
 " odataVersion":" 2.0",
 "注释":[
 " ZSAMPLECDS_SRV_ANNO_MDL",
 " localAnnotations"
 ]
 }
 },
 " ZSAMPLECDS_SRV_ANNO_MDL":{
 " uri":"/img/sap/opu/odata/IWFND/CATALOGSERVICE; v = 2/Annotations(TechnicalName ='ZSAMPLECDS_ANNO_MDL',Version ='0001')/$ value",
 " type":" ODataAnnotation"
 },
 " localAnnotations":{
 " uri":" annotations/annotations.xml",
 " type":" ODataAnnotation",
 "设置":{
 " localUri":" annotations/annotations.xml"
 }
 }

 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" ui5template.basicSAPUI5ApplicationProject",
 "版本":" 1.40.12"
 }
 },


 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":"",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 }
 },


 " sap.ui5":{
 " flexEnabled":否,
 " rootView":{
 " viewName":" com.airbus.simplifi.libraryapp.reqaccess.zSimplifi_AppRequest.view.RequestHome",
 " type":" XML",
 "异步":是的,
 " id":" RequestHome"
 },
 "依赖关系":{
 " minUI5Version":" 1.60.1",
 " libs":{
 " sap.ui.layout":{},
 " sap.ui.core":{},
 " sap.m":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" com .--------。simplifi.libraryapp.reqaccess.zSimplifi_AppRequest.i18n.i18n"
 }
 },
 "":{
 " dataSource":" mainService",
 " preload":是
 }
 },
 "资源":{
 " css":[{
 " uri":" css/style.css"
 }]
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 "异步":是的,
 " viewPath":" com .------------ .. simplifi.libraryapp.reqaccess.zSimplifi_AppRequest.view",
 " controlAggregation":"页面",
 " controlId":" app",
 " clearControlAggregation":否,
 "绕过":{
 " target":" notFound"
 }
 },
 "路线":[{
 " name":" RouteRequestHome",
 " pattern":" RouteRequestHome",
 " target":[" TargetRequestHome"]
 },{
 " name":" RouteReqDetail",
 " pattern":" RouteReqDetail",
 "目标":[
 " TargetReqDetail"
 ]
 }],
 "目标":{
 " TargetRequestHome":{
 " viewType":" XML",
 " transition":" slide",
 " clearControlAggregation":否,
 " viewId":" RequestHome",
 " viewName":" RequestHome"
 },
 " TargetReqDetail":{
 " viewType":" XML",
 " viewName":" RequestDetail",
 " viewLevel":2
 " viewId":" RequestDetail"
 }
 }
 }
 }
 }

 查看文件:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

  

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

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


大家好,

我正在研究Fiori Elements。 在这方面,我尝试将Smart filter +表​​格合并到我的项目中。

需要帮助解决此问题。

场景很简单。

1。 后端的ZTable

2。 具有字段注释的CDS视图。

3。 引用CDS的OData服务

4。 消耗OData的UI5应用。

运行时出现错误:

未捕获(承诺)TypeError:无法读取M.getParametersByEntitySetName(MetadataAnalyser.js:7)上未定义的属性" getODataEntitySet"

实际错误出在内部代码-MetadataAnalyser中,其中this._oMetaModel未定义:

M.prototype.getParametersByEntitySetName = function(e){var r,a,m,n,b,c,d,o,E,g,h; h = this._oMetaModel.getODataEntitySet(e);

我的清单文件,查看文件在下面:

 {
 " _version":" 1.12.0",
 " sap.app":{
 " id":" com .--------- .. simplifi.libraryapp.reqaccess.zSimplifi_AppRequest",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 "数据源":{
 " mainService":{
 " uri":"/img/sap/opu/odata/SAP/ZSAMPLECDS_SRV/",
 " type":" OData",
 "设置":{
 " odataVersion":" 2.0",
 "注释":[
 " ZSAMPLECDS_SRV_ANNO_MDL",
 " localAnnotations"
 ]
 }
 },
 " ZSAMPLECDS_SRV_ANNO_MDL":{
 " uri":"/img/sap/opu/odata/IWFND/CATALOGSERVICE; v = 2/Annotations(TechnicalName ='ZSAMPLECDS_ANNO_MDL',Version ='0001')/$ value",
 " type":" ODataAnnotation"
 },
 " localAnnotations":{
 " uri":" annotations/annotations.xml",
 " type":" ODataAnnotation",
 "设置":{
 " localUri":" annotations/annotations.xml"
 }
 }

 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" ui5template.basicSAPUI5ApplicationProject",
 "版本":" 1.40.12"
 }
 },


 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":"",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 }
 },


 " sap.ui5":{
 " flexEnabled":否,
 " rootView":{
 " viewName":" com.airbus.simplifi.libraryapp.reqaccess.zSimplifi_AppRequest.view.RequestHome",
 " type":" XML",
 "异步":是的,
 " id":" RequestHome"
 },
 "依赖关系":{
 " minUI5Version":" 1.60.1",
 " libs":{
 " sap.ui.layout":{},
 " sap.ui.core":{},
 " sap.m":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" com .--------。simplifi.libraryapp.reqaccess.zSimplifi_AppRequest.i18n.i18n"
 }
 },
 "":{
 " dataSource":" mainService",
 " preload":是
 }
 },
 "资源":{
 " css":[{
 " uri":" css/style.css"
 }]
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 "异步":是的,
 " viewPath":" com .------------ .. simplifi.libraryapp.reqaccess.zSimplifi_AppRequest.view",
 " controlAggregation":"页面",
 " controlId":" app",
 " clearControlAggregation":否,
 "绕过":{
 " target":" notFound"
 }
 },
 "路线":[{
 " name":" RouteRequestHome",
 " pattern":" RouteRequestHome",
 " target":[" TargetRequestHome"]
 },{
 " name":" RouteReqDetail",
 " pattern":" RouteReqDetail",
 "目标":[
 " TargetReqDetail"
 ]
 }],
 "目标":{
 " TargetRequestHome":{
 " viewType":" XML",
 " transition":" slide",
 " clearControlAggregation":否,
 " viewId":" RequestHome",
 " viewName":" RequestHome"
 },
 " TargetReqDetail":{
 " viewType":" XML",
 " viewName":" RequestDetail",
 " viewLevel":2
 " viewId":" RequestDetail"
 }
 }
 }
 }
 }

 查看文件:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

  
付费偷看设置
发送
5条回答
95年老男孩
1楼-- · 2020-09-06 15:02
我想
 entitySet ="/img/ZTESTCDS"不需要。
暮风yp
2楼-- · 2020-09-06 15:04

能否请您附加元数据和注释文件?

注释文件似乎有问题。

樱桃小丸子0093
3楼-- · 2020-09-06 15:22
 <?xml版本=" 1.0"编码=" utf-8"?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 <收藏>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
悠然的二货
4楼-- · 2020-09-06 15:05
 ZTESTCDS是您的实体集名称吗?
SKY徐
5楼-- · 2020-09-06 15:26

您需要在其中放置实体集名称,而不是实体名称

一周热门 更多>