1st pass on Example component clean-up
I began to clean and make things consistent for lookups (in order to demonstrate the new Name/id mechanism) but then I realized that it should use Example entity and not Party. I will change that later and will remove all out-of-framework dependencies in the Example component * I have added an example of the new Name/id mechanism * I removed deprecated snippets in ExampleForms (some were already commented out) and used rather LookupExampleFeature enhanced with autocomplete * In FormWidgetExampleForms.xml I tried to clean things for the autocomplete in the 1st lookup, but I thing there is an issue when more than one name field is retrieved. It does not behave consistently, try for a Person and a PartyGroup for instance... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993527 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -106,10 +106,25 @@ under the License.
|
||||
<set field="queryString" from-field="result.queryString"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="10"/>
|
||||
|
||||
<!-- entries needed for lookup ajax auto completer -->
|
||||
<!-- required: entity to search in -->
|
||||
<set field="entityName" value="ExampleFeature"/>
|
||||
|
||||
<!-- required: fields to search a match -->
|
||||
<set field="searchFields" value="[exampleFeatureId, description]"/>
|
||||
|
||||
<!-- optional: field to return after user selection, default is first element of searchFields -->
|
||||
<!-- return field might be hidden based on widget.autocompleter.displayReturnField property in widget.properties -->
|
||||
<!--set field="returnField" value="exampleFeatureId"/-->
|
||||
|
||||
<!-- optional: fields to display, default are searchFields -->
|
||||
<!--set field="displayFields" value="[exampleFeatureId, description]"/-->
|
||||
|
||||
</actions>
|
||||
|
||||
<widgets>
|
||||
<decorator-screen name="LookupLayerPopupDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="search-options">
|
||||
<include-form name="LookupFindExampleFeature" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
|
||||
Reference in New Issue
Block a user