例如要传para1, para2, para3
这里写代码片
var oModel = new sap.ui.model.odata.ODataModel(uri,
true,
user,
password,
headers)
// Create a simple list
var oTemplate1 =
new sap.m.ColumnListItem({
cells : [ new sap.m.Text({
text : "{MSG}"
}),
new sap.m.Text({
text : "{ZCOUNTER}"
})
]
})
oTable.setModel(oModel)
// Bind the items and template
oTable.bindAggregation("items", {
path: "/CertificateSet",
parameters: { expand: "XXXXSSet" ,
custom:
{ para1: "20130101",
para2: "20120101" ,
par3: "4"
}
},
template: oTemplate1
})
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
如果 oData请求$expand=XXXXSSet,里面只有一条数据