Skip to Content
0
Former Member
May 20, 2014 at 03:30 PM

data binding in check box in xml view

677 Views

Hello All,

is it possible to do data binding in check box in xml view

example :

<CheckBox id="checkID" checked="true" function ({modal>DEL_FL/0/text}) {

if ({modal>DEL_FL/0/text} == 1) {

return true;

} else if (modal>DEL_FL/0/text == 0) {

return false;

} } />

but this throws error

my JSON model returns the flag value as 0 and 1

i want to bind it to check box for this i want to check if returned value is 0 return false else true

Appreciate your suggestions

Best Regards,

Namita