How can we use Months as field in Search options?

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

How can we use Months as field in Search options?

Simranjeet Singh
Hi

I want to filter the Search list month-wise. How can we use Months as field in Search options?
Can we do it in forms by using Perform find service?


Thanks and Regards:

Simranjeet Singh
Reply | Threaded
Open this post in threaded view
|

Re: How can we use Months as field in Search options?

Simranjeet Singh
Hi All

As i have not received any replies so i am elaborating my query a little. I hope that i will get a reply this time around.

We know that in forms we can search an entity on the basis of "FromDate". But can we do it on the basis of "month" & "year"?
E.g. If i select "January" as the search criteria then all the entity rows which has january in "from/thruDate" field should appear in the list.

And also if anybody has done something similar to it please reply to this query.

Thanks and Regards:
Simranjeet Singh
Reply | Threaded
Open this post in threaded view
|

Re: How can we use Months as field in Search options?

Ashish Vijaywargiya-5
By default it will display the field to specify the full date.
You can explicitly override the behavior of the UI by following line:
<field name="fromDate"><text-find default-option="contains"
ignore-case="true"/></field>

By this change you can search by entering Month or Year.
It looks like date searching on the containing string is not supported,
it only take the complete date for now.
So you may need to update the Perform Find service code so that it could
handle this case as well.

But instead of updating Perform Find service I will prefer to write
custom code in your own application.

--
Ashish

Simranjeet Singh wrote:

> Hi All
>
> As i have not received any replies so i am elaborating my query a little. I
> hope that i will get a reply this time around.
>
> We know that in forms we can search an entity on the basis of "FromDate".
> But can we do it on the basis of "month" & "year"?
> E.g. If i select "January" as the search criteria then all the entity rows
> which has january in "from/thruDate" field should appear in the list.
>
> And also if anybody has done something similar to it please reply to this
> query.
>
> Thanks and Regards:
> Simranjeet Singh
>  

smime.p7s (4K) Download Attachment