点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 基于主视图动态更改详...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 基于主视图动态更改详...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
大家好,
基于主视图动态更改详细信息视图
具有多个详细信息视图的单个Master
主视图(MAINVIEW)中的Button1/Button2/Button3
DETAILVIEW1 --->一些要显示的文本
DETAILVIEW2 --->一些要显示的文本
DETAILVIEW3 --->一些要显示的文本
"主视图"是固定的,但"细节"将根据在主菜单中按下的按钮进行更改。
Button2时
必须加载DETAILVIEW2
当Button3
必须加载DETAILVIEW3
当Button1
必须加载DETAILVIEW1
由于清单文件下方,默认情况下已加载DETAILVIEW1。 当我按下button2时,DETAILVIEW2没有加载。
我的清单文件
"路由":{"配置":{" routerClass":" sap.m.routing.Router",
" viewType":" XML",
" viewPath":" ZNS_TTR224ZPN_TRR224.view",
" controlId":" Maincontrol",
" controlAggregation":" detailPages",
"异步":true},
"路线":[{"模式":"","名称":"主","目标":["主"," detail1"]}}
{" pattern":""," name":" detail1"," target":[" detail1"," master"]},
{" pattern":""," name":" detail2"," target":[" detail2"," master"]}
],
"目标":{
" master":{" viewName":" MASTERVIEW"," viewLevel":0," controlAggregation":" masterPages"}," detail1":{" viewName":" DETAIL1VIEW"," viewLevel":1}
}
}
任何建议
master-and-detail.jpg
吴俊武
在主视图中
当我按下" Detail1"按钮时,应调用" Detail View 1"视图。
当我按下" Detail2"按钮时,应调用" Detail View 2"视图。
当我按下" Detail3"按钮时,应调用" Detail View 3"视图。
默认情况下,当我加载应用程序时,根据所附的屏幕截图,将加载主视图按钮和"详细信息视图1"。
当我按下"详细信息2"按钮时,不会进入"详细信息视图2"。
您能否建议我在上一篇文章中提到的代码中需要添加的模式。
清单文件
"路由":{"配置":{" routerClass":" sap.m.routing.Router",
" viewType":" XML",
" viewPath":" ZNS_TRR214ZPN_TRR224.view",
" controlId":" Maincontrol",
" controlAggregation":" detailPages",
"异步":true},
" routes":[{" pattern":""," name":" master"," target":[" master"," detail1"]}}
{"模式":"","名称":" detail1","目标":[" detail1","主"]},
{"模式":"","名称":" detail2","目标":[" detail2","主"]},
{" pattern":""," name":" detail3"," target":[" detail3"," master"]}],
" targets":{" master":{" viewName":" MASTERVIEW"," viewLevel":0," controlAggregation":" masterPages"},
" detail1":{" viewName":" DETAIL1VIEW"," viewLevel":1}
" detail2":{" viewName":" DETAILVIEW2"," viewLevel":1}
" detail3":{" viewName":" DETAILVIEW3"," viewLevel":1}}
在主视图中按button2时,我需要对清单文件进行哪些更改以调用detailview2。
一周热门 更多>