Files
ofbiz-plugins/googlecheckout/widget/GoogleCheckoutForms.xml
T
Ashish Vijaywargiya 57b30f153a Changed the name of entities as it was exceeding the maximum length i.e 30.
Reported by Hans on Dev mailing list. Thanks Hans.

There are two reason of choosing "Co" pattern for the entities.

1) I haven't seen any such pattern in OFBiz to define entity in which you have three or more capital letter coming in b/w.
Like for General Ledger, GlAccount is used OOTB.

2) In database it will split the table name to Google_C_O_Shipping_Method if we keep the name GoogleCOShippingMethod.
So it looks like you have some new word starting with "C" and another new word starting with "O"
But if we keep the name GoogleCoShippingMethod then it will split the name into "Google_Co_Shipping_Method"





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@781689 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 09:14:51 +00:00

174 lines
9.1 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">
<form name="ListGoogleCheckoutConfigurations" type="list" list-name="googleCheckoutConfigurations" target="updateGoogleCheckoutConfiguration"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="GoogleCoConfiguration">
<order-by field-name="productStoreId"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateGoogleCheckoutConfiguration"/>
<field name="productStoreId"><display/></field>
<field name="envEnumId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId">
<entity-constraint name="enumTypeId" operator="equals" value="GOOGLE_ENV_TYPE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="webSiteId">
<drop-down allow-empty="true">
<entity-options description="${siteName}" entity-name="WebSite">
<entity-order-by field-name="siteName"/>
</entity-options>
</drop-down>
</field>
<field name="prodCatalogId">
<drop-down allow-empty="true">
<entity-options description="${catalogName}" entity-name="ProdCatalog">
<entity-order-by field-name="catalogName"/>
</entity-options>
</drop-down>
</field>
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
<drop-down allow-empty="true">
<entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
<entity-order-by field-name="abbreviation"/>
</entity-options>
</drop-down>
</field>
<field name="deleteGoogleCheckoutConfiguration" title="" widget-style="buttontext">
<hyperlink target="deleteGoogleCheckoutConfiguration" description="${uiLabelMap.CommonDelete}" also-hidden="false">
<parameter param-name="productStoreId"/>
</hyperlink>
</field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="AddGoogleCheckoutConfiguration" type="single" target="createGoogleCheckoutConfiguration" title="">
<auto-fields-service service-name="createGoogleCheckoutConfiguration"/>
<field name="productStoreId">
<drop-down allow-empty="false">
<option key="" description="- ${uiLabelMap.CommonSelectAny} -"/>
<entity-options entity-name="ProductStore" description="${storeName} [${productStoreId}]">
<entity-order-by field-name="storeName"/>
</entity-options>
</drop-down>
</field>
<field name="envEnumId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId">
<entity-constraint name="enumTypeId" operator="equals" value="GOOGLE_ENV_TYPE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="webSiteId">
<drop-down allow-empty="true">
<entity-options description="${siteName}" entity-name="WebSite">
<entity-order-by field-name="siteName"/>
</entity-options>
</drop-down>
</field>
<field name="prodCatalogId">
<drop-down allow-empty="true">
<entity-options description="${catalogName}" entity-name="ProdCatalog">
<entity-order-by field-name="catalogName"/>
</entity-options>
</drop-down>
</field>
<field name="currencyUomId" title="${uiLabelMap.CommonCurrency}">
<drop-down allow-empty="true">
<entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
<entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
<entity-order-by field-name="abbreviation"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="ListGoogleCheckoutShippingMethods" type="list" list-name="googleCheckoutShippingMethods" target="updateGoogleCheckoutShippingMethod"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="GoogleCoShippingMethod">
<order-by field-name="shipmentMethodName"/>
<order-by field-name="productStoreId"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateGoogleCheckoutShippingMethod"/>
<field name="productStoreId"><display/></field>
<field name="shipmentMethodName"><display/></field>
<field name="methodTypeEnumId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId">
<entity-constraint name="enumTypeId" operator="equals" value="GOOGLE_SHIP_TYPE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="carrierPartyId"><lookup target-form-name="LookupPartyName"/></field>
<field name="shipmentMethodTypeId">
<drop-down current="selected" allow-empty="false">
<entity-options entity-name="ShipmentMethodType" key-field-name="shipmentMethodTypeId" description="${description}"/>
</drop-down>
</field>
<field name="deleteGoogleCheckoutShippingMethod" title="" widget-style="buttontext">
<hyperlink target="deleteGoogleCheckoutShippingMethod" description="${uiLabelMap.CommonDelete}" also-hidden="false">
<parameter param-name="shipmentMethodName"/>
<parameter param-name="productStoreId"/>
</hyperlink>
</field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="AddGoogleCheckoutShippingMethod" type="single" target="createGoogleCheckoutShippingMethod" title="">
<auto-fields-service service-name="createGoogleCheckoutShippingMethod"/>
<field name="methodTypeEnumId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId">
<entity-constraint name="enumTypeId" operator="equals" value="GOOGLE_SHIP_TYPE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="productStoreId">
<drop-down allow-empty="false">
<option key="" description="- ${uiLabelMap.CommonSelectAny} -"/>
<entity-options entity-name="ProductStore" description="${storeName} [${productStoreId}]">
<entity-order-by field-name="storeName"/>
</entity-options>
</drop-down>
</field>
<field name="carrierPartyId"><lookup target-form-name="LookupPartyName"/></field>
<field name="shipmentMethodTypeId">
<drop-down current="selected" allow-empty="false">
<entity-options entity-name="ShipmentMethodType" description="${description}"/>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
</forms>