ilscipio/scipio-erp

View on GitHub
applications/product/widget/catalog/FeatureForms.xml

Summary

Maintainability
Test Coverage
<?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="EditProductFeature" type="single" target="updateProductFeature" title="" default-map-name="productFeature"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->

        <alt-target use-when="productFeature==null" target="createProductFeature"/>

        <auto-fields-service service-name="updateProductFeature" map-name=""/>

        <field name="isCreate" use-when="productFeature==null"><hidden value="true"/></field><!-- SCIPIO: new -->

        <field use-when="productFeature!=null" name="productFeatureId" title="${uiLabelMap.ProductFeatureId}" tooltip="${uiLabelMap.ProductChangeWithoutProductCatalog}"><display/></field>
        <field use-when="productFeature==null&amp;&amp;productFeatureId!=null" name="productFeatureId" title="${uiLabelMap.ProductFeatureId}" tooltip="${uiLabelMap.ProductCouldNotFindProductConfigItem} [${productFeatureId}]"><text size="20" maxlength="20"/></field>
        <!-- this to be taken care of with auto-fields-service as soon as it uses entity field info too -->
        <field use-when="productFeature==null&amp;&amp;productFeatureId==null" name="productFeatureId" title="${uiLabelMap.ProductFeatureId}"><ignored/></field>

        <field name="productFeatureTypeId" title="${uiLabelMap.ProductFeatureType}">
            <drop-down>
                <entity-options entity-name="ProductFeatureType" description="${description}">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>

        <field name="productFeatureCategoryId" title="${uiLabelMap.ProductFeatureCategory}">
            <drop-down>
                <entity-options entity-name="ProductFeatureCategory" description="${description} [${productFeatureCategoryId}]">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <!-- SCIPIO: now redundant (in sub tab bar)
        <field name="categoryAction" title=" " use-when="productFeature!=null&amp;&amp;productFeature.getString(&quot;productFeatureCategoryId&quot;)!=null" widget-style="${styles.link_nav} ${styles.action_update}">
            <hyperlink target="EditFeatureCategoryFeatures" description="${uiLabelMap.ProductGoToFeatureCategory} ${productFeature.productFeatureCategoryId}" also-hidden="false">
                <parameter param-name="productFeatureCategoryId" from-field="productFeature.productFeatureCategoryId"/>
            </hyperlink>
        </field>
        -->

        <field name="description" title="${uiLabelMap.CommonDescription}" required-field="true"/>
        <field name="uomId" title="${uiLabelMap.ProductUnitOfMeasureId}"/>
        <field name="numberSpecified" title="${uiLabelMap.ProductNumberQuantity}"/>
        <field name="defaultAmount" title="${uiLabelMap.ProductDefaultAmount}"/>
        <field name="defaultSequenceNum" title="${uiLabelMap.ProductDefaultSequenceNumber}"/>
        <field name="idCode" title="${uiLabelMap.ProductIdCode}"/>
        <field name="abbrev" title="${uiLabelMap.ProductAbbreviation}"/>

        <field use-when="productFeature!=null&amp;&amp;productFeatureId!=null" name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <field use-when="productFeature==null&amp;&amp;productFeatureId==null" name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>

    <form name="CreateSupplierProductFeature" type="single" target="createSupplierProductFeature" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="createSupplierProductFeature" default-field-type="edit"/>
        <field name="partyId" title="${uiLabelMap.ProductSuppliers}">
            <drop-down allow-empty="false">
                <entity-options entity-name="PartyRoleAndPartyDetail" description="${groupName} ${firstName} ${lastName} [${partyId}]">
                    <entity-constraint name="roleTypeId" value="SUPPLIER"/>
                    <entity-order-by field-name="groupName"/>
                    <entity-order-by field-name="lastName"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="uomId" title="${uiLabelMap.ProductCurrency}">
            <drop-down allow-empty="true">
                <entity-options entity-name="Uom" description="${uomId}"/>
            </drop-down>
        </field>
        <field name="idCode" title="${uiLabelMap.ProductIdCode}"></field>
        <field name="productFeatureId" ><hidden/></field>
        <field name="submitForm" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit/></field>
    </form>
    <form name="EditSupplierProductFeatures" type="list" target="updateSupplierProductFeature" title="" list-name="supplierProductFeatures"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <auto-fields-service service-name="updateSupplierProductFeature" default-field-type="display"/>
        <field name="productFeatureId"><hidden/></field>
        <field name="partyId" title="${uiLabelMap.ProductSuppliers}">
            <display-entity entity-name="PartyGroup" description="${groupName}"/>
        </field>

        <field name="description" title="${uiLabelMap.ProductProductDescription}"><text size="40"/></field>
        <field name="idCode" title="${uiLabelMap.ProductIdCode}"><text size="5"/></field>
        <field name="uomId" title="${uiLabelMap.ProductCurrency}">
            <drop-down allow-empty="true">
                <entity-options entity-name="Uom" description="${uomId}"/>
            </drop-down>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <field name="deleteAction" title=" " widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="removeSupplierProductFeature" description="${uiLabelMap.CommonDelete}">
                <parameter param-name="productFeatureId"/>
                <parameter param-name="partyId"/>
            </hyperlink>
        </field>
    </form>
    <form name="FindFeatureType" type="single" target="EditFeatureTypes"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureTypeId"><text-find size="25"></text-find></field>
        <field name="description"><text-find size="25"></text-find></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit/></field>
    </form>
    <form name="ListFeatureTypes" list-name="listIt" target="" title="" type="list" paginate-target="EditFeatureTypes"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <actions>
            <set field="parameters.noConditionFind" value="Y"/>
            <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="ProductFeatureType"/>
                <field-map field-name="orderBy" value="productFeatureTypeId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="productFeatureTypeId" widget-style="${styles.link_nav_info_id}">
            <hyperlink target="EditFeatureType" description="${productFeatureTypeId}">
                <parameter param-name="productFeatureTypeId"/>
            </hyperlink>
        </field>
        <field name="description"><display/></field>
        <field name="parentTypeId">
            <display-entity entity-name="ProductFeatureType" description="${description}" key-field-name="productFeatureTypeId">
                <sub-hyperlink target="EditFeatureType" description="${parentTypeId}">
                    <parameter param-name="productFeatureTypeId" from-field="parentTypeId"/>
                </sub-hyperlink>
            </display-entity>
        </field>
        <field name="removeFeatureTypeAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="removeProductFeatureType" description="${uiLabelMap.CommonDelete}">
                <parameter param-name="productFeatureTypeId"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditFeatureType" type="single" target="updateProductFeatureType" title="" default-map-name="productFeatureType"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <alt-target use-when="productFeatureType==null" target="createProductFeatureType"/>
        <auto-fields-entity entity-name="ProductFeatureType"/>
        <field use-when="productFeatureType!=null" name="productFeatureTypeId" title="${uiLabelMap.ProductFeatureType}"><display/></field>
        <field use-when="productFeatureType==null&amp;&amp;productFeatureTypeId!=null" name="productFeatureTypeId" title="${uiLabelMap.ProductFeatureType}" tooltip="${uiLabelMap.ProductCouldNotFindProductFeatureType} [${productFeatureTypeId}]"><text size="20" maxlength="20"/></field>

        <field name="isCreate" use-when="productFeatureType==null"><hidden value="true"/></field><!-- SCIPIO: new -->

        <field name="parentTypeId" title="${uiLabelMap.ProductParentType}">
            <drop-down allow-empty="true">
                <entity-options entity-name="ProductFeatureType" key-field-name="productFeatureTypeId" description="${description}">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="hasTable"><hidden/></field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
    <form name="FindFeatureInterAction" type="single" target="EditFeatureInterActions"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureId"><text-find size="25"></text-find></field>
        <field name="productFeatureIdTo"><text-find size="25"></text-find></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit/></field>
    </form>
    <form name="ListFeatureInterActions" list-name="listIt" target="" title="" type="list" paginate-target="EditFeatureInterAction"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <actions>
            <set field="parameters.noConditionFind" value="Y"/>
            <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="ProductFeatureIactn"/>
                <field-map field-name="orderBy" value="productFeatureId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
                </service>
            </actions>

        <field name="productFeatureId">
            <display-entity entity-name="ProductFeature" description="${description}">
                <sub-hyperlink target="EditFeature" description="[${productFeatureId}]">
                <parameter param-name="productFeatureId"/>
            </sub-hyperlink>
            </display-entity>
        </field>
        <field name="productFeatureIdTo">
            <display-entity entity-name="ProductFeature" description="${description}" key-field-name="productFeatureId">
                <sub-hyperlink target="EditFeature" description="[${productFeatureIdTo}]">
                <parameter param-name="productFeatureId" from-field="productFeatureIdTo"/>
            </sub-hyperlink>
            </display-entity>
        </field>
        <field name="productFeatureIactnTypeId"><display-entity entity-name="ProductFeatureIactnType"/></field>

        <field name="removeFeatureInterAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="removeProductFeatureIactn" description="${uiLabelMap.CommonDelete}">
                <parameter param-name="productFeatureId"/>
                <parameter param-name="productFeatureIdTo"/>
            </hyperlink>
        </field>
    </form>
    <form name="EditFeatureInterAction" type="single" target="createProductFeatureIactn" title="" default-map-name="productFeatureIactn"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="isCreate"><hidden value="true"/></field><!-- SCIPIO: new -->
        <field name="productFeatureId">
            <drop-down allow-empty="true">
                <entity-options description="${description} [${productFeatureId}]" entity-name="ProductFeature">
                    <entity-order-by field-name="productFeatureTypeId"/>
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="productFeatureIdTo">
            <drop-down allow-empty="true">
                <entity-options description="${description} [${productFeatureId}]" entity-name="ProductFeature" key-field-name="productFeatureId">
                    <entity-order-by field-name="productFeatureTypeId"/>
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="productFeatureIactnTypeId">
            <drop-down allow-empty="false">
                <entity-options description="${description}" entity-name="ProductFeatureIactnType">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>

    <form name="FindFeatureGroup" type="single" target="EditFeatureGroups"
          header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureGroupId"><text-find size="25"></text-find></field>
        <field name="description"><text-find size="25"></text-find></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit/></field>
    </form>
    <form name="CreateFeatureGroup" type="single" target="UpdateProductFeatureGroup"
          header-row-style="header-row" default-entity-name="ProductFeatureGroup" default-map-name="productFeatureGroup"> <!-- orig: default-table-style=-style="basic-table" -->
        <alt-target use-when="productFeatureGroup==null" target="CreateProductFeatureGroup"/>
        <field name="productFeatureGroupId"><text/></field>
        <field name="description"><text/></field>
        <field use-when="productFeatureGroup!=null&amp;&amp;productFeatureGroupId!=null" name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <field use-when="productFeatureGroup==null&amp;&amp;productFeatureGroupId==null" name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
    <form name="ListFeatureGroupAppls" type="multi" use-row-submit="false" list-name="productFeatureGroupAndAppls" target="UpdateProductFeatureGroupAppl?productFeatureGroupId=${productFeatureGroupId}" title=""
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureGroupId"><hidden/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><hidden/></field>
        <field name="productFeatureId" title="${uiLabelMap.CommonId}"><display/></field>
        <field name="description" title="${uiLabelMap.ProductFeature}"><display/></field>
        <field name="productFeatureTypeId" title="${uiLabelMap.CommonType}">
            <display-entity entity-name="ProductFeatureType"/>
        </field>
        <field name="productFeatureCategoryId" title="${uiLabelMap.ProductFeatureCategory}">
            <display-entity entity-name="ProductFeatureCategory"/>
        </field>
        <field name="sequenceNum"><text size="3"/></field>
        <field name="removeFeatureGroupApplAction" title="${uiLabelMap.CommonRemove}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="RemoveProductFeatureGroupAppl" description="${uiLabelMap.CommonRemove}">
                <parameter param-name="productFeatureGroupId"/>
                <parameter param-name="productFeatureId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}">
            <submit/>
        </field>
    </form>
    <form name="QuickApplyFeatureToGroup" type="single" target="CreateProductFeatureGroupAppl" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureGroupId"><hidden/></field>
        <field name="productFeatureId" title="${uiLabelMap.ProductFeatureId}"><text/></field>
        <field name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}">
            <submit button-type="button"/>
        </field>
    </form>
    <form name="ApplyFeatureCategoryToGroup" type="single" target="EditFeatureGroupAppls" title=""
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureGroupId"><hidden/></field>
        <field name="productFeatureCategoryId">
            <drop-down>
                <list-options key-name="productFeatureCategoryId" list-name="productFeatureCategories" description="${description}"/>
            </drop-down>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonContinue}" widget-style="${styles.link_run_sys} ${styles.action_update}">
            <submit button-type="button"/>
        </field>
    </form>
    <form name="ApplyFeaturesFromCategoryToGroup" type="multi" use-row-submit="true" list-name="productFeatures" target="ApplyFeaturesFromCategoryToGroup?productFeatureGroupId=${productFeatureGroupId}" title=""
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureGroupId"><hidden/></field>
        <field name="productFeatureId" title="${uiLabelMap.CommonId}"><display/></field>
        <field name="productFeatureTypeId" title="${uiLabelMap.CommonType}">
            <display-entity entity-name="ProductFeatureType"/>
        </field>
        <field name="description" title="${uiLabelMap.ProductFeature}"><display/></field>
        <field name="idCode" title="${uiLabelMap.CommonIdCode}"><display/></field>
        <field name="abbrev" title="${uiLabelMap.ProductAbbrev}"><display/></field>
        <field name="_rowSubmit" title="${uiLabelMap.CommonSelect}"><check/></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}">
          <submit/>
        </field>
    </form>

    <!-- SCIPIO (2019-04-01): FindProductFeature renamed to FindProductFeatureCategory -->
    <form name="FindProductFeatureCategory" type="single" target="EditFeatureCategories"
        header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureCategoryId" title="${uiLabelMap.CommonId}"><text-find size="20" maxlength="255"></text-find></field>
        <field name="description" title="${uiLabelMap.CommonDescription}"><text-find size="25"></text-find></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit/></field>
    </form>

    <!-- SCIPIO (2019-04-01): ListProductFeature renamed to FindProductFeatureCategory -->
    <form name="ListProductFeatureCategory" type="list" list-name="listIt" paginate-target="EditFeatureCategories" target="UpdateFeatureCategory"
        odd-row-style="alternate-row" separate-columns="true"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <set field="parameters.noConditionFind" value="Y"/>
            <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="ProductFeatureCategory"/>
                <field-map field-name="orderBy" value="productFeatureCategoryId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <field name="productFeatureCategoryId" title="${uiLabelMap.CommonId}" widget-style="${styles.link_nav_info_id}">
            <hyperlink target="EditFeatureCategoryFeatures" description="${productFeatureCategoryId}">
                <parameter param-name="productFeatureCategoryId"/>
            </hyperlink>
        </field>
        <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
        <field name="update" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
    </form>

    <form name="CreateProductFeature" type="single" target="CreateFeatureCategory">
        <field name="isCreate"><hidden value="true"/></field><!-- SCIPIO: new -->
        <field name="description" title="${uiLabelMap.CommonDescription}*"><text size="25"></text></field>
        <field name="parentCategory" title="${uiLabelMap.ProductParentCategory}">
            <drop-down allow-empty="true">
                <entity-options description="${description}" entity-name="ProductFeatureCategory" key-field-name="description">
                </entity-options>
            </drop-down>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>
    
    <form name="ListFeaturePrice" type="list" target="updateFeaturePrice" list-name="productFeaturePrice"
        odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <actions>
            <entity-and entity-name="ProductFeaturePrice" list="productFeaturePrice">
                <field-map field-name="productFeatureId" from-field="parameters.productFeatureId"/>
            </entity-and>
        </actions>
        <field name="productFeatureId"><hidden/></field>
        <field name="productPriceTypeId" title="${uiLabelMap.ProductPriceType}"><display-entity entity-name="ProductPriceType"/></field>
        <field name="currencyUomId" title="${uiLabelMap.ProductCurrency}"><display-entity entity-name="Uom" key-field-name="uomId" description="${description} [${uomId}]"/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}"><date-time default-value="${thruDate}"/></field>
        <field name="price" title="${uiLabelMap.ProductPrice}" required-field="true"><text size="25" default-value="${price}"/></field>
        <field name="updateFeaturePrice" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <field name="lastModifiedBy" title="${uiLabelMap.ProductLastModifiedBy}"><display description="[${lastModifiedByUserLogin}] ${uiLabelMap.CommonOn} ${lastModifiedDate}"/></field>
        <field name="deleteFeaturePriceAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteFeaturePrice" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="productFeatureId"/>
                <parameter param-name="productPriceTypeId"/>
                <parameter param-name="currencyUomId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
    <form name="CreateFeaturePrice" type="single" target="createFeaturePrice">
        <actions>
            <property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
        </actions>
        <field name="isCreate"><hidden value="true"/></field><!-- SCIPIO: new -->
        <field name="productFeatureId"><hidden/></field>
        <field name="productPriceTypeId" title="${uiLabelMap.ProductPriceType}">
            <drop-down allow-empty="false" no-current-selected-key="DEFAULT_PRICE">
                <entity-options entity-name="ProductPriceType" description="${description}">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" position="1"><date-time/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><date-time/></field>
        <field name="price" title="${uiLabelMap.ProductPrice}" required-field="true" position="1"><text size="25"/></field>
        <field name="currencyUomId" title="${uiLabelMap.ProductCurrency}" position="2">
            <drop-down allow-empty="false" no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
                <entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom">
                    <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
    </form>


    <!-- SCIPIO (2019-04-01): FindProductFeature is now used for ProductFeatures not ProductFeatureCategories -->
    <form name="FindProductFeature" type="single" target="ListFeatures"
          header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
        <field name="productFeatureCategoryId" title="${uiLabelMap.CommonId}"><text-find size="25"/></field>

        <field name="productFeatureTypeId" title="${uiLabelMap.ProductFeatureType}">
            <drop-down allow-empty="true">
                <entity-options entity-name="ProductFeatureType" description="${description}">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="productFeatureCategoryId" title="${uiLabelMap.ProductFeatureCategory}">
            <drop-down allow-empty="true">
                <entity-options entity-name="ProductFeatureCategory" description="${description} [${productFeatureCategoryId}]">
                    <entity-order-by field-name="description"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="description" title="${uiLabelMap.CommonDescription}"><text-find size="25"/></field>
        <field name="uomId" title="${uiLabelMap.ProductUnitOfMeasureId}"><text-find size="25"/></field>
        <field name="idCode" title="${uiLabelMap.ProductIdCode}"><text-find size="25"/></field>
        <field name="abbrev" title="${uiLabelMap.ProductAbbreviation}"><text-find size="25"/></field>

        <field name="description" title="${uiLabelMap.CommonDescription}"><text-find size="25"/></field>
        <field name="searchAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit/></field>
    </form>

    <!-- SCIPIO (2019-04-01): ListProductFeature renamed to FindProductFeatureCategory -->
    <form name="ListProductFeature" type="list" list-name="listIt" paginate-target="ListFeatures" target="updateProductFeature"
          odd-row-style="alternate-row" separate-columns="true"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
        <actions>
            <set field="parameters.noConditionFind" value="Y"/>
            <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="ProductFeature"/>
                <field-map field-name="orderBy" value="productFeatureId"/>
                <field-map field-name="viewIndex" from-field="viewIndex"/>
                <field-map field-name="viewSize" from-field="viewSize"/>
            </service>
        </actions>
        <row-actions>
            <entity-one entity-name="ProductFeatureCategory" value-field="featureCategory" auto-field-map="true" />
            <entity-one entity-name="ProductFeatureType" value-field="featureType" auto-field-map="true" />
        </row-actions>
        <field name="productFeatureId" title="${uiLabelMap.CommonId}" widget-style="${styles.link_nav_info_id}">
            <hyperlink target="EditFeature" description="${productFeatureId}">
                <parameter param-name="productFeatureId"/>
            </hyperlink>
        </field>
        <field name="productFeatureCategoryId" title="${uiLabelMap.ProductFeatureCategory}">
            <hyperlink target="EditFeatureCategoryFeatures" description="${featureCategory.description}">
                <parameter param-name="productFeatureCategoryId" from-field="featureCategory.productFeatureCategoryId"/>
            </hyperlink>
        </field>
        <field name="productFeatureTypeId" title="${uiLabelMap.ProductFeatureType}">
            <hyperlink target="EditFeatureType" description="${featureType.description}">
                <parameter param-name="productFeatureTypeId" from-field="featureType.productFeatureTypeId"/>
            </hyperlink>
        </field>
        <field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
        <field name="uomId"><display/></field>
        <field name="numberSpecified"><display/></field>
        <field name="abrev"><display/></field>
        <field name="idCode"><display/></field>
        <field name="update" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
    </form>

</forms>