Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to bindProperty to a checkbox

I am executing the following code:

new sap.ui.commons.form.FormElement({

                      label: new sap.ui.commons.Label({

                          text: oBundle.getText(

                              "UI_SERVICE_MODEL_ID"),

                          layoutData: new sap.ui.commons.form.GridElementData({

                              hCells: "5"

                          })

                      }),

                      fields: [new sap.ui.commons.CheckBox().bindProperty("checked", "/validation"),]

                  }),

but the property binding is not working. It is unchecked always.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question