Hello,
First: I have a list in the groovy file which as follows:
------------------------------------
EntityCondition condition1 = EntityCondition.makeCondition(
EntityCondition.makeCondition("customerTypeId", "Domestic")
)
List domesticCustomerList = from("AkmCustomer").where(condition1).queryList();
context.domesticCustomerList = domesticCustomerList;
-----------------------------------
Second: I have a search form which is mentioned below. I am referring
to the above list "domesticCustomerList " as '
list-name="domesticCustomerList" ' in the below mentioned form both in
the <form> tag and in the <list-options> tags. It is showing the
entries from the "domesticCustomerList".
-----------------------------------
<form name="FindDomesticCustomers" type="single"
target="FindDomesticCustomers" list-name="domesticCustomerList">
<field name="noConditionFind"><hidden value="Y"/></field>
<!-- if the above "noConditionFind" field name isn't there
then with all fields empty no query will be done -->
<field name="customerId" title="${uiLabelMap.customerId}">
<drop-down allow-empty="true" current-description="">
<list-options description="${customerId} - ${companyName}" key-name="customerId"
list-name="domesticCustomerList">
</list-options>
</drop-down>
</field>
<field name="companyName" title="${uiLabelMap.companyName}">
<drop-down allow-empty="true" current-description="">
<list-options description="${companyName}" key-name="companyName"
list-name="domesticCustomerList">
</list-options>
</drop-down>
</field>
<field name="customerContactPerson"
title="${uiLabelMap.customerContactPerson}"><text-find/></field>
<field name="searchButton" title="${uiLabelMap.CommonFind}"
widget-style="smallSubmit">
<submit button-type="button"
image-location="/images/icons/magnifier.png"/>
</field>
</form>
-----------------------------------
Third: I have a list form as mentioned below.
-----------------------------------
<form name="AllCustomerListScreenlet" type="list"
list-name="listIt" paginate-target="FindDomesticCustomers"
default-entity-name="domesticCustomerList">
<actions>
<service service-name="performFind" result-map="result"
result-map-list="listIt">
<field-map field-name="inputFields" from-field="ofbizDemoCtx"/>
<field-map field-name="listName" value="domesticCustomerList"/>
<field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="customerId" title="${uiLabelMap.customerId}"
sort-field="false"><display/></field>
</form>
-----------------------------------
Problem: I am not able to search items from the '
list-name="domesticCustomerList" ' when clicking the 'Find' button.
Please help.
regards
Avijit