Implemented: Add a example of lookup with the presentation type 'none' after the ofbiz-framework commit 1802682 :set auto completion only in lookup field (OFBIZ-9378)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1803539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicolas Malin
2017-07-31 13:58:17 +00:00
parent fb81beeae4
commit e6083592e1
2 changed files with 12 additions and 2 deletions
@@ -365,6 +365,11 @@ under the License.
<field name="geoName" title="${uiLabelMap.CommonGeoName}" tooltip="${uiLabelMap.ExampleLookupFields4}" tooltip-style="button-text">
<lookup target-form-name="LookupGeoName" description-field-name="geoId"/>
</field>
<!-- Looup with only the autocompletion -->
<!-- passes the name in one field and the id in another -->
<field name="geoNameAutoComplete" title="${uiLabelMap.CommonGeoName}" tooltip="${uiLabelMap.ExampleLookupFields5}" tooltip-style="button-text">
<lookup target-form-name="LookupGeoName" description-field-name="geoId" presentation="none"/>
</field>
<!-- This field may be hidden and the name rendered in geoName using default-value if geoId is known when loading the form-->
<field name="geoId" title="${uiLabelMap.CommonGeoId}"><text/></field><!-- the text field is only used for rendering. In the "real life" you would use the hidden field commented below to pass the data to the request -->
<!--field name="geoId"><hidden/></field-->
@@ -381,6 +386,7 @@ under the License.
</field-group>
<field-group>
<sort-field name="geoName"/>
<sort-field name="geoNameAutoComplete"/>
<sort-field name="geoId"/>
</field-group>
</sort-order>