I bumped up a previous email thread.
the email archives a great resource and should be researched.


Amine Benkirane sent the following on 9/19/2008 7:39 AM:
> Ok and thank you for your response but I use a drop-down directly in 
> ScreenForm like this
>  <form name="AddNewsToParty" type="single" target="addNewsToParty" title=""
>         header-row-style="header-row" default-table-style="basic-table">
>         <auto-fields-service service-name="addNewsToParty"/>
>         <field name="partyId" map-name="party"><hidden/></field>
>         <field name="newsId" title="${uiLabelMap.NewsTitle}">
>             <drop-down>                <entity-options entity-name="News" 
> description="${title}" key-field-name="newsId">                    
> <entity-constraint name="createdBy" operator="equals" 
> env-name="userLogin.userLoginId"/>                    <entity-order-by 
> field-name="title"/>                </entity-options>            </drop-down>
>             <!--lookup target-form-name="LookupNewsRequest"></lookup-->
>         </field>
>         <field name="submitButton" title="${uiLabelMap.CommonAdd}" 
> widget-style="smallSubmit"><submit button-type="button"/></field>
>     </form>
> 
> 
> And here, I want to add entity-constraints using dates, something like :
>  <entity-constraint name="fromDate" operator="greater_than_equal_to" 
> env-name="currentDate"/>
>  <entity-constraint name="thruDate" operator="less_than_equal_to" 
> env-name="currentDate"/>
> 
> 
> Is stuff like this possible ?
> 
> Regards,
> 
> Amine
> 
> 
>> Date: Fri, 19 Sep 2008 04:49:03 -0700
>> From: [EMAIL PROTECTED]
>> To: [email protected]
>> Subject: Re: drop-down with entity option filtered by dates?
>>
>> you can use the groovy to create the list you need like
>> look at any dropdown page and find the groovy file for it.
>> then just use the created list for drop down.
>>
>> Amine Benkirane sent the following on 9/19/2008 3:27 AM:
>>>    Hi there !
>>>
>>> It is possible to filter a drop-down with entity-options by date ? 
>>> Basically, I want my drop-down to show only the records from an entity 
>>> which between the fromDate and thruDate.
>>>
>>> I make a search in ofbiz but I didn't find anything like that...
>>>
>>> Regards,
>>>
>>> Amine
>>>
>>> _________________________________________________________________
>>> Installez gratuitement les 20 émôticones Windows Live Messenger les plus 
>>> fous ! Cliquez ici !
>>> http://www.emoticones-messenger.fr/
>>
> 
> _________________________________________________________________
> Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, 
> passez à Hotmail ! C'est gratuit !
> http://www.windowslive.fr/hotmail/default.asp


Reply via email to