on 08-20-2015 10:03 AM
Hello all,
I am fetching data from ODATA service and showing it frontend page.I have 1 checkbox in front page.In table 1 field contains value of that checkbox.
for selected checkbox it contains X value.
now m fetching this field value with the odata service.
var url = "proxy/sap/opu/odata/SAP/Z_HR_USR_CREATION_SRV";
var oModel = new sap.ui.model.odata.ODataModel(url,true);
var form = this.getView().byId("SimpleForm1");
form.setModel(oModel);
form.bindElement("/ZhrUserSet('"+usr+"')");
This is the code to fetch value in frontend.its contains value for checkbox as well.now depending on that value how to show checkbox selected or deselected.
please help
use expression binding-
selected="{= ${checkbox} === 'X' }"
Expression Binding - User Interface Add-On for SAP NetWeaver - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.