You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2017/07/31 13:58:17 UTC

svn commit: r1803539 - in /ofbiz/ofbiz-plugins/trunk/example: config/ExampleUiLabels.xml widget/example/FormWidgetExampleForms.xml

Author: nmalin
Date: Mon Jul 31 13:58:17 2017
New Revision: 1803539

URL: http://svn.apache.org/viewvc?rev=1803539&view=rev
Log:
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)

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=1803539&r1=1803538&r2=1803539&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/example/config/ExampleUiLabels.xml Mon Jul 31 13:58:17 2017
@@ -690,12 +690,16 @@
         <value xml:lang="zh-TW">唯讀分層尋找資料項目,僅按鈕可用</value>
     </property>
     <property key="ExampleLookupFields4">
-        <value xml:lang="en">Lookup Field of type layered and showing use of set_values underneath, ie returning not only Id but also another value. Both using also autocomplete</value>
-        <value xml:lang="fr">Champ de recherche de type layer avec usage sous-jacent de set_values qui permet de traiter non seulement une référence mais aussi une autre valeur. Les 2 utilisent aussi l'autocompletion</value>
+        <value xml:lang="en">Lookup Field of presentation type layered and showing use of set_values underneath, ie returning not only Id but also another value. Both using also autocomplete</value>
+        <value xml:lang="fr">Champ de recherche de type présentation layer avec usage sous-jacent de set_values qui permet de traiter non seulement une référence mais aussi une autre valeur. Les 2 utilisent aussi l'autocompletion</value>
         <value xml:lang="ja">レイヤー表示の種類の検索フィールド。下にセットした値の使用方法を表示。IDだけでなくその他の値を戻す。両方ともオートコンプリート使用</value>
         <value xml:lang="zh">类型分层的查找数据项,并在下面显示数值集合的使用,比如不仅返回标识(Id),还有另一个数值。这两个数值都使用自动填充</value>
         <value xml:lang="zh-TW">類型階層式尋找資料項目,並在下面顯示數值集合的使用,比如不僅返回識別(Id),還有另一個數值.這兩個數值都使用自動完成</value>
     </property>
+    <property key="ExampleLookupFields5">
+        <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="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=1803539&r1=1803538&r2=1803539&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/example/widget/example/FormWidgetExampleForms.xml Mon Jul 31 13:58:17 2017
@@ -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>