on 08-02-2017 9:16 AM
Hi All,
I am having a table in for one coloumn i am using checkbox. From backend I am getting values as "X" and " ".
Now my problem is how do I bind the selected Value of checkbox . Whenever i am deselecting it returns false .
However each time i am deseleccting its not returning " " just returns false value.
I tried <CheckBox selected="{= (${bNotRelevant} === 'X' ? 'X':' ')}" />
Convert from false to " " using a formatter function. Else, invoke a function where simply map false to " " and true to "X".
You can call this function in the event "select" of the checkbox. So, on select, call the function where if checked make it "X" and if unchecked make it " ". Save it to the variable or json model.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.