This JSP function provides a standard function to XML bind combo boxes when modification rules do not need to be considered.
String getComboOptions(String name)
String getComboOptions(String name, String value)
name - Required. Path in the target XML to which the value in the input text is sent when the form is posted. Through the Presentation Framework, the target XML is then passed to the appropriate API.
value - Required. Specifies the value to be selected in the combobox. Can be a binding or a literal.
This example shows how to render the enterprise code combobox in the Order Entry screen. The API is used in conjunction with the loopOptions JSP tag.
<select class="combobox" onChange="updateCurrentView()"
<%=getComboOptions("xml:/Order/@EnterpriseCode",enterpriseCode)%>>
<yfc:loopOptions binding="xml:/OrganizationList/@Organization"
name="OrganizationCode" value="OrganizationCode"
selected="xml:/Order/@EnterpriseCode"/>
</select>