点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
我是UI5的新手。 我的要求是从全屏导航到一个分屏。完成从第一个全页到下一个分页的路由。 但是拆分页面的内容不可见。 第二页的屏幕截图:
FileUpload(第一视图):
<页面> <内容> <按钮text ="下一页" press =" onclick"/>
第一视图控制器:
sap.ui.define([ " sap/ui/core/mvc/Controller"," sap/ui/model/json/JSONModel" ],函数(Controller,JSONModel){ "使用严格"; return Controller.extend(" Simple.FileUpload.controller.FileUpload",{ onInit:函数(){ }, oclick:function(){ var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo(" RouteView2"); } }); });
Masterdetail veiw代码(根视图):
omasterpage视图:
<页面标题=" MasterPage" showNavButton =" true" navButtonPress =" onBack"> <内容>
odepagepage视图:
<页面标题=" DetailPage" showNavButton =" true" navButtonPress =" onBack"> <内容>
Manifest.json:
"路由":{ " config":{ " routerClass":" sap.m.routing.Router", " viewType":" XML", "异步":是的, " viewPath":" Simple.FileUpload.view", " targetContorl":" app", " clearControlAggregation":false }, "路线":[ { " name":" RouteView1", " pattern":" RouteView1", " viewName":" FileUpload", " controlId":" app", " targetAggregation":"页面" }, { " name":" RouteView2", " pattern":" RouteView2", " viewName":" Masterdetail", " targetControl":" app", " targetAggregation":"页面", "子路线":[{ " pattern":" RouteView2", " name":" omasterpage", " viewName":" omasterpage", " targetContorl":" SplitApp", " targetAggregation":" masterPages", "子路线":[{ " pattern":" RouteView2", " name":" odetailpage", " viewName":" odetailpage", " targetAggregation":" detailPages" }] }] } ] }
(21.2 kB)
请参阅此内容,可能会对您有所帮助
http://www.sapui5tutors.com/p/ full-screen-to-split-screen.html
一周热门 更多>