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> |
Free forum by Nabble | Edit this page |