YfsGetCheckBoxOptions

Description

This JSP function XML binds checkboxes when modification rules need to be considered.

Syntax

String yfsGetCheckBoxOptions(String name,String a_checked, String a_value, String allowModBinding)

Input parameters

name - Required. Path in the target XML to which the value in the input text is sent when the form is posted. Through the Service Definition Framework, the target XML is then passed to the appropriate API.

checked - Required. When the value of the value attribute is equal to this value, the checked attribute is set to true.

value - Required. Value of the value attribute for the checkbox input. Can be a binding or a literal.

allowModBinding - Required. Binding string that points to a set of elements containing modification types that are permitted for the current status.

JSP usage

<input class="checkbox" type="checkbox"
<%=yfsGetCheckBoxOptions("xml:/Order/@ChargeActualFreightFlag",
"xml:/Order/@ChargeActualFreightFlag","Y","xml:/Order/AllowedModifications")
%>/>