GetComboOptions

Description

This JSP function provides a standard function to XML bind combo boxes when modification rules do not need to be considered.

Syntax

String getComboOptions(String name)

String getComboOptions(String name, String value)

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 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.

JSP usage

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>