Skip to Content
author's profile photo Former Member
Former Member

Tick checkbox dynamically

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");



This is the code to fetch value in frontend.its contains value for checkbox as depending on that value how to show checkbox selected or deselected.

please help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 20, 2015 at 09:14 AM

    use expression binding-

    selected="{= ${checkbox} === 'X' }"

    Expression Binding - User Interface Add-On for SAP NetWeaver - SAP Library

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.