applications/accounting/widget/LookupScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="LookupPayment">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupPayment}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="Payment"/>
<set field="searchFields" value="[paymentId, partyIdFrom, partyIdTo, currencyUomId]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupPayment" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listPayment" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupInvoice">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupInvoices}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="Invoice"/>
<set field="searchFields" value="[invoiceId, partyIdFrom, partyId, description, currencyUomId]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupInvoice" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listInvoice" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupFixedAsset">
<section>
<condition>
<if-service-permission service-name="fixedAssetPermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.PageTitleLookupFixedAsset}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="FixedAsset"/>
<set field="searchFields" value="[fixedAssetId, fixedAssetName]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupFixedAsset" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listLookupFixedAsset" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupBillingAccount">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.PageTitleLookupBillingAccount}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="BillingAccount"/>
<set field="searchFields" value="[billingAccountId, description, externalAccountId, accountCurrencyUomId]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupBillingAccount" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listBillingAccount" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupGlAccount">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.PageTitleLookupGlAccount}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="GlAccount"/>
<set field="searchFields" value="[glAccountId, accountName, glAccountTypeId, glAccountClassId]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupGlAccount" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listLookupGlAccount" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupAgreement">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupAgreement}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="Agreement"/>
<set field="searchFields" value="[agreementId, productId, description]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupAgreement" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listAgreements" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupAgreementItem">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupAgreementItem}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="AgreementItem"/>
<set field="searchFields" value="[agreementItemSeqId, agreementId, currencyUomId]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupAgreementItem" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listAgreementItems" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupPaymentGroupMember">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupPaymentGroupMember}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="PaymentGroupMember"/>
<set field="searchFields" value="[paymentGroupId, paymentId, sequenceNum]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupPaymentGroupMember" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listPaymentGroupMember" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupGlReconciliation">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupGlReconciliations}"/>
<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}"/>
<set field="entityName" value="GlReconciliation"/>
<set field="searchFields" value="[glReconciliationId, glReconciliationName, description]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="LookupGlReconciliation" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListLookupReconciliation" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="LookupCustomTimePeriod">
<section>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.PageTitleLookupCustomTimePeriod}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<set field="entityName" value="CustomTimePeriod"/>
<set field="searchFields" value="[customTimePeriodId, periodName]"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupCustomTimePeriod" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listLookupCustomTimePeriod" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- SCIPIO: 2017-06-26: new: Tax Authority Geo Lookup Screen (NOTE: only use for searching existing, not for create/edit) -->
<screen name="LookupTaxAuthorityGeo">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<set field="title" value="${uiLabelMap.PageTitleLookupGeo}"/>
<set field="queryString" from-field="result.queryString"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
<!-- entries needed for lookup ajax auto completer -->
<!-- required: entity to search in -->
<set field="entityName" value="TaxAuthorityAndGeo"/>
<!-- required: fields to search a match -->
<!-- the first element from searchFields is returned after user selection -->
<!-- it might be hidden based on widget.autocompleter.displayReturnField property in widget.properties -->
<set field="searchFields" value="[geoId, geoName, geoCode]"/>
<!-- optional: fields to display in the given order, default is searchFields -->
<set field="displayFields" value="[geoId, geoName, geoCode]"/>
<!-- optional: additional entity condition (named andCondition) added to search query -->
<!-- example : script location="component://party/webapp/partymgr/WEB-INF/actions/party/StatusCondition.groovy" /-->
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="LookupGeo" location="component://common/widget/LookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listLookupGeo" location="component://common/widget/LookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- SCIPIO: 2017-06-26: new: Tax Authority Party Name Lookup Screen (NOTE: only use for searching existing, not for create/edit) -->
<screen name="LookupTaxAuthorityPartyName">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.PartyLookupPartyByName}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<!-- entries needed for lookup ajax auto completer -->
<!-- required: entity to search in -->
<set field="entityName" value="TaxAuthorityAndPartyNameView"/>
<!-- required: fields to search a match -->
<!-- the first element from searchFields is returned after user selection -->
<!-- it might be hidden based on widget.autocompleter.displayReturnField property in widget.properties -->
<set field="searchFields" value="[partyId, firstName, middleName, lastName, groupName]"/>
<!-- optional: fields to display in the given order, default is searchFields -->
<set field="displayFields" value="[firstName, lastName, groupName]"/>
<!-- optional: additional entity condition (named andCondition) added to search query -->
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/StatusCondition.groovy"/>
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupPartyName" location="component://party/widget/partymgr/LookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listLookupPartyName" location="component://party/widget/partymgr/LookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<!-- SCIPIO: 2019-02-05: new: Tax Authority Party Name Lookup Screen (NOTE: only use for searching existing, not for create/edit) -->
<screen name="LookupOrderPaymentPreference">
<section>
<condition>
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
</condition>
<actions>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="title" value="${uiLabelMap.AccountingLookupOrderPaymentPreference}"/>
<set field="queryString" from-field="result.queryString"/>
<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}"/>
<!-- entries needed for lookup ajax auto completer -->
<!-- required: entity to search in -->
<set field="entityName" value="OrderPaymentPreference"/>
<!-- required: fields to search a match -->
<!-- the first element from searchFields is returned after user selection -->
<!-- it might be hidden based on widget.autocompleter.displayReturnField property in widget.properties -->
<set field="searchFields" value="[orderPaymentPreferenceId, orderId, paymentMethodTypeId, paymentMethodId, statusId]"/>
<!-- optional: fields to display in the given order, default is searchFields -->
<set field="displayFields" value="[orderPaymentPreferenceId, orderId, maxAmount, statusId]"/>
<!-- optional: additional entity condition (named andCondition) added to search query -->
</actions>
<widgets>
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="lookupOrderPaymentPreference" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="listOrderPaymentPreference" location="component://accounting/widget/FieldLookupForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>