Login  Register

Re: Users - product requirements

Posted by Jacopo Cappellato on May 09, 2006; 6:47pm
URL: http://ofbiz.116.s1.nabble.com/Users-product-requirements-tp138923p138942.html

Fred,

did you try something like this?

andExprs.add(requirementConditions);

Jacopo


Fred Forester wrote:

> Jacopo,
>
> it makes sense that the productId is part of the incoming
> requirementConditions. however, how do I merge or combine the
> requirementConditions with the mainCond?
>
> thanx
> Fred
>
>
>
>
> Jacopo Cappellato wrote:
>> Fred,
>>
>> thanks for your work.
>>
>> I think you should add the incoming requirementConditions as they are to
>> the other conditions of your service.
>>
>> You should also remove the productId parameter (that is not even
>> declared in the service definition); if the user has selected a
>> productId to filter out requirements, this condition will be in the
>> requirementConditions.
>>
>> Does it make sense?
>>
>> Jacopo
>>
>> Fred Forester wrote:
>>
>>> Jacopo,
>>>
>>> the patch is attached and based on 7445
>>>
>>> I wasnt sure how to merge the incomming requirementConditions with the
>>> conditions being built by the code. comments welcome.
>>>
>>> Thanx
>>> Fred
>>>
>>>
>>
>>  
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users