Skip to Content
0
Dec 02, 2016 at 08:03 AM

Fiori/SAPUI5: setting value of checkbox through code (WEBIDE)

2909 Views Last edit Feb 22, 2017 at 01:06 PM 2 rev

Hi Experts,

I am implementing a similar behaviour to radio buttons using checkboxes (

sap.m.CheckBox

). I'm using checkboxes because the customer prefers it. Unfortunately I can't seem to find a way to set the checkbox value programmatically. I tried setting the attribute in a loop but it's probably a read only attribute - it didn't get taken into account.

Is it at all possible? a function setSelected is not available according to documentation here https://sapui5.netweaver.ondemand.com/#docs/api/symbols/sap.m.CheckBox.html

Thanks,

Ioan.