Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.Checkbox binding to a string which is Boolean

former_member696306
Discoverer
0 Kudos

Hey everyone. I tried to bind a checkBox to an OData field, its type is Edm.Boolean. I can done the binding but it behaves like one-way binding, the chekbox shows the right statement when I ask for the value, but when I change the checkbox from checked to unchecked or vica verse, and save it, it will not update the value of the field.

xml view:

<CheckBox id="Seen" selected="{= ${Seen} === 'true'}" text="Seen" enabled="true" />

However, if I change the value in an input box next to the checkbox it takes effect on the checkbox, but the checkbox can not take effect on the input field...

Input xml:

<Input value="{Seen}" valueLiveUpdate="true" />

Am I missing something? Thank for any help in advance!

  • SAP Managed Tags:
0 REPLIES 0