For the moment in trunk the Link Geos screen use a standard multiple dropdown. It's not easy to use (see why at http://www.ryancramer.com/journal/entries/select_multiple). In the jQuery branch I have used the asmselect plugin, much easier for end users. Actually I'm not totally satisfied by it either. It's a beta and seems to be freezed. Also the way the field is shown is not flexible enough. It's a fixed size area and I tried to work around. I could be done better though. I will have a look. Sascha thought we could use jQuery.ui.sortable but I don't think it exactly corresponds to the feature needed. I have also changed some labels names and removed/grouped some requests (only in common now) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996658 13f79535-47bb-0310-9956-ffa450edef68
63 lines
3.6 KiB
XML
63 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<!-- Geo Lookup forms -->
|
|
<form name="LookupGeo" target="LookupGeo" title="" type="single">
|
|
<field name="geoId" title="${uiLabelMap.CommonGeoId}"><text-find/></field>
|
|
<field name="geoTypeId" title="${uiLabelMap.CommonGeoTypeId}">
|
|
<drop-down allow-empty="true">
|
|
<entity-options key-field-name="geoTypeId" entity-name="GeoType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="geoName" title="${uiLabelMap.CommonGeoName}"><text-find/></field>
|
|
<field name="geoCode" title="${uiLabelMap.CommonGeoCode}"><text-find/></field>
|
|
<field name="geoSecCode" title="${uiLabelMap.CommonGeoSecCode}"><text-find/></field>
|
|
<field name="abbreviation" title="${uiLabelMap.CommonGeoAbbr}"><text-find/></field>
|
|
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
<form name="listLookupGeo" list-name="listIt" target="" title="" type="list" paginate-target="LookupGeo">
|
|
<actions>
|
|
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
|
<field-map field-name="inputFields" from-field="parameters"/>
|
|
<field-map field-name="entityName" value="Geo"/>
|
|
<field-map field-name="orderBy" value="geoName"/>
|
|
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
|
<field-map field-name="viewSize" from-field="viewSize"/>
|
|
</service>
|
|
</actions>
|
|
<field name="geoId" widget-style="buttontext" title="${uiLabelMap.CommonGeoId}">
|
|
<hyperlink also-hidden="false" target-type="plain" description="${geoId}" target="javascript:set_value('${geoId}')"/>
|
|
</field>
|
|
<field name="geoTypeId" title="${uiLabelMap.CommonGeoTypeId}">
|
|
<display-entity key-field-name="geoTypeId" entity-name="GeoType" description="${description}"/>
|
|
</field>
|
|
<field name="geoName" title="${uiLabelMap.CommonGeoName}"><display/></field>
|
|
<field name="geoCode" title="${uiLabelMap.CommonGeoCode}"><display/></field>
|
|
<field name="geoSecCode" title="${uiLabelMap.CommonGeoSecCode}"><display/></field>
|
|
<field name="abbreviation" title="${uiLabelMap.CommonGeoAbbr}"><display/></field>
|
|
<field name="wellKnownText" title="${uiLabelMap.CommonGeoWellKnownText}"><display/></field>
|
|
</form>
|
|
</forms>
|