Skip to Content
0
Former Member
Jun 24, 2014 at 10:50 AM

Is it possible to set a default date for a search?

408 Views

Hi,

I'm currently working on a hmc search and I'm prefilling the default values like this:

<referencecollectioneditor create="false" add="true" remove="true" editable="false">
    <restriction attribute="product" sourceattribute="productLP" operator="equal" />
    <restriction attribute="validFrom" operator="equal" />
    <itemlayout> . . . </itemlayout>
 </referencecollectioneditor>
The restriction for the attribute product is working but now I want to set the current date for the attribute validFrom.

How can I prefill the attribute validFrom with the current date so that we don't have to set the date before every search?

Thanks in advance. Yours Oliver.