YfsGetComboOptions
Description
This JSP function XML binds combo boxes when modification rules need to be considered.
Syntax
String yfsGetComboOptions(String name, String allowModBinding)
String yfsGetComboOptions(String name, String 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.
value - Required. Specifies what to display as the input text. 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
<select <% if (isVoid(modifyView)) {%> <%=getProtectedComboOptions()%> <%}%>
<%=yfsGetComboOptions("xml:/Order/@ScacAndServiceKey",
"xml:/Order/AllowedModifications")%>>
<yfc:loopOptions binding="xml:/ScacAndServiceList/@ScacAndService"
name="ScacAndServiceDesc" value="ScacAndServiceKey"
selected="xml:/Order/@ScacAndServiceKey"/>
</select>