Dear BJ,
I have not done such changes. If i remove voucher Date from condition-expr
its working fine.
Piece of code written in bold is newly added by me in GlForms.xml
<form name="ListAcctgTrans" type="list" title="List Accounting Transactions"
list-name="acctgTransList"
odd-row-style="alternate-row" default-table-style="basic-table
hover-bar">
<actions>
<entity-condition entity-name="AcctgTransAndEntries"
list="acctgTransList" distinct="true">
<condition-list>
<condition-expr field-name="organizationPartyId"
operator="equals" from-field="organizationPartyId"/>
<condition-expr field-name="voucherDate"
operator="equals" from-field="parameters.voucherDate"
ignore-if-empty="true"/>
<condition-expr field-name="acctgTransTypeId"
operator="equals" from-field="parameters.acctgTransTypeId"
ignore-if-empty="true"/>
<condition-expr field-name="glFiscalTypeId"
operator="equals" from-field="parameters.glFiscalTypeId"
ignore-if-empty="true"/>
<condition-expr field-name="glJournalId"
operator="equals" from-field="parameters.glJournalId"
ignore-if-empty="true"/>
<condition-expr field-name="isPosted" operator="equals"
from-field="parameters.isPosted" ignore-if-empty="true"/>
<condition-expr field-name="invoiceId" operator="equals"
from-field="parameters.invoiceId" ignore-if-empty="true"/>
<condition-expr field-name="paymentId" operator="equals"
from-field="parameters.paymentId" ignore-if-empty="true"/>
<condition-expr field-name="productId" operator="equals"
from-field="parameters.productIdOrServiceId" ignore-if-empty="true"/>
<condition-expr field-name="workEffortId"
operator="equals" from-field="parameters.workEffortId"
ignore-if-empty="true"/>
<condition-expr field-name="shipmentId"
operator="equals" from-field="parameters.shipmentId"
ignore-if-empty="true"/>
<condition-expr field-name="acctgTransId"
operator="equals" from-field="parameters.acctgTransId"
ignore-if-empty="true"/>
<condition-expr field-name="transactionDate"
operator="greater-equals" from-field="parameters.fromDate"
ignore-if-empty="true"/>
<condition-expr field-name="transactionDate"
operator="less" from-field="parameters.thruDate" ignore-if-empty="true"/>
</condition-list>
<select-field field-name="acctgTransId"/>
<select-field field-name="transactionDate"/>
<select-field field-name="acctgTransTypeId"/>
<select-field field-name="glFiscalTypeId"/>
<select-field field-name="invoiceId"/>
<select-field field-name="paymentId"/>
<select-field field-name="workEffortId"/>
<select-field field-name="shipmentId"/>
<select-field field-name="isPosted"/>
<select-field field-name="postedDate"/>
<select-field field-name="voucherDate"/>
<order-by field-name="-transactionDate"/>
</entity-condition>
</actions>
<field name="acctgTransId" widget-style="buttontext">
<hyperlink also-hidden="false" description="${acctgTransId}"
target="EditAcctgTrans">
<parameter param-name="acctgTransId"/>
<parameter param-name="organizationPartyId"/>
</hyperlink>
</field>
<field name="transactionDate"><display/></field>
<field name="acctgTransTypeId"><display-entity
entity-name="AcctgTransType" description="${description}"/></field>
<field name="glFiscalTypeId"><display-entity
entity-name="GlFiscalType" description="${description}"/></field>
<field name="invoiceId" use-when="invoiceId!=null"
widget-style="buttontext">
<hyperlink also-hidden="false" description="${invoiceId}"
target="editInvoice">
<parameter param-name="invoiceId"/>
</hyperlink>
</field>
<field name="invoiceId"
use-when="invoiceId==null"><display/></field>
<field name="paymentId" use-when="paymentId!=null"
widget-style="buttontext">
<hyperlink also-hidden="false" description="${paymentId}"
target="editPayment">
<parameter param-name="paymentId"/>
</hyperlink>
</field>
<field name="paymentId"
use-when="paymentId==null"><display/></field>
<field name="workEffortId" use-when="workEffortId!=null"
widget-style="buttontext">
<hyperlink also-hidden="false" description="${workEffortId}"
target="/workeffort/control/EditWorkEffort" target-type="inter-app">
<parameter param-name="workEffortId"/>
</hyperlink>
</field>
<field name="workEffortId"
use-when="workEffortId==null"><display/></field>
<field name="shipmentId" use-when="shipmentId!=null"
widget-style="buttontext">
<hyperlink also-hidden="false" description="${shipmentId}"
target="/facility/control/EditShipment" target-type="inter-app">
<parameter param-name="shipmentId"/>
</hyperlink>
</field>
<field name="shipmentId"
use-when="shipmentId==null"><display/></field>
<field name="voucherDate"><display/></field>
<field name="isPosted"><display/></field>
<field name="postedDate"><display/></field>
<field name="postAcctgTrans" title="${uiLabelMap.CommonEmptyHeader}"
use-when=""N".equals(isPosted)" widget-style="buttontext">
<hyperlink target="postAcctgTrans"
description="${uiLabelMap.AccountingPostTransaction}">
<parameter param-name="acctgTransId"/>
</hyperlink>
</field>
<field name="postAcctgTrans" title="${uiLabelMap.CommonEmptyHeader}"
use-when="!"N".equals(isPosted)"><display/></field>
</form>
--
View this message in context:
http://ofbiz.135035.n4.nabble.com/Adding-new-field-for-existing-search-tp2265556p2265654.html
Sent from the OFBiz - User mailing list archive at Nabble.com.