SAP Cloud Platform WEBIDE路由NAV不起作用

2020-08-20 10:31发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) { _version: 1...

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

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


 {
 " _version":" 1.12.0",
 " sap.app":{
 " id":" AMEDPW.COM.AME_DPWA",
 " type":"应用程序",
 " i18n":" i18n/i18n.properties",
 " applicationVersion":{
 " version":" 1.0.0"
 },
 " title":" {{appTitle}}",
 " description":" {{appDescription}}",
 " sourceTemplate":{
 " id":" servicecatalog.connectivityComponentForManifest",
 " version":" 0.0.0"
 },
 "数据源": {
 " ZGW_DPW_SRV":{
 " uri":"/img/sap/opu/odata/sap/ZGW_DPW_SRV/",
 " type":" OData",
 "设置":{
 " localUri":" localService/metadata.xml"
 }
 }
 }
 },
 " sap.ui":{
 " technology":" UI5",
 "图标":{
 " icon":"",
 " favIcon":"",
 "电话": "",
 " phone @ 2":"",
 " tablet":"",
 " tablet @ 2":""
 },
 " deviceTypes":{
 "桌面":是的,
 "平板电脑":是的,
 "电话":正确
 }
 },
 " sap.ui5":{
 " flexEnabled":否,
 " rootView":{
 " viewName":" AMEDPW.COM.AME_DPWA.view.V_Detail",
 " type":" XML",
 "ID": ""
 },
 "依赖关系":{
 " minUI5Version":" 1.65.6",
 " libs":{
 " sap.ui.layout":{},
 " sap.ui.core":{},
 " sap.m":{}
 }
 },
 " contentDensities":{
 "紧凑":是的,
 "舒适":是
 },
 "楷模": {
 " i18n":{
 " type":" sap.ui.model.resource.ResourceModel",
 "设置":{
 " bundleName":" AMEDPW.COM.AME_DPWA.i18n.i18n"
 }
 },
 "":{
 " type":" sap.ui.model.odata.v2.ODataModel",
 "设置":{
 " defaultOperationMode":"服务器",
 " defaultBindingMode":" TwoWay",
 " defaultCountMode":"请求"
 },
 " dataSource":" ZGW_DPW_SRV",
 " preload":是
 }
 },
 "资源":{
 " css":[{
 " uri":" css/style.css"
 }]
 },
 "路由":{
 " config":{
 " routerClass":" sap.m.routing.Router",
 " viewType":" XML",
 "异步":是的,
 " viewPath":" AME_DPWA.view",
 " controlAggregation":"页面",
 " controlId":" V_Detail",
 " clearControlAggregation":否,
 " viewLevel":1
 "绕过":{
 "目标":[]
 },
 " transition":"显示"
 },
 "路线":[{
 "名称": "",
 " pattern":"",
 " target":[" TargetV_Detail"]
 },{
 " name":" Route_Approval",
 " pattern":" DPWHeaderSet {SelectedItem}",
 " titleTarget":"",
 " greedy":错误,
 "目标":[" Tareget_Approval"]
 },{
 " name":" V_Approval",
 " pattern":"",
 "目标":[" Tareget_Approval"]
 }],
 "目标":{
 " TargetV_Detail":{
 " viewType":" XML",
 " transition":"显示",
 " clearControlAggregation":否,
 " viewId":" C_Detail",
 " viewName":" V_Detail",
 " viewLevel":1
 " controlId":""
 },
 " Tareget_Approval":{
 " viewType":" XML",
 " transition":"显示",
 " clearControlAggregation":否,
 " viewName":" V_Approval",
 " viewLevel":1
 " viewId":" C_Approval"
 }
 }
 }
 },
 " sap.platform.hcp":{
 " uri":" webapp",
 " _version":" 1.1.0"
 }
 }



 onApprove:功能(oEvt){
//此代码是由布局编辑器生成的。
//alert("导航至" + oEvent.getSource()。getBindingContext()的详细信息);
///获取单击项的属性。 即被点击的商品的采购单号
//var selectDpw = oEvent.getSource()。getBindingContext()。getProperty(" Dpwnumber");
 var that = this;
 var DPWNUMBER = this.getView()。byId(" inDPWNUMBER")。getValue();
 var selectDpw ="(Mandt ='001',Dpwnumber ='" + DPWNUMBER +"')";
//现在获取路由器信息
 var oRouter = sap.ui.core.UIComponent.getRouterFor(that);
//告诉路由器导航到链接到V_PODetail视图的Route_PODetail
//var viewId = this.getView()。sId;
//sap.ui.getCore().byId(viewId).setVisible(false);
//oRouter.navTo("Route_Approval",{});
//sap.ui.getCore().byId("container-AME_DPWA---V_Approval").setVisible(true);
 oRouter.navTo(" Route_Approval",{
 SelectedItem:selectDpw
 });
 alert("导航到详细信息" + selectDpw);
 },