[jira] [Commented] (OFBIZ-7266) Auto-complete on lookup field should be able to support filter by date.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7266) Auto-complete on lookup field should be able to support filter by date.

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322313#comment-15322313 ]

Deepak Dixit commented on OFBIZ-7266:
-------------------------------------

Hi [~kongrath],

We have support in autocompleter to pass andCondition from screen. You can use this to add filterByDate or any custom condition.
{code}
<set field="andCondition" value="${groovy: return org.ofbiz.entity.condition.EntityCondition.makeCondition(&quot;isVirtual&quot;, &quot;Y&quot;)}"/>
{code}

> Auto-complete on lookup field should be able to support filter by date.
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-7266
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7266
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Kongrath Suankaewmanee
>            Priority: Minor
>         Attachments: auto-complete-fix.patch
>
>
> Hi,
> For the general reason, if the lookup popup (like as performFind service work) able to filter the result from date. so, in the auto complete for lookup filed should be also able too.
> Simple :
> add this tag in action tag before call LookupDecorator
> and filter on field "fromDate", "thruDate" as default.
> {code:xml}
>     <set field="filterByDate" value="true"/>
> {code}
> Advance :
> you can customize "fromDate" and "thruDate" field names by do follow below
> {code:xml}
>     <set field="filterByDate" value="true"/>
>     <set field="fromDateName" value="startDate"/>
>     <set field="thruDateName" value="endDate"/>
> {code}
> Best Regards,
> Kongrath



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)