Page 1 of 1

Map Checkbox "Selected" Property to REST Request Parameter

Posted: Tue Mar 20, 2012 3:50 pm
by Al Veitas

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


Map Checkbox "Selected" Property to REST Request Parameter

Posted: Tue Mar 20, 2012 6:37 pm
by maxkatz

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


Map Checkbox "Selected" Property to REST Request Parameter

Posted: Tue Mar 20, 2012 7:47 pm
by Al Veitas

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?


Map Checkbox "Selected" Property to REST Request Parameter

Posted: Tue Mar 20, 2012 10:41 pm
by maxkatz

Yes, I think so.


Map Checkbox "Selected" Property to REST Request Parameter

Posted: Sat Nov 10, 2012 3:03 pm
by RichardGolko

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.


Map Checkbox "Selected" Property to REST Request Parameter

Posted: Sat Nov 10, 2012 10:05 pm
by maxkatz

Check box has the values exposed in mapping:

Image