Author: deepak
Date: Sat Feb 24 10:42:46 2018
New Revision: 1825208
URL: http://svn.apache.org/viewvc?rev=1825208&view=rev
Log:
Improved: Added examples for call_fieldlookup3 i.e. Popup lookup field with
description and Layered lookup field with autocompletion, description at right
and optional target. (OFBIZ-10012)
Thanks Aditya Sharma for your contribution
Modified:
ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml
ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml
Modified: ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml?rev=1825208&r1=1825207&r2=1825208&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml Sat Feb 24
10:42:46 2018
@@ -700,6 +700,12 @@
<value xml:lang="en">Lookup Field of presentation type none. We call
only the autocomplete</value>
<value xml:lang="fr">Champs de recherche de type de présentation
aucun, qui utilise seulement l'autocompletion</value>
</property>
+ <property key="ExampleLookupFields6">
+ <value xml:lang="en">Popup lookup field with description (old way,
maybe be useful in some cases, notably if javascript is not enabled)</value>
+ </property>
+ <property key="ExampleLookupFields7">
+ <value xml:lang="en">Layered lookup field with autocompletion,
description at right and optional target</value>
+ </property>
<property key="ExampleLookupFieldsTitle">
<value xml:lang="en">Lookup Fields</value>
<value xml:lang="fr">Champs de recherche</value>
Modified:
ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml?rev=1825208&r1=1825207&r2=1825208&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml
(original)
+++ ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml
Sat Feb 24 10:42:46 2018
@@ -352,10 +352,22 @@ under the License.
<field name="geoIdAlone" title="${uiLabelMap.CommonGeoId}"
tooltip="${uiLabelMap.ExampleLookupFields1}" tooltip-style="button-text">
<lookup target-form-name="LookupGeo" presentation="window"/>
</field>
+ <!-- Old style lookup with description field (in a popup window
without autocompletion)-->
+ <field name="geoIdAloneDesc" title="${uiLabelMap.CommonGeoId}">
+ <text/>
+ </field>
+ <field name="geoNameAloneDesc" title="${uiLabelMap.CommonGeoName}"
tooltip="${uiLabelMap.ExampleLookupFields6}" tooltip-style="button-text">
+ <lookup target-form-name="LookupGeo" presentation="window"
description-field-name="geoIdAloneDesc"/>
+ </field>
<!-- Standard lookup (in a layer with autocompletion) -->
<field name="geoIdStd" title="${uiLabelMap.CommonGeoId}"
tooltip="${uiLabelMap.ExampleLookupFields2}" tooltip-style="button-text">
<lookup target-form-name="LookupGeo"/>
</field>
+ <!-- Standard lookup with description field (in a layer with
autocompletion) -->
+ <field name="geoNameStdDesc" title="${uiLabelMap.CommonGeoName}"
tooltip="${uiLabelMap.ExampleLookupFields7}" tooltip-style="button-text">
+ <lookup target-form-name="LookupGeoName"
description-field-name="geoIdStdDesc"/>
+ </field>
+ <field name="geoIdStdDesc"
title="${uiLabelMap.CommonGeoId}"><text/></field>
<!-- Standard read only lookup (in a layer with autocompletion) -->
<field name="geoIdReadOnly" title="${uiLabelMap.CommonGeoId}"
tooltip="${uiLabelMap.ExampleLookupFields3}" tooltip-style="button-text">
<lookup target-form-name="LookupGeo" read-only="true"/>
@@ -379,9 +391,17 @@ under the License.
<sort-field name="geoIdAlone"/>
</field-group>
<field-group>
+ <sort-field name="geoNameAloneDesc"/>
+ <sort-field name="geoIdAloneDesc"/>
+ </field-group>
+ <field-group>
<sort-field name="geoIdStd"/>
</field-group>
<field-group>
+ <sort-field name="geoNameStdDesc"/>
+ <sort-field name="geoIdStdDesc"/>
+ </field-group>
+ <field-group>
<sort-field name="geoIdReadOnly"/>
</field-group>
<field-group>