我无法读取未定义错误的属性" navTo"。 我的代码有什么问题!

2020-08-15 00:01发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我尝试了以下代码,但...

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

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


大家好,

我尝试了以下代码,但无法正常工作。

片段

AddProductHierarchySet.fragment.xml

<对话框标题="产品层次结构设置信息" contentHeight =" 70%" contentWidth =" 70%">

7条回答
小c菟菟
2020-08-15 00:38

您好Abhishek,

 {
     " _version":" 1.3.0",
     " sap.app":{
         " _version":" 1.3.0",
         " id":" com.prashil.test",
         " type":"应用程序",
         " resources":" resources.json",
         " i18n":" i18n/i18n.properties",
         " title":" {{appTitle}}",
         " description":" {{appDescription}}",
         " applicationVersion":{
             " version":" $ {project.version}"
         },
         " ach":" XX",
         "数据源": {
             " mainService":{
                 " uri":"/img/api/users",
                 " type":" OData",
                 "设置":{
                     " odataVersion":" 2.0"
                 }
             }
         },
         " sourceTemplate":{
             " id":"测试",
             " version":" 1.0.0"
         }
     },
     " sap.fiori":{
         " _version":" 1.1.0",
         " registrationIds":[],
         " archeType":"交易"
     },
     " sap.ui":{
         " _version":" 1.3.0",
         " technology":" UI5",
         "图标":{
             " icon":" sap-icon://detail-view",
             " favIcon":"",
             "电话": "",
             " phone @ 2":"",
             " tablet":"",
             " tablet @ 2":""
         },
         " deviceTypes":{
             "桌面":是的,
             "平板电脑":是的,
             "电话":正确
         },
         " supportedThemes":[
             " sap_hcb",
             " sap_bluecrystal"
         ]
     },
     " sap.ui5":{
         " _version":" 1.2.0",
         " rootView":{
             " viewName":" com.prashil.test.view.App",
             " type":" XML",
             " id":" app"
         },
         "依赖关系":{
             " minUI5Version":" $ {sap.ui5.dist.version}",
             " libs":{
                 " sap.ui.core":{
                     " minVersion":" 1.36.0"
                 },
                 " sap.m":{
                     " minVersion":" 1.36.0"
                 }
             }
         },
         " contentDensities":{
             "紧凑":是的,
             "舒适":是
         },
         "楷模": {
             " i18n":{
                 " type":" sap.ui.model.resource.ResourceModel",
                 "设置":{
                     " bundleName":" com.prashil.test.i18n.i18n"
                 }
             },
             "":{
                 " dataSource":" mainService",
                 "设置":{
                     " metadataUrlParams":{
                         " sap-documentation":"标题"
                     }
                 }
             }
         },
         "路由":{
             " config":{
                 " routerClass":" sap.m.routing.Router",
                 " viewType":" XML",
                 " viewPath":" com.prashil.test.view",
                 " controlId":" idAppControl",
                 " controlAggregation":"页面",
                 " clearControlAggregation":否,
                 "绕过":{
                     "目标":[
                         "主",
                         "未找到"
                     ]
                 },
                 "异步":true
             },
             "路线":[
                 {
                     " pattern":"",
                     " name":" Main",
                     "目标":[
                         "主要"
                     ]
                 },
                 {
                     " pattern":" newPage/type/:idType/value/:idValue",
                     " name":" newPage",
                     " target":"详细信息"
                 }
       ],
             "目标":{
                 "主要":{
                     " viewName":" Main",
                     " viewLevel":1
                     " viewId":"主人",
                     " controlAggregation":"页面"
                 },
                 "详细信息":{
                     " viewName":"详细信息",
                     " viewLevel":1
                     " viewId":"详细信息",
                     " controlAggregation":"页面"
                 },
                 "骚扰":{
                     " viewName":" SFlight",
                     " viewLevel":1
                     " viewId":"飞行",
                     " controlAggregation":"页面"
                 }
             }
         }
     }
 }


 

谢谢

芦笋

一周热门 更多>