GetComboText

You can review the details about the GetComboText JSP function.

Description

This JSP function provides a standard function to get description from a list of values.

Syntax

String getComboText(String binding, String name, String value, String selected)

String getComboText(String binding, String name, String value, String selected,boolean localized)

Input parameters

binding - Required. Binding string that points to the repeating element in the API output. The repeating element must be one fixed with the at character ("@").

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.

selected - Optional. Binding string that must be evaluated and set as the default selected value. This is matched with the value attribute, not the description attribute. Defaults to blanks, for example, space (" ").

localized - Optional. If passed as true, it fetches the localized description to be displayed.

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.

   <%=getComboText("xml:TaxNameList:/CommonCodeList/@CommonCode",
"CodeShortDescription","CodeValue","xml:/HeaderTax/@TaxName",true)%>