Al Veitas
Posts: 0
Joined: Tue Mar 06, 2012 3:43 am

Map Checkbox "Selected" Property to REST Request Parameter

After clicking a button we would like to call a REST Service where the mapping would include mapping a checkbox's "selected" property to a REST request parameter.

In the "Data Mapping" Tab, a checkbox only exposes the "Visible" and "Text" properties for mapping purposes.

Any ideas? Any reason why "Selected" is not an option for mapping?

Al

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Map Checkbox "Selected" Property to REST Request Parameter

It's not implemented yet - we are working on enabling all attributes to be available in mapping.

Al Veitas
Posts: 0
Joined: Tue Mar 06, 2012 3:43 am

Map Checkbox "Selected" Property to REST Request Parameter

Thanks Max. In the interim, it looks like the checkbox maps to a and the only way to distinguish if the label is checked or not is by checking that the label class attribute includes either "ui-checkbox-off" or "ui-checkbox-on"? Is this a correct assumption?

RichardGolko
Posts: 0
Joined: Thu Oct 25, 2012 11:25 pm

Map Checkbox "Selected" Property to REST Request Parameter

Can you post javascript to show how to check the class name of the checkbox label? The checkbox useless if the selected property cannot be mapped. Thank you.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Map Checkbox "Selected" Property to REST Request Parameter

Check box has the values exposed in mapping:

Image

Return to “Issues”