Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="3"/> You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3 This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE. I did not look into details for the 143 cases but I believe most are also legacy. There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport! There is only one comment for LookupBulkAddProducts which is also legacy: <!-- 10 rows seems more appropriate given screen size, etc. --> I suggest to OOTB replace all those by the widget.form.defaultViewSize value. Things will then be consistent and easily changeable on a global scale using the widget property. Or if really needed forcing the default-value as it's done now. So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen) <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526387 13f79535-47bb-0310-9956-ffa450edef68
233 lines
13 KiB
XML
233 lines
13 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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<!-- Included Screens -->
|
|
<screen name="minicart">
|
|
<section>
|
|
<actions>
|
|
<set field="hidetoplinks" value="Y"/>
|
|
<set field="hidebottomlinks" value="Y"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/minicart.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="promoUseDetailsInline">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promoUseDetailsInline.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="orderHeaderInfo">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/orderHeaderInfo.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="orderShortcuts">
|
|
<section>
|
|
<actions>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShoppingList.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/orderShortcuts.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- =========== Top-Level and Stand-Alone Screens =========== -->
|
|
<screen name="ShowCart">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleOrderShowCart"/>
|
|
<set field="productsummaryScreen" value="component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productsummary"/>
|
|
<property-to-field resource="order" property="orderPreference.giftEnable" field="giftEnable" default="Y"/>
|
|
<set field="promoUseDetailsInlineScreen" value="component://order/widget/ordermgr/OrderEntryCartScreens.xml#promoUseDetailsInline"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShowCart.groovy"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShowPromoText.groovy"/>
|
|
<entity-condition entity-name="ProductStorePromoAndAppl" list="allProductPromos" filter-by-date="true">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="manualOnly" value="Y"/>
|
|
<condition-expr field-name="productStoreId" from-field="productStoreId"/>
|
|
</condition-list>
|
|
<order-by field-name="productPromoId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderEntryDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/javascript.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/showcart.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/addItemsToShoppingList.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/showcartitems.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promoCodes.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/manualPromotions.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promoText.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/associatedProducts.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promotionsApplied.ftl"/></html></platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="survey">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleOrderShowCart"/>
|
|
<set field="productsummaryScreen" value="component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productsummary"/>
|
|
<set field="promoUseDetailsInlineScreen" value="component://order/widget/ordermgr/OrderEntryCartScreens.xml#promoUseDetailsInline"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShowCart.groovy"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShowPromoText.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderEntryDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/survey.ftl"/></html></platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="showAllPromotions">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleShowAllPromotions"/>
|
|
<set field="promoUseDetailsInlineScreen" value="component://order/widget/ordermgr/OrderEntryCartScreens.xml#promoUseDetailsInline"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShowCart.groovy"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ShowPromoText.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderEntryDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/showAllPromotions.ftl"/></html></platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="showPromotionDetails">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleShowPromotionDetails"/>
|
|
<set field="productsummaryScreen" value="component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productsummary"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/cart/ShowPromotionDetails.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderEntryDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<include-screen name="promotion"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="promotion">
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="productPromo"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promotiondetails.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promotioncategories.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/promotionproducts.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label text="${uiLabelMap.OrderErrorNoPromotionFoundWithID} [${productPromoId?if_exists}]" style="h2"/>
|
|
</fail-widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="LookupBulkAddProducts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleLookupBulkAddProduct"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
|
|
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderCatalogDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<include-form name="LookupBulkAddProducts" location="component://order/widget/ordermgr/OrderEntryForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="LookupBulkAddSupplierProducts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleLookupBulkAddSupplierProduct"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddSupplierProducts.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderCatalogDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<include-form name="LookupBulkAddSupplierProducts" location="component://order/widget/ordermgr/OrderEntryForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddGiftCertificate">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="OrderAddGiftCertificate"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/AddGiftCertificates.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderCatalogDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<platform-specific><html>
|
|
<html-template location="component://order/webapp/ordermgr/order/GiftCertificates.ftl"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="LookupAssociatedProducts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="OrderAssociatedProducts"/>
|
|
<script location="component://order/webapp/ordermgr/WEB-INF/actions/lookup/LookupAssociatedProducts.groovy"/>
|
|
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
|
|
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
|
|
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonOrderCatalogDecorator" location="component://order/widget/ordermgr/OrderEntryCommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<include-form name="LookupAssociatedProducts" location="component://order/widget/ordermgr/OrderEntryForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
</screens>
|