0
我正在設計一個具有2個XML和1個HTML視圖的SAP UI5應用程序。我想要從單擊按鈕導航到XML視圖的HTML視圖。我怎樣才能爲此設置路由。如何在sapui5中從XML視圖調用HTML視圖
下面的代碼是不工作:
routing: {
config: {
routerClass: "sap.m.routing.Router",
viewType: "XML",
viewPath: "executive.WebContent.view",
controlId: "app",
controlAggregation: "pages",
},
routes: [{
"pattern": "",
"name": "View1",
"viewPath": "executive.WebContent.view",
"viewType": "XML",
"target": "View1"
},
{
"pattern": "Login",
"name": "View2",
"viewPath": "executive.WebContent.view",
"viewType": "XML",
"target": "View2"
},
{
"pattern": "Visitor",
"name": "View3",
"viewPath": "executive.WebContent.view",
"viewType": "HTML",
"target": "View3"
}
],
targets: {
"View1": {
"viewName": "Main"
},
"View2": {
"viewName": "Login"
},
"View3": {
"viewName": "Visitor"
}
}
}
讓我知道,這個解決方案。
正好沒有工作是什麼,任何錯誤?你如何做導航?需要更多信息。 –