[
https://issues.apache.org/jira/browse/OFBIZ-7266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15355701#comment-15355701
]
Nicolas Malin commented on OFBIZ-7266:
--------------------------------------
Pierre,
{quote}renaming the ?Name variables to ?Var (e.g. fromDateName to fromDateVar),
so that is more inline with general conventions.
{quote}
I ear your remark, but I'm not totally compliant with this for two point :
* ?Name is a abbrev to fieldName related of GenericValue concept
* fromDateName is present 68 occurrence on ofbiz code instead of 0 for
fromDateVar : so I prefer to not introduce an other syntax for the same element
on this issue and manage the replacement if it's really needed on an other issue
+1 for Ux but like you said it's an other issue ;)
> 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
> Assignee: Nicolas Malin
> Priority: Minor
> Attachments: OFBIZ-7266-NMA.patch, OFBIZ-7266-NMA.patch,
> OFBIZ-7266.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="conditionDates.filterByDate" value="true"/>
> {code}
> Advance :
> you can customize "fromDate" and "thruDate" field names by do follow below
> {code:xml}
> <set field="conditionDates.filterByDate" value="true"/>
> <set field="conditionDates.fromDateName" value="startDate"/>
> <set field="conditionDates.thruDateName" value="endDate"/>
> {code}
> Best Regards,
> Kongrath
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)