on 08-29-2018 8:02 PM
Dear Experts,
below is data from my entity called PassportVisaBankCitizenshipDetails
I want to update the last highlighted 4 properties values without updating the other values. below is my code on pressing save button on my xmlview.
however I am getting an xml parsing error , can some expert please check the code and advise if I am doing correctly. The 4 properties were binded on the xmlview using expression binding as shown below.
<m:RadioButtonGroup id="rbgTermType" editable="false">
<m:RadioButton text="YES" selected ="{= ${/Term_Type}==='X'}" />
<m:RadioButton text="No" selected = "{=${/Term_Type}===''}" /> <br></m:RadioButtonGroup>
Have you tried checking the network payload in your console to see what value is getting passed? Is it passing "X" or "", as required?
It looks to me like you are using the method getText() on the radio button and you are passing that value. But this will return "Yes" or "No" based on your snippet. This won't work because your OData property is expecting "X" or "" (empty string) and probably has a max length of 1. I'd also recommend switching that property to boolean as it will make data binding easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i think the problem could come from the <br> balise in your following code :
<m:RadioButtonGroup id="rbgTermType" editable="false">
<m:RadioButton text="YES" selected ="{= ${/Term_Type}==='X'}" />
<m:RadioButton text="No" selected = "{=${/Term_Type}===''}" /> <br></m:RadioButtonGroup>
try to remove it.
Regards,
Fabrice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.