Introduces an example of autocompleted dropdown use in Example. Still some work to do as the value returned contains also the Description, should contain only the Id.
TODO : return only the Id, else you need to edit the field to remove the description git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@999419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -229,9 +229,26 @@ under the License.
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ****************************** -->
|
||||
<!-- *** Autocomplete dropdown *** -->
|
||||
<!-- ****************************** -->
|
||||
<!-- most feature rich for autocomplete, ie partial text entry searches the full string,
|
||||
doesn't require custom request to function, etc; Note that for usability this is still a bit lame since you can't see the full list,
|
||||
you HAVE to know part of the ID or description in order to see options -->
|
||||
<field name="emptyField1" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
|
||||
<field name="geoId" title="${uiLabelMap.ExampleAutocompleteDropdown}"
|
||||
tooltip="${uiLabelMap.ExampleAutocompleteTooltip}">
|
||||
<drop-down>
|
||||
<auto-complete/>
|
||||
<entity-options entity-name="Geo" description="${geoId}: ${geoName}">
|
||||
<entity-constraint name="geoTypeId" value="GROUP"/>
|
||||
<entity-order-by field-name="geoName"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ****************************** -->
|
||||
<!-- *** Dependent dropdowns *** -->
|
||||
<!-- ****************************** -->
|
||||
<field name="emptyField" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
|
||||
<field name="emptyField2" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
|
||||
<field name="dependendDropDownFields" title="${uiLabelMap.ExampleDependentDropDowns}">
|
||||
<display description="${uiLabelMap.ExampleDependentDropDownTooltip}"/>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user