在SAPUI5中,能否将两个OMODEL合并到一个列表中
嗨,我试图显示一个从两个不同的OMODEL获取数据的列表在SAPUI5中,能否将两个OMODEL合并到一个列表中,sapui5,Sapui5,嗨,我试图显示一个从两个不同的OMODEL获取数据的列表 var Countries = { "countries":[ { 'country' : "AUS", 'country_name' : "Australia" }, { 'country' : "USA", 'country_name' : "United States of Amer
var Countries = {
"countries":[
{
'country' : "AUS",
'country_name' : "Australia"
},
{
'country' : "USA",
'country_name' : "United States of America"
},
]
};
var CountriesStatus = {
"countries":[
{
'country':"AUS",
'status':"inactive"
},
{
'country':"USA",
'status':"active"
}
]
};
是否可以加载单个列表,其中标题为
国家/地区>国家/地区名称
,描述为国家/地区状态
,据我所知,这是不可能的。仅接受一个模型。这意味着,如果要绑定聚合,必须将数据合并到单个模型中并绑定该模型。将两个模型数据合并到单个对象中并创建新模型。