Hello Avijit,
My correction in line
On 13/05/2022 04:42, Avijit Bose wrote:
> 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;
context.domesticCustomerList = from("AkmCustomer").where(customerTypeId:
"Domestic").queryList()
> -----------------------------------
>
> Second: [...]
> -----------------------------------
>
> <form name="FindDomesticCustomers" type="single"
> target="FindDomesticCustomers" list-name="domesticCustomerList">
<form name="FindDomesticCustomers" type="single"
target="FindDomesticCustomers"/>
> [...]
> </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">
<form name="AllCustomerListScreenlet" type="list"
list-name="domesticCustomerList"/>
> [...] </form>
> -----------------------------------
>
> Problem: I am not able to search items from the '
> list-name="domesticCustomerList" ' when clicking the 'Find' button.
>
> Please help.
>
> regards
> Avijit
You can also remove your script and just do :
<form name="AllCustomerListScreenlet" type="list"
paginate-target="FindDomesticCustomers">
<action>
<entity-condition entity-name="AkmCustomer">
<condition-expr field-name="customerTypeId" operator="equals"
value="Domestic"/>
</entity-condition>
</action>...
</form>
Nicolas